All of lore.kernel.org
 help / color / mirror / Atom feed
From: SeongJae Park <sj@kernel.org>
To: SeongJae Park <sj@kernel.org>
Cc: kernel test robot <lkp@intel.com>, oe-kbuild-all@lists.linux.dev
Subject: Re: [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 13:13:07 -0700	[thread overview]
Message-ID: <20250727201307.53385-1-sj@kernel.org> (raw)
In-Reply-To: <20250727174544.63218-1-sj@kernel.org>

On Sun, 27 Jul 2025 10:45:44 -0700 SeongJae Park <sj@kernel.org> wrote:

> On Sun, 27 Jul 2025 08:16:01 +0800 kernel test robot <lkp@intel.com> wrote:
> 
> > 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
> 
> Thank you for this report!  I just pushed a fix:
> https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git/commit/?h=damon/next&id=bbc588c9166d6ff4ac9b270929732760215a94c3

There was a silly typo, sorry.  Pushed another fix for that:
https://git.kernel.org/pub/scm/linux/kernel/git/sj/linux.git/commit/?h=damon/next&id=7e65eab68ae7ff67bcaaa0466278aab7ec966604


Thanks,
SJ

[...]

      reply	other threads:[~2025-07-27 20:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 message]

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=20250727201307.53385-1-sj@kernel.org \
    --to=sj@kernel.org \
    --cc=lkp@intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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.