From: kernel test robot <lkp@intel.com>
To: Ard Biesheuvel <ardb@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [ardb:arm64-ro-page-tables-pkvm-v5.17 11/26] include/linux/pgtable.h:83:29: error: redefinition of 'p4d_index'
Date: Sat, 29 Jan 2022 06:15:35 +0800 [thread overview]
Message-ID: <202201290655.jMtwgXZW-lkp@intel.com> (raw)
tree: git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git arm64-ro-page-tables-pkvm-v5.17
head: b38f2df95cbf61e70bc32017da5318d1cb03e3e3
commit: 213a01959c0f951a020c1affdab630af1f4077ee [11/26] mm: add default definition of p4d_index()
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20220129/202201290655.jMtwgXZW-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git/commit/?id=213a01959c0f951a020c1affdab630af1f4077ee
git remote add ardb git://git.kernel.org/pub/scm/linux/kernel/git/ardb/linux.git
git fetch --no-tags ardb arm64-ro-page-tables-pkvm-v5.17
git checkout 213a01959c0f951a020c1affdab630af1f4077ee
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 prepare
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from include/linux/kasan.h:30,
from include/linux/slab.h:136,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
>> include/linux/pgtable.h:83:29: error: redefinition of 'p4d_index'
83 | static inline unsigned long p4d_index(unsigned long address)
| ^~~~~~~~~
In file included from include/linux/pgtable.h:6,
from include/linux/kasan.h:30,
from include/linux/slab.h:136,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets.c:9:
arch/x86/include/asm/pgtable.h:904:29: note: previous definition of 'p4d_index' was here
904 | static inline unsigned long p4d_index(unsigned long address)
| ^~~~~~~~~
make[2]: *** [scripts/Makefile.build:121: arch/x86/kernel/asm-offsets.s] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1191: prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:219: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
vim +/p4d_index +83 include/linux/pgtable.h
81
82 #ifndef p4d_index
> 83 static inline unsigned long p4d_index(unsigned long address)
84 {
85 return (address >> P4D_SHIFT) & (PTRS_PER_P4D - 1);
86 }
87 #define p4d_index p4d_index
88 #endif
89
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
reply other threads:[~2022-01-28 22:16 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=202201290655.jMtwgXZW-lkp@intel.com \
--to=lkp@intel.com \
--cc=ardb@kernel.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome