public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [intel-tdx:guest 102/136] arch/x86/kernel/tdx.c:712:15: warning: no previous prototype for function 'tdx_mmio_readq'
@ 2023-12-17  0:02 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-17  0:02 UTC (permalink / raw)
  To: Andi Kleen; +Cc: llvm, oe-kbuild-all, Kuppuswamy Sathyanarayanan

tree:   https://github.com/intel/tdx.git guest
head:   f3d7a7e86bf2f0d5ce629f2fb7be11dca88ac06d
commit: c2b75088b70d45a8b98121cd1c4a4fa1380d4cf7 [102/136] x86/tdx: Enable direct iomap MMIO optimizations
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20231217/202312170729.Pla2YVag-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312170729.Pla2YVag-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312170729.Pla2YVag-lkp@intel.com/

All warnings (new ones prefixed by >>):

   arch/x86/kernel/tdx.c:267:5: warning: no previous prototype for function 'tdx_hcall_set_notify_intr' [-Wmissing-prototypes]
   int tdx_hcall_set_notify_intr(u8 vector)
       ^
   arch/x86/kernel/tdx.c:267:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int tdx_hcall_set_notify_intr(u8 vector)
   ^
   static 
   arch/x86/kernel/tdx.c:490:14: warning: no previous prototype for function 'tdx_write_msr' [-Wmissing-prototypes]
   void notrace tdx_write_msr(unsigned int msr, u32 low, u32 high)
                ^
   arch/x86/kernel/tdx.c:490:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void notrace tdx_write_msr(unsigned int msr, u32 low, u32 high)
   ^
   static 
>> arch/x86/kernel/tdx.c:712:15: warning: no previous prototype for function 'tdx_mmio_readq' [-Wmissing-prototypes]
   unsigned long tdx_mmio_readq(void __iomem *addr)
                 ^
   arch/x86/kernel/tdx.c:712:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   unsigned long tdx_mmio_readq(void __iomem *addr)
   ^
   static 
   3 warnings generated.


vim +/tdx_mmio_readq +712 arch/x86/kernel/tdx.c

   711	
 > 712	unsigned long tdx_mmio_readq(void __iomem *addr)
   713	{
   714		unsigned long val;
   715	
   716		if (tdx_virt_mmio(8, false, (unsigned long)addr, &val))
   717			return 0xffffffffffffffff;
   718		return val;
   719	}
   720	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-17  0:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-17  0:02 [intel-tdx:guest 102/136] arch/x86/kernel/tdx.c:712:15: warning: no previous prototype for function 'tdx_mmio_readq' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox