[agraf-2.6:kvm-kho-gmem-test 5/27] include/linux/kexec.h:537:42: warning: declaration of 'struct kimage' will not be visible outside of this function

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

 



tree:   https://github.com/agraf/linux-2.6.git kvm-kho-gmem-test
head:   9a58862a298a63bad21d05191e28b857063bb9dc
commit: 4d945e934565554b4f997c57162e833303f56cb0 [5/27] kexec: Add KHO support to kexec file loads
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20240505/202405050113.Kgjow73K-lkp@xxxxxxxxx/config)
compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 37ae4ad0eef338776c7e2cffb3896153d43dcd90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240505/202405050113.Kgjow73K-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202405050113.Kgjow73K-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from kernel/panic.c:15:
   In file included from include/linux/kgdb.h:19:
   In file included from include/linux/kprobes.h:28:
   In file included from include/linux/ftrace.h:13:
   In file included from include/linux/kallsyms.h:13:
   In file included from include/linux/mm.h:2208:
   include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
     522 |         return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
         |                               ~~~~~~~~~~~ ^ ~~~
   In file included from kernel/panic.c:25:
>> include/linux/kexec.h:537:42: warning: declaration of 'struct kimage' will not be visible outside of this function [-Wvisibility]
     537 | static inline int kho_fill_kimage(struct kimage *image) { return 0; }
         |                                          ^
   2 warnings generated.


vim +537 include/linux/kexec.h

   534	
   535	/* egest handover metadata */
   536	static inline void kho_reserve_scratch(void) { }
 > 537	static inline int kho_fill_kimage(struct kimage *image) { return 0; }
   538	static inline int register_kho_notifier(struct notifier_block *nb) { return -EINVAL; }
   539	static inline int unregister_kho_notifier(struct notifier_block *nb) { return -EINVAL; }
   540	static inline bool kho_is_active(void) { return false; }
   541	#endif
   542	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux