All of lore.kernel.org
 help / color / mirror / Atom feed
* [asahilinux:nvme-v2 5/6] drivers/soc/apple/rtkit.c:575:21: warning: no previous prototype for function 'apple_rtkit_init'
@ 2022-04-03 15:59 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-03 15:59 UTC (permalink / raw)
  To: Sven Peter; +Cc: llvm, kbuild-all, linux-kernel

tree:   https://github.com/AsahiLinux/linux nvme-v2
head:   1c4210208a7dffa2a6697b0be5fa1da9f2bc448c
commit: 49f954ccdfe134d00b9e17b9ff5186a47725c6bf [5/6] soc: apple: Add RTKit IPC library
config: arm64-randconfig-r015-20220403 (https://download.01.org/0day-ci/archive/20220403/202204032336.1xnXEpJ7-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project c4a1b07d0979e7ff20d7d541af666d822d66b566)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install arm64 cross compiling tool for clang build
        # apt-get install binutils-aarch64-linux-gnu
        # https://github.com/AsahiLinux/linux/commit/49f954ccdfe134d00b9e17b9ff5186a47725c6bf
        git remote add asahilinux https://github.com/AsahiLinux/linux
        git fetch --no-tags asahilinux nvme-v2
        git checkout 49f954ccdfe134d00b9e17b9ff5186a47725c6bf
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/soc/apple/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/soc/apple/rtkit.c:575:21: warning: no previous prototype for function 'apple_rtkit_init' [-Wmissing-prototypes]
   struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie,
                       ^
   drivers/soc/apple/rtkit.c:575:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie,
   ^
   static 
>> drivers/soc/apple/rtkit.c:789:6: warning: no previous prototype for function 'apple_rtkit_free' [-Wmissing-prototypes]
   void apple_rtkit_free(struct apple_rtkit *rtk)
        ^
   drivers/soc/apple/rtkit.c:789:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void apple_rtkit_free(struct apple_rtkit *rtk)
   ^
   static 
   2 warnings generated.


vim +/apple_rtkit_init +575 drivers/soc/apple/rtkit.c

   574	
 > 575	struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie,
   576					     const char *mbox_name, int mbox_idx,
   577					     const struct apple_rtkit_ops *ops)
   578	{
   579		struct apple_rtkit *rtk;
   580		int ret;
   581	
   582		if (!ops)
   583			return ERR_PTR(-EINVAL);
   584	
   585		rtk = kzalloc(sizeof(*rtk), GFP_KERNEL);
   586		if (!rtk)
   587			return ERR_PTR(-ENOMEM);
   588	
   589		rtk->dev = dev;
   590		rtk->cookie = cookie;
   591		rtk->ops = ops;
   592	
   593		init_completion(&rtk->epmap_completion);
   594		init_completion(&rtk->reinit_completion);
   595		init_completion(&rtk->iop_pwr_ack_completion);
   596		init_completion(&rtk->ap_pwr_ack_completion);
   597	
   598		bitmap_zero(rtk->endpoints, APPLE_RTKIT_MAX_ENDPOINTS);
   599		set_bit(APPLE_RTKIT_EP_MGMT, rtk->endpoints);
   600	
   601		rtk->mbox_name = mbox_name;
   602		rtk->mbox_idx = mbox_idx;
   603		rtk->mbox_cl.dev = dev;
   604		rtk->mbox_cl.tx_block = true;
   605		rtk->mbox_cl.knows_txdone = false;
   606		rtk->mbox_cl.rx_callback = &apple_rtkit_rx_callback;
   607	
   608		ret = apple_rtkit_request_mbox_chan(rtk);
   609		if (ret)
   610			return (struct apple_rtkit *)ERR_PTR(ret);
   611	
   612		return rtk;
   613	}
   614	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-04-03 16:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-03 15:59 [asahilinux:nvme-v2 5/6] drivers/soc/apple/rtkit.c:575:21: warning: no previous prototype for function 'apple_rtkit_init' 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.