Skip to content

Commit e520d52

Browse files
Davidlohr Buesodjbw
authored andcommitted
cxl/region: Only warn about cpu_cache_invalidate_memregion() once
No need for more than once per module load. Signed-off-by: Davidlohr Bueso <[email protected]> Reviewed-by: Jonathan Cameron <[email protected]> Reviewed-by: Dave Jiang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 589c335 commit e520d52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cxl/core/region.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1967,7 +1967,7 @@ static int cxl_region_invalidate_memregion(struct cxl_region *cxlr)
19671967

19681968
if (!cpu_cache_has_invalidate_memregion()) {
19691969
if (IS_ENABLED(CONFIG_CXL_REGION_INVALIDATION_TEST)) {
1970-
dev_warn(
1970+
dev_warn_once(
19711971
&cxlr->dev,
19721972
"Bypassing cpu_cache_invalidate_memregion() for testing!\n");
19731973
clear_bit(CXL_REGION_F_INCOHERENT, &cxlr->flags);

0 commit comments

Comments
 (0)