All of lore.kernel.org
 help / color / mirror / Atom feed
* [openeuler:OLK-5.10 29649/30000] drivers/ub/urma/ubcore/ubcore_device.c:393:23: warning: no previous prototype for function 'ubcore_find_tpf_device_legacy'
@ 2024-02-24 13:03 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-02-24 13:03 UTC (permalink / raw)
  To: kernel, WenChen; +Cc: oe-kbuild-all

tree:   https://gitee.com/openeuler/kernel.git OLK-5.10
head:   4fee6fdef7d687d6ce43289fd7e7f96fde039af0
commit: 329bf7f331286ee5d571d374e31ed50d2877b110 [29649/30000] ubcore: fix the bug of tp negotiation concurrency
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20240224/202402242102.SLiva8Ut-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240224/202402242102.SLiva8Ut-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/202402242102.SLiva8Ut-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/ub/urma/ubcore/ubcore_device.c:306:6: warning: no previous prototype for function 'ubcore_destroy_upi_list' [-Wmissing-prototypes]
     306 | void ubcore_destroy_upi_list(void)
         |      ^
   drivers/ub/urma/ubcore/ubcore_device.c:306:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     306 | void ubcore_destroy_upi_list(void)
         | ^
         | static 
>> drivers/ub/urma/ubcore/ubcore_device.c:393:23: warning: no previous prototype for function 'ubcore_find_tpf_device_legacy' [-Wmissing-prototypes]
     393 | struct ubcore_device *ubcore_find_tpf_device_legacy(void)
         |                       ^
   drivers/ub/urma/ubcore/ubcore_device.c:393:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     393 | struct ubcore_device *ubcore_find_tpf_device_legacy(void)
         | ^
         | static 
   2 warnings generated.
--
   drivers/ub/urma/ubcore/ubcore_tp.c:66:17: warning: no previous prototype for function 'ubcore_get_mtu' [-Wmissing-prototypes]
      66 | enum ubcore_mtu ubcore_get_mtu(int mtu)
         |                 ^
   drivers/ub/urma/ubcore/ubcore_tp.c:66:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
      66 | enum ubcore_mtu ubcore_get_mtu(int mtu)
         | ^
         | static 
>> drivers/ub/urma/ubcore/ubcore_tp.c:392:5: warning: no previous prototype for function 'ubcore_modify_tp_state' [-Wmissing-prototypes]
     392 | int ubcore_modify_tp_state(struct ubcore_device *dev, struct ubcore_tp *tp,
         |     ^
   drivers/ub/urma/ubcore/ubcore_tp.c:392:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     392 | int ubcore_modify_tp_state(struct ubcore_device *dev, struct ubcore_tp *tp,
         | ^
         | static 
   drivers/ub/urma/ubcore/ubcore_tp.c:894:19: warning: no previous prototype for function 'ubcore_create_vtp' [-Wmissing-prototypes]
     894 | struct ubcore_tp *ubcore_create_vtp(struct ubcore_device *dev, union ubcore_eid *remote_eid,
         |                   ^
   drivers/ub/urma/ubcore/ubcore_tp.c:894:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     894 | struct ubcore_tp *ubcore_create_vtp(struct ubcore_device *dev, union ubcore_eid *remote_eid,
         | ^
         | static 
   drivers/ub/urma/ubcore/ubcore_tp.c:920:5: warning: no previous prototype for function 'ubcore_destroy_vtp' [-Wmissing-prototypes]
     920 | int ubcore_destroy_vtp(struct ubcore_tp *vtp)
         |     ^
   drivers/ub/urma/ubcore/ubcore_tp.c:920:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     920 | int ubcore_destroy_vtp(struct ubcore_tp *vtp)
         | ^
         | static 
   4 warnings generated.
--
>> drivers/ub/urma/uburma/uburma_main.c:640:6: warning: no previous prototype for function 'uburma_dev_accessible_by_ns' [-Wmissing-prototypes]
     640 | bool uburma_dev_accessible_by_ns(struct uburma_device *ubu_dev, struct net *net)
         |      ^
   drivers/ub/urma/uburma/uburma_main.c:640:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     640 | bool uburma_dev_accessible_by_ns(struct uburma_device *ubu_dev, struct net *net)
         | ^
         | static 
>> drivers/ub/urma/uburma/uburma_main.c:665:5: warning: no previous prototype for function 'uburma_set_dev_ns' [-Wmissing-prototypes]
     665 | int uburma_set_dev_ns(char *device_name, int ns_fd)
         |     ^
   drivers/ub/urma/uburma/uburma_main.c:665:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     665 | int uburma_set_dev_ns(char *device_name, int ns_fd)
         | ^
         | static 
>> drivers/ub/urma/uburma/uburma_main.c:723:5: warning: no previous prototype for function 'uburma_set_ns_mode' [-Wmissing-prototypes]
     723 | int uburma_set_ns_mode(bool shared)
         |     ^
   drivers/ub/urma/uburma/uburma_main.c:723:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
     723 | int uburma_set_ns_mode(bool shared)
         | ^
         | static 
   3 warnings generated.


vim +/ubcore_find_tpf_device_legacy +393 drivers/ub/urma/ubcore/ubcore_device.c

   392	
 > 393	struct ubcore_device *ubcore_find_tpf_device_legacy(void)
   394	{
   395		if (g_tpf == NULL)
   396			ubcore_log_err("tpf is not registered yet");
   397	
   398		ubcore_get_device(g_tpf);
   399		return g_tpf;
   400	}
   401	

-- 
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:[~2024-02-24 13:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-24 13:03 [openeuler:OLK-5.10 29649/30000] drivers/ub/urma/ubcore/ubcore_device.c:393:23: warning: no previous prototype for function 'ubcore_find_tpf_device_legacy' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.