Messages in this thread |  | | Date | Sun, 3 Apr 2022 22:57:31 +0800 | From | kernel test robot <> | Subject | [asahilinux:nvme-v2 5/6] drivers/soc/apple/rtkit.c:575:21: warning: no previous prototype for 'apple_rtkit_init' |
| |
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/202204032241.T4QW8bQo-lkp@intel.com/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 <lkp@intel.com>
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
|  |