Skip to content

Commit f1b0b11

Browse files
andy-shevaegl
authored andcommitted
EDAC, pnd2: Correct misleading error message in mk_region_mask()
The mask parameter is expected to be of a sequence of the set bits. It does not mean it must be power of two (only single bit set). Correct misleading error message. Suggested-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
1 parent 530258f commit f1b0b11

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/edac/pnd2_edac.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static void mk_region_mask(char *name, struct region *rp, u64 base, u64 mask)
329329
return;
330330
}
331331
if (mask != GENMASK_ULL(PND_MAX_PHYS_BIT, __ffs(mask))) {
332-
pr_info(FW_BUG "MOT mask not power of two\n");
332+
pr_info(FW_BUG "MOT mask is invalid\n");
333333
return;
334334
}
335335
if (base & ~mask) {

0 commit comments

Comments
 (0)