public inbox for [email protected]
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Sven Peter <[email protected]>
Cc: [email protected], [email protected]
Subject: [asahilinux:nvme-v2 5/6] drivers/soc/apple/rtkit.c:575:21: warning: no previous prototype for 'apple_rtkit_init'
Date: Sun, 3 Apr 2022 22:57:31 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

tree:   https://github.com/AsahiLinux/linux nvme-v2
head:   1c4210208a7dffa2a6697b0be5fa1da9f2bc448c
commit: 49f954ccdfe134d00b9e17b9ff5186a47725c6bf [5/6] soc: apple: Add RTKit IPC library
config: sparc-allyesconfig (https://download.01.org/0day-ci/archive/20220403/[email protected]/config)
compiler: sparc64-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/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=gcc-11.2.0 make.cross O=build_dir ARCH=sparc SHELL=/bin/bash drivers/soc/apple/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>

All warnings (new ones prefixed by >>):

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


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


                 reply	other threads:[~2022-04-03 14:58 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 \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /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