From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A7021C433F5 for ; Sun, 3 Apr 2022 16:00:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359308AbiDCQCc (ORCPT ); Sun, 3 Apr 2022 12:02:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236415AbiDCQC3 (ORCPT ); Sun, 3 Apr 2022 12:02:29 -0400 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ADBD340FA for ; Sun, 3 Apr 2022 09:00:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1649001635; x=1680537635; h=date:from:to:cc:subject:message-id:mime-version; bh=+/ypF/YPTV/X3Gzog/+9OJoarfhftw4HnrnQQkEePBQ=; b=JBHBkwOEQFDTdquqSG1ivZdMlXAKJbCELMdMk/gHUn4puwnweM2r81mX IvrIjxIUY9AO2uDPX2ez/r7bS0MVDcqERIFpKvPYfJNj9VTUv9GGIp8Hr 9ilr0QWDTN7N+OO1/94SKLU39IOg4SgZUtEpECo86vlh8S6w5VxfcLvku fjLcJw8TCVunuWNkbnxvkbs5F8CFNtIrXicUE+r3NUgwTcTCNUpNUbHUL TIE3mDwv4SiRr6Q/icfpMn5k1yd+TY/bO5ybBA7S+2USRDIYYcJiW297N dovLxHENZpjRfOq1l422jAmTu0756kqXF+KfMlUD9wyKYfVK4RCs1MKnH w==; X-IronPort-AV: E=McAfee;i="6200,9189,10306"; a="259223781" X-IronPort-AV: E=Sophos;i="5.90,231,1643702400"; d="scan'208";a="259223781" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Apr 2022 09:00:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,231,1643702400"; d="scan'208";a="548384835" Received: from lkp-server02.sh.intel.com (HELO a44fdfb70b94) ([10.239.97.151]) by orsmga007.jf.intel.com with ESMTP; 03 Apr 2022 09:00:33 -0700 Received: from kbuild by a44fdfb70b94 with local (Exim 4.95) (envelope-from ) id 1nb2eW-00014b-Ov; Sun, 03 Apr 2022 16:00:32 +0000 Date: Sun, 3 Apr 2022 23:59:48 +0800 From: kernel test robot To: Sven Peter Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [asahilinux:nvme-v2 5/6] drivers/soc/apple/rtkit.c:575:21: warning: no previous prototype for function 'apple_rtkit_init' Message-ID: <202204032336.1xnXEpJ7-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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