From: kernel test robot <lkp@intel.com>
To: Sven Peter <sven@svenpeter.dev>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [asahilinux:nvme-v2 5/6] drivers/soc/apple/rtkit.c:591:21: warning: no previous prototype for 'apple_rtkit_init'
Date: Tue, 5 Apr 2022 22:56:51 +0800 [thread overview]
Message-ID: <202204052220.DC2iBfq3-lkp@intel.com> (raw)
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@intel.com/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@intel.com>
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
reply other threads:[~2022-04-05 23:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202204052220.DC2iBfq3-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sven@svenpeter.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®