tree:
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git master
head: 7b18c2d1930b99fc2acd4b9499a55f51df2a6678
commit: 37e309a0e8dba5ae589e784f1a6517c4de009937 [388/476] x86/mm/tlb: Privatize
cpu_tlbstate
config: x86_64-randconfig-a003-20210215 (attached as .config)
compiler: clang version 12.0.0 (
https://github.com/llvm/llvm-project
c9439ca36342fb6013187d0a69aef92736951476)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/commit/?...
git remote add peterz-queue
https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git
git fetch --no-tags peterz-queue master
git checkout 37e309a0e8dba5ae589e784f1a6517c4de009937
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> arch/x86/mm/tlb.c:798:1: warning: section does not match previous
declaration [-Wsection]
DEFINE_PER_CPU_ALIGNED(struct tlb_state_shared,
cpu_tlbstate_shared);
^
include/linux/percpu-defs.h:151:2: note: expanded from macro
'DEFINE_PER_CPU_ALIGNED'
DEFINE_PER_CPU_SECTION(type, name, PER_CPU_ALIGNED_SECTION) \
^
include/linux/percpu-defs.h:94:9: note: expanded from macro
'DEFINE_PER_CPU_SECTION'
extern __PCPU_ATTRS(sec) __typeof__(type) name; \
^
include/linux/percpu-defs.h:50:26: note: expanded from macro '__PCPU_ATTRS'
__percpu __attribute__((section(PER_CPU_BASE_SECTION sec))) \
^
arch/x86/include/asm/tlbflush.h:157:1: note: previous attribute is here
DECLARE_PER_CPU_SHARED_ALIGNED(struct tlb_state_shared, cpu_tlbstate_shared);
^
include/linux/percpu-defs.h:139:2: note: expanded from macro
'DECLARE_PER_CPU_SHARED_ALIGNED'
DECLARE_PER_CPU_SECTION(type, name, PER_CPU_SHARED_ALIGNED_SECTION) \
^
include/linux/percpu-defs.h:88:9: note: expanded from macro
'DECLARE_PER_CPU_SECTION'
extern __PCPU_ATTRS(sec) __typeof__(type) name
^
include/linux/percpu-defs.h:50:26: note: expanded from macro '__PCPU_ATTRS'
__percpu __attribute__((section(PER_CPU_BASE_SECTION sec))) \
^
arch/x86/mm/tlb.c:1175:18: warning: variable 'info' is uninitialized when used
here [-Wuninitialized]
flush_tlb_func(info);
^~~~
arch/x86/mm/tlb.c:1161:29: note: initialize the variable 'info' to silence this
warning
struct flush_tlb_info *info;
^
= NULL
2 warnings generated.
vim +798 arch/x86/mm/tlb.c
797
798 DEFINE_PER_CPU_ALIGNED(struct tlb_state_shared,
cpu_tlbstate_shared);
799 EXPORT_PER_CPU_SYMBOL(cpu_tlbstate_shared);
800
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org