Hi Jason, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on kvm/linux-next] [also build test WARNING on v5.7-rc1 next-20200415] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system. BTW, we also suggest to use '--base' option to specify the base tree in git format-patch, please see https://stackoverflow.com/a/37406982] url: https://github.com/0day-ci/linux/commits/Jason-Yan/x86-kvm-make-steal_time-static/20200416-010910 base: https://git.kernel.org/pub/scm/virt/kvm/kvm.git linux-next config: i386-debian-10.3 (attached as .config) compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0 reproduce: # save the attached .config to linux build tree make ARCH=i386 If you fix the issue, kindly add following tag as appropriate Reported-by: kbuild test robot All warnings (new ones prefixed by >>): In file included from include/asm-generic/percpu.h:7:0, from arch/x86/include/asm/percpu.h:556, from arch/x86/include/asm/current.h:6, from include/linux/sched.h:12, from include/linux/context_tracking.h:5, from arch/x86/kernel/kvm.c:10: >> arch/x86/kernel/kvm.c:58:40: warning: '__externally_visible__' attribute have effect only on public objects [-Wattributes] static DEFINE_PER_CPU_DECRYPTED(struct kvm_steal_time, steal_time) __aligned(64) __visible; ^ include/linux/percpu-defs.h:104:31: note: in definition of macro 'DEFINE_PER_CPU_SECTION' __PCPU_ATTRS(sec) __typeof__(type) name ^~~~ >> include/linux/percpu-defs.h:185:46: note: in expansion of macro 'DEFINE_PER_CPU' #define DEFINE_PER_CPU_DECRYPTED(type, name) DEFINE_PER_CPU(type, name) ^~~~~~~~~~~~~~ >> arch/x86/kernel/kvm.c:58:8: note: in expansion of macro 'DEFINE_PER_CPU_DECRYPTED' static DEFINE_PER_CPU_DECRYPTED(struct kvm_steal_time, steal_time) __aligned(64) __visible; ^~~~~~~~~~~~~~~~~~~~~~~~ vim +/__externally_visible__ +58 arch/x86/kernel/kvm.c > 10 #include 11 #include 12 #include 13 #include 14 #include 15 #include 16 #include 17 #include 18 #include 19 #include 20 #include 21 #include 22 #include 23 #include 24 #include 25 #include 26 #include 27 #include 28 #include 29 #include 30 #include 31 #include 32 #include 33 #include 34 #include 35 #include 36 #include 37 38 static int kvmapf = 1; 39 40 static int __init parse_no_kvmapf(char *arg) 41 { 42 kvmapf = 0; 43 return 0; 44 } 45 46 early_param("no-kvmapf", parse_no_kvmapf); 47 48 static int steal_acc = 1; 49 static int __init parse_no_stealacc(char *arg) 50 { 51 steal_acc = 0; 52 return 0; 53 } 54 55 early_param("no-steal-acc", parse_no_stealacc); 56 57 static DEFINE_PER_CPU_DECRYPTED(struct kvm_vcpu_pv_apf_data, apf_reason) __aligned(64); > 58 static DEFINE_PER_CPU_DECRYPTED(struct kvm_steal_time, steal_time) __aligned(64) __visible; 59 static int has_steal_clock = 0; 60 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org