All of lore.kernel.org
 help / color / mirror / Atom feed
* [weiny2:pks-rfc-v3 78/79] include/uapi/asm-generic/mman-common.h:80:9: warning: 'PKEY_ACCESS_MASK' macro redefined
@ 2020-10-23  1:46 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-23  1:46 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2827 bytes --]

tree:   https://github.com/weiny2/linux-kernel.git pks-rfc-v3
head:   5bc8097688dad2eb5174ac85bf2be4e9fa7582d1
commit: 755aaa6bd576da38bcf113735c978acd97692e87 [78/79] keys/trusted: protect trusted keys using PKS
config: powerpc-randconfig-r031-20201022 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 147b9497e79a98a8614b2b5eb4ba653b44f6b6f0)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install powerpc cross compiling tool for clang build
        # apt-get install binutils-powerpc-linux-gnu
        # https://github.com/weiny2/linux-kernel/commit/755aaa6bd576da38bcf113735c978acd97692e87
        git remote add weiny2 https://github.com/weiny2/linux-kernel.git
        git fetch --no-tags weiny2 pks-rfc-v3
        git checkout 755aaa6bd576da38bcf113735c978acd97692e87
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from security/keys/trusted-keys/trusted_tpm1.c:31:
>> include/uapi/asm-generic/mman-common.h:80:9: warning: 'PKEY_ACCESS_MASK' macro redefined [-Wmacro-redefined]
   #define PKEY_ACCESS_MASK        (PKEY_DISABLE_ACCESS |\
           ^
   arch/powerpc/include/asm/pkeys.h:22:9: note: previous definition is here
   #define PKEY_ACCESS_MASK       (PKEY_DISABLE_ACCESS | \
           ^
   1 warning generated.

vim +/PKEY_ACCESS_MASK +80 include/uapi/asm-generic/mman-common.h

5f6164f3092832e include/asm-generic/mman.h             Michael S. Tsirkin 2006-02-15  77  
e8c24d3a23a469f include/uapi/asm-generic/mman-common.h Dave Hansen        2016-07-29  78  #define PKEY_DISABLE_ACCESS	0x1
e8c24d3a23a469f include/uapi/asm-generic/mman-common.h Dave Hansen        2016-07-29  79  #define PKEY_DISABLE_WRITE	0x2
e8c24d3a23a469f include/uapi/asm-generic/mman-common.h Dave Hansen        2016-07-29 @80  #define PKEY_ACCESS_MASK	(PKEY_DISABLE_ACCESS |\
e8c24d3a23a469f include/uapi/asm-generic/mman-common.h Dave Hansen        2016-07-29  81  				 PKEY_DISABLE_WRITE)
e8c24d3a23a469f include/uapi/asm-generic/mman-common.h Dave Hansen        2016-07-29  82  

:::::: The code at line 80 was first introduced by commit
:::::: e8c24d3a23a469f1f40d4de24d872ca7023ced0a x86/pkeys: Allocation/free syscalls

:::::: TO: Dave Hansen <dave.hansen@linux.intel.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37637 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-23  1:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-23  1:46 [weiny2:pks-rfc-v3 78/79] include/uapi/asm-generic/mman-common.h:80:9: warning: 'PKEY_ACCESS_MASK' macro redefined kernel test robot

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.