All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-6.6 691/2356] arch/arm64/include/asm/elf.h:223:9: warning: 'COMPAT_ARCH_DLINFO' macro redefined
@ 2024-01-12 12:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-01-12 12:36 UTC (permalink / raw)
  To: kernel; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git OLK-6.6
head:   ea6de9f6732d495c506f9c140b4ec17c957e1b77
commit: 7de3ab4c3dd938fae3626a6344830b018eb7ba4f [691/2356] arm64: introduce binfmt_elf32.c
config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20240112/202401122047.CyxICDOd-lkp@intel.com/config)
compiler: clang version 18.0.0git (https://github.com/llvm/llvm-project 9bde5becb44ea071f5e1fa1f5d4071dc8788b18c)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240112/202401122047.CyxICDOd-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/202401122047.CyxICDOd-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from arch/arm64/kernel/binfmt_elf32.c:27:
   In file included from arch/arm64/kernel/../../../fs/compat_binfmt_elf.c:17:
   In file included from include/linux/elfcore-compat.h:5:
   In file included from include/linux/elf.h:6:
>> arch/arm64/include/asm/elf.h:223:9: warning: 'COMPAT_ARCH_DLINFO' macro redefined [-Wmacro-redefined]
     223 | #define COMPAT_ARCH_DLINFO                                              \
         |         ^
   arch/arm64/kernel/binfmt_elf32.c:20:9: note: previous definition is here
      20 | #define COMPAT_ARCH_DLINFO
         |         ^
   1 warning generated.


vim +/COMPAT_ARCH_DLINFO +223 arch/arm64/include/asm/elf.h

7de3ab4c3dd938 Yury Norov        2023-11-27  221  
85751e9e5b1480 Vincenzo Frascino 2019-07-10  222  #ifdef CONFIG_COMPAT_VDSO
1e3f17f55aec65 Vincenzo Frascino 2019-06-21 @223  #define COMPAT_ARCH_DLINFO						\
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  224  do {									\
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  225  	/*								\
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  226  	 * Note that we use Elf64_Off instead of elf_addr_t because	\
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  227  	 * elf_addr_t in compat is defined as Elf32_Addr and casting	\
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  228  	 * current->mm->context.vdso to it triggers a cast warning of	\
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  229  	 * cast from pointer to integer of different size.		\
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  230  	 */								\
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  231  	NEW_AUX_ENT(AT_SYSINFO_EHDR,					\
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  232  			(Elf64_Off)current->mm->context.vdso);		\
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  233  } while (0)
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  234  #else
f668cd1673aa2e Catalin Marinas   2012-03-05  235  #define COMPAT_ARCH_DLINFO
1e3f17f55aec65 Vincenzo Frascino 2019-06-21  236  #endif
7de3ab4c3dd938 Yury Norov        2023-11-27  237  

:::::: The code at line 223 was first introduced by commit
:::::: 1e3f17f55aec6510f88ff65dcbaae13435af0ba6 arm64: elf: VDSO code page discovery

:::::: TO: Vincenzo Frascino <vincenzo.frascino@arm.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

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

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

only message in thread, other threads:[~2024-01-12 12:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-12 12:36 [openeuler:OLK-6.6 691/2356] arch/arm64/include/asm/elf.h:223:9: warning: 'COMPAT_ARCH_DLINFO' 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.