[PATCH 17/21] mm: don't use GENMASK()

Yury Norov (NVIDIA)
2025-10-25T16:33:32Z

GENMASK(high, low) notation is confusing. FIRST_BITS() is more
appropriate.

Signed-off-by: Yury Norov (NVIDIA) <yury.norov@gmail.com>
---
mm/debug_vm_pgtable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mm/debug_vm_pgtable.c b/mm/debug_vm_pgtable.c
index 830107b6dd08..b722dc3c091b 100644
--- a/mm/debug_vm_pgtable.c
+++ b/mm/debug_vm_pgtable.c
@@ -40,7 +40,7 @@
* expectations that are being validated here. All future changes in here
* or the documentation need to be in sync.
*/
-#define RANDOM_NZVALUE GENMASK(7, 0)
+#define RANDOM_NZVALUE FIRST_BITS(8)

struct pgtable_debug_args {
struct mm_struct *mm;
--
2.43.0