From: kernel test robot <lkp@intel.com>
To: SeongJae Park <sj@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [sj:damon/next 34/101] mm/mprotect.c:726:13: error: 'PAGE_NONE' undeclared; did you mean 'PAGE_U_NONE'?
Date: Sun, 27 Jul 2025 08:16:01 +0800 [thread overview]
Message-ID: <202507270855.YvsYlfrv-lkp@intel.com> (raw)
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
next reply other threads:[~2025-07-27 0:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-27 0:16 kernel test robot [this message]
2025-07-27 17:45 ` [sj:damon/next 34/101] mm/mprotect.c:726:13: error: 'PAGE_NONE' undeclared; did you mean 'PAGE_U_NONE'? SeongJae Park
2025-07-27 20:13 ` SeongJae Park
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202507270855.YvsYlfrv-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sj@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.