All of lore.kernel.org
 help / color / mirror / Atom feed
* [sj:damon/next 34/101] mm/mprotect.c:726:13: error: 'PAGE_NONE' undeclared; did you mean 'PAGE_U_NONE'?
@ 2025-07-27  0:16 kernel test robot
  2025-07-27 17:45 ` SeongJae Park
  0 siblings, 1 reply; 3+ messages in thread
From: kernel test robot @ 2025-07-27  0:16 UTC (permalink / raw)
  To: SeongJae Park; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git damon/next
head:   de1df744d5c68470ace629863436a2b0b7360254
commit: af1d8aa70d3ae773ee9c7b9782ccfef1876bb027 [34/101] mm/mprotect: use PAGE_NONE for change_protection(..., MM_CP_PROT_DAMON)
config: arc-randconfig-001-20250727 (https://download.01.org/0day-ci/archive/20250727/202507270855.YvsYlfrv-lkp@intel.com/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250727/202507270855.YvsYlfrv-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507270855.YvsYlfrv-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/pagewalk.h:5,
                    from mm/mprotect.c:12:
   include/linux/mm.h:78: warning: "PAGES_TO_MB" redefined
    #define PAGES_TO_MB(pages) ((pages) >> (20 - PAGE_SHIFT))
    
   In file included from arch/arc/include/asm/irqflags-compact.h:16,
                    from arch/arc/include/asm/irqflags.h:11,
                    from include/linux/irqflags.h:18,
                    from include/linux/spinlock.h:59,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/mm.h:7,
                    from include/linux/pagewalk.h:5,
                    from mm/mprotect.c:12:
   arch/arc/include/asm/arcregs.h:155: note: this is the location of the previous definition
    #define PAGES_TO_MB(n_pages) (PAGES_TO_KB(n_pages) >> 10)
    
   mm/mprotect.c: In function 'change_protection':
>> mm/mprotect.c:726:13: error: 'PAGE_NONE' undeclared (first use in this function); did you mean 'PAGE_U_NONE'?
      newprot = PAGE_NONE;
                ^~~~~~~~~
                PAGE_U_NONE
   mm/mprotect.c:726:13: note: each undeclared identifier is reported only once for each function it appears in


vim +726 mm/mprotect.c

   723	
   724	#ifdef CONFIG_DAMON
   725		if (cp_flags & MM_CP_PROT_DAMON)
 > 726			newprot = PAGE_NONE;
   727	#endif
   728	
   729		if (is_vm_hugetlb_page(vma))
   730			pages = hugetlb_change_protection(vma, start, end, newprot,
   731							  cp_flags);
   732		else
   733			pages = change_protection_range(tlb, vma, start, end, newprot,
   734							cp_flags);
   735	
   736		return pages;
   737	}
   738	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-07-27 20:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-27  0:16 [sj:damon/next 34/101] mm/mprotect.c:726:13: error: 'PAGE_NONE' undeclared; did you mean 'PAGE_U_NONE'? kernel test robot
2025-07-27 17:45 ` SeongJae Park
2025-07-27 20:13   ` SeongJae Park

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.