[asahilinux:nvme-v2 5/6] drivers/soc/apple/rtkit.c:591:21: warning: no previous prototype for 'apple_rtkit_init'

From: kernel test robot
Date: Tue Apr 05 2022 - 19:41:35 EST


tree: https://github.com/AsahiLinux/linux nvme-v2
head: 76835054c23e3e3505f5967d8580d86618aca6ec
commit: 689dd69e59bb68b19066104c34670d5dc272c946 [5/6] soc: apple: Add RTKit IPC library
config: ia64-buildonly-randconfig-r002-20220405 (https://download.01.org/0day-ci/archive/20220405/202204052220.DC2iBfq3-lkp@xxxxxxxxx/config)
compiler: ia64-linux-gcc (GCC) 11.2.0
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
# https://github.com/AsahiLinux/linux/commit/689dd69e59bb68b19066104c34670d5dc272c946
git remote add asahilinux https://github.com/AsahiLinux/linux
git fetch --no-tags asahilinux nvme-v2
git checkout 689dd69e59bb68b19066104c34670d5dc272c946
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=ia64 SHELL=/bin/bash drivers/soc/apple/

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

All warnings (new ones prefixed by >>):

>> drivers/soc/apple/rtkit.c:591:21: warning: no previous prototype for 'apple_rtkit_init' [-Wmissing-prototypes]
591 | struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie,
| ^~~~~~~~~~~~~~~~
>> drivers/soc/apple/rtkit.c:805:6: warning: no previous prototype for 'apple_rtkit_free' [-Wmissing-prototypes]
805 | void apple_rtkit_free(struct apple_rtkit *rtk)
| ^~~~~~~~~~~~~~~~


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

590
> 591 struct apple_rtkit *apple_rtkit_init(struct device *dev, void *cookie,
592 const char *mbox_name, int mbox_idx,
593 const struct apple_rtkit_ops *ops)
594 {
595 struct apple_rtkit *rtk;
596 int ret;
597
598 if (!ops)
599 return ERR_PTR(-EINVAL);
600
601 rtk = kzalloc(sizeof(*rtk), GFP_KERNEL);
602 if (!rtk)
603 return ERR_PTR(-ENOMEM);
604
605 rtk->dev = dev;
606 rtk->cookie = cookie;
607 rtk->ops = ops;
608
609 init_completion(&rtk->epmap_completion);
610 init_completion(&rtk->reinit_completion);
611 init_completion(&rtk->iop_pwr_ack_completion);
612 init_completion(&rtk->ap_pwr_ack_completion);
613
614 bitmap_zero(rtk->endpoints, APPLE_RTKIT_MAX_ENDPOINTS);
615 set_bit(APPLE_RTKIT_EP_MGMT, rtk->endpoints);
616
617 rtk->mbox_name = mbox_name;
618 rtk->mbox_idx = mbox_idx;
619 rtk->mbox_cl.dev = dev;
620 rtk->mbox_cl.tx_block = true;
621 rtk->mbox_cl.knows_txdone = false;
622 rtk->mbox_cl.rx_callback = &apple_rtkit_rx_callback;
623
624 ret = apple_rtkit_request_mbox_chan(rtk);
625 if (ret)
626 return (struct apple_rtkit *)ERR_PTR(ret);
627
628 return rtk;
629 }
630

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