From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9B38F5CA1 for ; Sun, 20 Feb 2022 11:59:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1645358380; x=1676894380; h=date:from:to:cc:subject:message-id:mime-version; bh=V6t1s+N4Qo02wBaYneDR8yb6gI7yY2iEv7Z2/hqvKfo=; b=cBJlThkY2k/pAnWfMPayMR3svlt8P3lyfWMqnUyIzCBls6pkW0OHdQi+ 01iMeslE1kw+jhG7gZ5ZDVOVPdpPvLYJwHnFqvFe53v1Lvob1iqChIYho 5RLldu9+oDK2/nEuqarRG/Gu4wv9IUyl1S9AwCpGcVPaapyO5K3nwP5pu wCN2MiKb4Y7eAji+6A7Zqj9i0DzeVrP7HLuFpjYjM6sCnIiIbQNq7V918 1Te9TwgwU9uvMz6FShaRe656g9kLpVxp0XOFf/lQzpK/+T/03a/BQFr6Q Pzo9yOB6YvESdwnUUBmWCOCqpCFTjCvGvbtsjG3y1pR8cWqKAK28zVNpg w==; X-IronPort-AV: E=McAfee;i="6200,9189,10263"; a="251118968" X-IronPort-AV: E=Sophos;i="5.88,383,1635231600"; d="scan'208";a="251118968" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2022 03:59:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,383,1635231600"; d="scan'208";a="605967502" Received: from lkp-server01.sh.intel.com (HELO da3212ac2f54) ([10.239.97.150]) by fmsmga004.fm.intel.com with ESMTP; 20 Feb 2022 03:59:38 -0800 Received: from kbuild by da3212ac2f54 with local (Exim 4.92) (envelope-from ) id 1nLksL-0000JR-HN; Sun, 20 Feb 2022 11:59:37 +0000 Date: Sun, 20 Feb 2022 19:58:48 +0800 From: kernel test robot To: Janne Grunau Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Hector Martin Subject: [asahilinux:bits/090-spi-hid 11/11] drivers/hid/spi-hid/spi-hid-apple-core.c:259:22: warning: no previous prototype for function 'spihid_get_data' Message-ID: <202202201900.zV3sUGeO-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) tree: https://github.com/AsahiLinux/linux bits/090-spi-hid head: 6503ad96bc85209be90119188ff30d21612bbbf8 commit: 6503ad96bc85209be90119188ff30d21612bbbf8 [11/11] WIP: HID: transport: spi: add Apple SPI transport config: arm64-randconfig-r005-20220220 (https://download.01.org/0day-ci/archive/20220220/202202201900.zV3sUGeO-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project d271fc04d5b97b12e6b797c6067d3c96a8d7470e) 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/6503ad96bc85209be90119188ff30d21612bbbf8 git remote add asahilinux https://github.com/AsahiLinux/linux git fetch --no-tags asahilinux bits/090-spi-hid git checkout 6503ad96bc85209be90119188ff30d21612bbbf8 # 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/hid/spi-hid/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/hid/spi-hid/spi-hid-apple-core.c:259:22: warning: no previous prototype for function 'spihid_get_data' [-Wmissing-prototypes] struct spihid_apple *spihid_get_data(struct spihid_interface *idev) ^ drivers/hid/spi-hid/spi-hid-apple-core.c:259:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct spihid_apple *spihid_get_data(struct spihid_interface *idev) ^ static drivers/hid/spi-hid/spi-hid-apple-core.c:56:17: warning: variable 'spi_hid_apple_status_ok' is not needed and will not be emitted [-Wunneeded-internal-declaration] static const u8 spi_hid_apple_status_ok[4] = { 0xac, 0x27, 0x68, 0xd5 }; ^ 2 warnings generated. -- >> drivers/hid/spi-hid/spi-hid-apple-of.c:24:5: warning: no previous prototype for function 'spihid_apple_of_power_on' [-Wmissing-prototypes] int spihid_apple_of_power_on(struct spihid_apple_ops *ops) ^ drivers/hid/spi-hid/spi-hid-apple-of.c:24:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int spihid_apple_of_power_on(struct spihid_apple_ops *ops) ^ static >> drivers/hid/spi-hid/spi-hid-apple-of.c:40:5: warning: no previous prototype for function 'spihid_apple_of_power_off' [-Wmissing-prototypes] int spihid_apple_of_power_off(struct spihid_apple_ops *ops) ^ drivers/hid/spi-hid/spi-hid-apple-of.c:40:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int spihid_apple_of_power_off(struct spihid_apple_ops *ops) ^ static >> drivers/hid/spi-hid/spi-hid-apple-of.c:50:5: warning: no previous prototype for function 'spihid_apple_of_enable_irq' [-Wmissing-prototypes] int spihid_apple_of_enable_irq(struct spihid_apple_ops *ops) ^ drivers/hid/spi-hid/spi-hid-apple-of.c:50:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int spihid_apple_of_enable_irq(struct spihid_apple_ops *ops) ^ static >> drivers/hid/spi-hid/spi-hid-apple-of.c:59:5: warning: no previous prototype for function 'spihid_apple_of_disable_irq' [-Wmissing-prototypes] int spihid_apple_of_disable_irq(struct spihid_apple_ops *ops) ^ drivers/hid/spi-hid/spi-hid-apple-of.c:59:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int spihid_apple_of_disable_irq(struct spihid_apple_ops *ops) ^ static 4 warnings generated. vim +/spihid_get_data +259 drivers/hid/spi-hid/spi-hid-apple-core.c 258 > 259 struct spihid_apple *spihid_get_data(struct spihid_interface *idev) 260 { 261 switch (idev->id) { 262 case SPIHID_DEVICE_ID_KBD: 263 return container_of(idev, struct spihid_apple, kbd); 264 case SPIHID_DEVICE_ID_TP: 265 return container_of(idev, struct spihid_apple, tp); 266 default: 267 return NULL; 268 } 269 } 270 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org