mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
530258f872
commit
f1b0b1167f
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue