All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Cong Wang <cwang@multikernel.io>
Cc: oe-kbuild-all@lists.linux.dev
Subject: [congwang:seccomp-pinned-memfd-remote 3/8] include/uapi/asm-generic/mman-common.h:31:9: warning: 'MAP_FIXED_NOREPLACE' redefined
Date: Tue, 14 Jul 2026 05:25:15 +0800	[thread overview]
Message-ID: <202607140556.Wkmgl0ou-lkp@intel.com> (raw)

tree:   https://github.com/congwang/linux.git seccomp-pinned-memfd-remote
head:   a1dd66697189e5897e848eeda268ea2997ebe279
commit: 6ea2e7d2758698b92d07e23ee484f0e53a1134b0 [3/8] seccomp: introduce SECCOMP_IOCTL_NOTIF_PIN_INSTALL
config: alpha-defconfig (https://download.01.org/0day-ci/archive/20260714/202607140556.Wkmgl0ou-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260714/202607140556.Wkmgl0ou-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/202607140556.Wkmgl0ou-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from kernel/seccomp.c:52:
   include/uapi/asm-generic/mman-common.h:22:9: warning: 'MAP_FIXED' redefined
      22 | #define MAP_FIXED       0x10            /* Interpret addr exactly */
         |         ^~~~~~~~~
   In file included from include/uapi/linux/mman.h:5,
                    from include/linux/mman.h:10,
                    from kernel/seccomp.c:48:
   arch/alpha/include/uapi/asm/mman.h:15:9: note: this is the location of the previous definition
      15 | #define MAP_FIXED       0x100           /* Interpret addr exactly */
         |         ^~~~~~~~~
   include/uapi/asm-generic/mman-common.h:23:9: warning: 'MAP_ANONYMOUS' redefined
      23 | #define MAP_ANONYMOUS   0x20            /* don't use a file */
         |         ^~~~~~~~~~~~~
   arch/alpha/include/uapi/asm/mman.h:16:9: note: this is the location of the previous definition
      16 | #define MAP_ANONYMOUS   0x10            /* don't use a file */
         |         ^~~~~~~~~~~~~
   include/uapi/asm-generic/mman-common.h:26:9: warning: 'MAP_POPULATE' redefined
      26 | #define MAP_POPULATE            0x008000        /* populate (prefault) pagetables */
         |         ^~~~~~~~~~~~
   arch/alpha/include/uapi/asm/mman.h:29:9: note: this is the location of the previous definition
      29 | #define MAP_POPULATE    0x20000         /* populate (prefault) pagetables */
         |         ^~~~~~~~~~~~
   include/uapi/asm-generic/mman-common.h:27:9: warning: 'MAP_NONBLOCK' redefined
      27 | #define MAP_NONBLOCK            0x010000        /* do not block on IO */
         |         ^~~~~~~~~~~~
   arch/alpha/include/uapi/asm/mman.h:30:9: note: this is the location of the previous definition
      30 | #define MAP_NONBLOCK    0x40000         /* do not block on IO */
         |         ^~~~~~~~~~~~
   include/uapi/asm-generic/mman-common.h:28:9: warning: 'MAP_STACK' redefined
      28 | #define MAP_STACK               0x020000        /* give out an address that is best suited for process/thread stacks */
         |         ^~~~~~~~~
   arch/alpha/include/uapi/asm/mman.h:31:9: note: this is the location of the previous definition
      31 | #define MAP_STACK       0x80000         /* give out an address that is best suited for process/thread stacks */
         |         ^~~~~~~~~
   include/uapi/asm-generic/mman-common.h:29:9: warning: 'MAP_HUGETLB' redefined
      29 | #define MAP_HUGETLB             0x040000        /* create a huge page mapping */
         |         ^~~~~~~~~~~
   arch/alpha/include/uapi/asm/mman.h:32:9: note: this is the location of the previous definition
      32 | #define MAP_HUGETLB     0x100000        /* create a huge page mapping */
         |         ^~~~~~~~~~~
   include/uapi/asm-generic/mman-common.h:30:9: warning: 'MAP_SYNC' redefined
      30 | #define MAP_SYNC                0x080000 /* perform synchronous page faults for the mapping */
         |         ^~~~~~~~
   include/linux/mman.h:32:9: note: this is the location of the previous definition
      32 | #define MAP_SYNC 0
         |         ^~~~~~~~
>> include/uapi/asm-generic/mman-common.h:31:9: warning: 'MAP_FIXED_NOREPLACE' redefined
      31 | #define MAP_FIXED_NOREPLACE     0x100000        /* MAP_FIXED which doesn't unmap underlying mapping */
         |         ^~~~~~~~~~~~~~~~~~~
   arch/alpha/include/uapi/asm/mman.h:33:9: note: this is the location of the previous definition
      33 | #define MAP_FIXED_NOREPLACE     0x200000/* MAP_FIXED which doesn't unmap underlying mapping */
         |         ^~~~~~~~~~~~~~~~~~~
   include/uapi/asm-generic/mman-common.h:33:9: warning: 'MAP_UNINITIALIZED' redefined
      33 | #define MAP_UNINITIALIZED 0x4000000     /* For anonymous mmap, memory could be
         |         ^~~~~~~~~~~~~~~~~
   include/linux/mman.h:29:9: note: this is the location of the previous definition
      29 | #define MAP_UNINITIALIZED 0
         |         ^~~~~~~~~~~~~~~~~
   include/uapi/asm-generic/mman-common.h:42:9: warning: 'MS_INVALIDATE' redefined
      42 | #define MS_INVALIDATE   2               /* invalidate the caches */
         |         ^~~~~~~~~~~~~
   arch/alpha/include/uapi/asm/mman.h:37:9: note: this is the location of the previous definition
      37 | #define MS_INVALIDATE   4               /* invalidate the caches */
         |         ^~~~~~~~~~~~~
   include/uapi/asm-generic/mman-common.h:43:9: warning: 'MS_SYNC' redefined
      43 | #define MS_SYNC         4               /* synchronous memory sync */
         |         ^~~~~~~
   arch/alpha/include/uapi/asm/mman.h:36:9: note: this is the location of the previous definition
      36 | #define MS_SYNC         2               /* synchronous memory sync */
         |         ^~~~~~~
>> include/uapi/asm-generic/mman-common.h:49:9: warning: 'MADV_DONTNEED' redefined
      49 | #define MADV_DONTNEED   4               /* don't need these pages */
         |         ^~~~~~~~~~~~~
   arch/alpha/include/uapi/asm/mman.h:50:9: note: this is the location of the previous definition
      50 | #define MADV_DONTNEED   6               /* don't need these pages */
         |         ^~~~~~~~~~~~~


vim +/MAP_FIXED_NOREPLACE +31 include/uapi/asm-generic/mman-common.h

4ed28639519c7b include/uapi/asm-generic/mman-common.h Michal Hocko       2018-04-10  24  
8aa3c927ec10d1 include/uapi/asm-generic/mman-common.h Aneesh Kumar K.V   2019-07-16  25  /* 0x0100 - 0x4000 flags are defined in asm-generic/mman.h */
8aa3c927ec10d1 include/uapi/asm-generic/mman-common.h Aneesh Kumar K.V   2019-07-16  26  #define MAP_POPULATE		0x008000	/* populate (prefault) pagetables */
8aa3c927ec10d1 include/uapi/asm-generic/mman-common.h Aneesh Kumar K.V   2019-07-16  27  #define MAP_NONBLOCK		0x010000	/* do not block on IO */
8aa3c927ec10d1 include/uapi/asm-generic/mman-common.h Aneesh Kumar K.V   2019-07-16  28  #define MAP_STACK		0x020000	/* give out an address that is best suited for process/thread stacks */
8aa3c927ec10d1 include/uapi/asm-generic/mman-common.h Aneesh Kumar K.V   2019-07-16  29  #define MAP_HUGETLB		0x040000	/* create a huge page mapping */
22fcea6f85f2cc include/uapi/asm-generic/mman-common.h Aneesh Kumar K.V   2019-07-16  30  #define MAP_SYNC		0x080000 /* perform synchronous page faults for the mapping */
4ed28639519c7b include/uapi/asm-generic/mman-common.h Michal Hocko       2018-04-10 @31  #define MAP_FIXED_NOREPLACE	0x100000	/* MAP_FIXED which doesn't unmap underlying mapping */
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  32  
0bf5f9492389aa include/uapi/asm-generic/mman-common.h Christoph Hellwig  2019-07-16  33  #define MAP_UNINITIALIZED 0x4000000	/* For anonymous mmap, memory could be
0bf5f9492389aa include/uapi/asm-generic/mman-common.h Christoph Hellwig  2019-07-16  34  					 * uninitialized */
0bf5f9492389aa include/uapi/asm-generic/mman-common.h Christoph Hellwig  2019-07-16  35  
b0f205c2a3082d include/uapi/asm-generic/mman-common.h Eric B Munson      2015-11-05  36  /*
b0f205c2a3082d include/uapi/asm-generic/mman-common.h Eric B Munson      2015-11-05  37   * Flags for mlock
b0f205c2a3082d include/uapi/asm-generic/mman-common.h Eric B Munson      2015-11-05  38   */
b0f205c2a3082d include/uapi/asm-generic/mman-common.h Eric B Munson      2015-11-05  39  #define MLOCK_ONFAULT	0x01		/* Lock pages in range after they are faulted in, do not prefault */
b0f205c2a3082d include/uapi/asm-generic/mman-common.h Eric B Munson      2015-11-05  40  
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  41  #define MS_ASYNC	1		/* sync memory asynchronously */
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  42  #define MS_INVALIDATE	2		/* invalidate the caches */
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  43  #define MS_SYNC		4		/* synchronous memory sync */
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  44  
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  45  #define MADV_NORMAL	0		/* no further special treatment */
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  46  #define MADV_RANDOM	1		/* expect random page references */
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  47  #define MADV_SEQUENTIAL	2		/* expect sequential page references */
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  48  #define MADV_WILLNEED	3		/* will need these pages */
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15 @49  #define MADV_DONTNEED	4		/* don't need these pages */
5f6164f3092832 include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  50  

:::::: The code at line 31 was first introduced by commit
:::::: 4ed28639519c7bad5f518e70b3284c6e0763e650 fs, elf: drop MAP_FIXED usage from elf_map

:::::: TO: Michal Hocko <mhocko@suse.com>
:::::: CC: Linus Torvalds <torvalds@linux-foundation.org>

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

                 reply	other threads:[~2026-07-13 21:26 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202607140556.Wkmgl0ou-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cwang@multikernel.io \
    --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.