From: kernel test robot <lkp@intel.com>
To: kernel@openeuler.org
Cc: oe-kbuild-all@lists.linux.dev
Subject: [openeuler:OLK-6.6 691/2356] arch/arm64/include/asm/elf.h:223:9: warning: 'COMPAT_ARCH_DLINFO' macro redefined
Date: Fri, 12 Jan 2024 20:36:35 +0800 [thread overview]
Message-ID: <202401122047.CyxICDOd-lkp@intel.com> (raw)
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
reply other threads:[~2024-01-12 12:37 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=202401122047.CyxICDOd-lkp@intel.com \
--to=lkp@intel.com \
--cc=kernel@openeuler.org \
--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.