EDAC, pnd2: Correct misleading error message in mk_region_mask()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 20 Nov 2023 14:10:47 +0000 (16:10 +0200)
committerTony Luck <tony.luck@intel.com>
Tue, 5 Dec 2023 21:04:57 +0000 (13:04 -0800)
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>
drivers/edac/pnd2_edac.c

index ee7c9b0243547de47558ecd36eed6e777135bfa7..969fb2465edb4a4fbe6650182e10b7078c5a238c 100644 (file)
@@ -329,7 +329,7 @@ static void mk_region_mask(char *name, struct region *rp, u64 base, u64 mask)
                return;
        }
        if (mask != GENMASK_ULL(PND_MAX_PHYS_BIT, __ffs(mask))) {
-               pr_info(FW_BUG "MOT mask not power of two\n");
+               pr_info(FW_BUG "MOT mask is invalid\n");
                return;
        }
        if (base & ~mask) {