Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [pdx86-platform-drivers-x86:review-ilpo-next 94/99] drivers/platform/x86/amd/hsmp/hsmp.h:70:5: warning: no previous prototype for function 'hsmp_create_sensor'
@ 2025-05-12  1:45 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-05-12  1:45 UTC (permalink / raw)
  To: Suma Hegde
  Cc: llvm, oe-kbuild-all, Andy Shevchenko, Hans de Goede,
	Ilpo Järvinen, Naveen Krishna Chatradhi

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git review-ilpo-next
head:   d5251eef71bab8bd0b9ea3fe0005ad3d2553c3bb
commit: 8957cb9cfa76f95aa05b1da514de9b82f04b5a07 [94/99] platform/x86/amd/hsmp: Report power via hwmon sensors
config: i386-buildonly-randconfig-006-20250512 (https://download.01.org/0day-ci/archive/20250512/202505120930.5xrE7jfc-lkp@intel.com/config)
compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250512/202505120930.5xrE7jfc-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/202505120930.5xrE7jfc-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from drivers/platform/x86/amd/hsmp/plat.c:24:
>> drivers/platform/x86/amd/hsmp/hsmp.h:70:5: warning: no previous prototype for function 'hsmp_create_sensor' [-Wmissing-prototypes]
      70 | int hsmp_create_sensor(struct device *dev, u16 sock_ind) { return 0; }
         |     ^
   drivers/platform/x86/amd/hsmp/hsmp.h:70:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
      70 | int hsmp_create_sensor(struct device *dev, u16 sock_ind) { return 0; }
         | ^
         | static 
   1 warning generated.


vim +/hsmp_create_sensor +70 drivers/platform/x86/amd/hsmp/hsmp.h

    58	
    59	int hsmp_cache_proto_ver(u16 sock_ind);
    60	int hsmp_test(u16 sock_ind, u32 value);
    61	long hsmp_ioctl(struct file *fp, unsigned int cmd, unsigned long arg);
    62	void hsmp_misc_deregister(void);
    63	int hsmp_misc_register(struct device *dev);
    64	int hsmp_get_tbl_dram_base(u16 sock_ind);
    65	ssize_t hsmp_metric_tbl_read(struct hsmp_socket *sock, char *buf, size_t size);
    66	struct hsmp_plat_device *get_hsmp_pdev(void);
    67	#if IS_REACHABLE(CONFIG_HWMON)
    68	int hsmp_create_sensor(struct device *dev, u16 sock_ind);
    69	#else
  > 70	int hsmp_create_sensor(struct device *dev, u16 sock_ind) { return 0; }

-- 
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:[~2025-05-12  1:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-12  1:45 [pdx86-platform-drivers-x86:review-ilpo-next 94/99] drivers/platform/x86/amd/hsmp/hsmp.h:70:5: warning: no previous prototype for function 'hsmp_create_sensor' 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