[kvm:queue 50/135] arch/x86/kernel/kvmclock.c:53:53: warning: section attribute is specified on redeclared variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   8960bc57dfb78f5de088af800576d9096282dca2
commit: e13d718dc708d583ba8dfc67552aade693506205 [50/135] x86/kvmclock: Move this_cpu_pvti into kvmclock.h
config: x86_64-randconfig-a013-20210929 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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
        # https://git.kernel.org/pub/scm/virt/kvm/kvm.git/commit/?id=e13d718dc708d583ba8dfc67552aade693506205
        git remote add kvm https://git.kernel.org/pub/scm/virt/kvm/kvm.git
        git fetch --no-tags kvm queue
        git checkout e13d718dc708d583ba8dfc67552aade693506205
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64 

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

All warnings (new ones prefixed by >>):

>> arch/x86/kernel/kvmclock.c:53:53: warning: section attribute is specified on redeclared variable [-Wsection]
   DEFINE_PER_CPU(struct pvclock_vsyscall_time_info *, hv_clock_per_cpu);
                                                       ^
   arch/x86/include/asm/kvmclock.h:9:43: note: previous declaration is here
   extern struct pvclock_vsyscall_time_info *hv_clock_per_cpu;
                                             ^
   1 warning generated.


vim +53 arch/x86/kernel/kvmclock.c

    44	
    45	/* Aligned to page sizes to match whats mapped via vsyscalls to userspace */
    46	#define HVC_BOOT_ARRAY_SIZE \
    47		(PAGE_SIZE / sizeof(struct pvclock_vsyscall_time_info))
    48	
    49	static struct pvclock_vsyscall_time_info
    50				hv_clock_boot[HVC_BOOT_ARRAY_SIZE] __bss_decrypted __aligned(PAGE_SIZE);
    51	static struct pvclock_wall_clock wall_clock __bss_decrypted;
    52	static struct pvclock_vsyscall_time_info *hvclock_mem;
  > 53	DEFINE_PER_CPU(struct pvclock_vsyscall_time_info *, hv_clock_per_cpu);
    54	EXPORT_SYMBOL_GPL(hv_clock_per_cpu);
    55	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux