Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp243711iob; Mon, 2 May 2022 18:18:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJytvuBpiF+oTZkCUHIiXj5yEF1P8Laz95UuGGrhnmEiB1oIC5OY+PweNMnGDcmn/DHyMnt1 X-Received: by 2002:a17:902:e94f:b0:14f:1636:c8a8 with SMTP id b15-20020a170902e94f00b0014f1636c8a8mr14191093pll.130.1651540737254; Mon, 02 May 2022 18:18:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651540737; cv=none; d=google.com; s=arc-20160816; b=uu8rToypuI0ha/LSK+WqE4zLkJiFJ9n+OR+ab6pM32+OafdGMzVT0/GnpLo5pIVV2c jispxL7+KlMTp5n7AErf63V2D3SppB6jmbdV5PhvRW8CHPNOH0KZsTmWli9P1/oTdizS MSWswYrTMBj7yihbds0TA/8zTgX2b211uI3L1wKanMfGy//LYGA4cOVayIj8EQacZmJ3 3aZnnSfiNz5V0e5McLY768IAFaEV9uxusQgRbZ8dZ5Lqw3gV5glDYWBCpJLin0k0lanq PBlRzHhDD7qwoiAILyByqL02haV8432/+4nTc9VF8FWF9qmtbbf0bGtQzeW2oKxTOFAI fkoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:to:from:date:dkim-signature; bh=IhmwYJkVJa7Ul4F+nu8IyzzLDrkx51gk8JhypXLNc2Q=; b=nD5baST3BNEBLV8irdnB0R3TMYgomrkNw1X9cO2mz5lalDFMfBNo3YaHbaSokb5VjG 85YlORqhwxHq1JHL0eNSnFX1wEXN5PhNXSxdrkXtmS8yTWlUL7EZTyyOmmGDb8fro+ge ffw/sqXsXBXzn+2Jx3wO3X0RrQIm/5zFH9D43m2GG33vbOTCgRyOCE7PDhJG12FwKsig 2ZWA8NICiR97RTUwi1wnEt6xgwBnCnJcxzgJgO3oQttv1+a8WwNCfN0K08BSSJXFn6xj NDfMbPKTeEZUJR4LduHWo5m/7OF3vAKFDYBD+9kcy7RiHl91ocVursf9t1PnY+yGpGxG Xlbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CglC6ij+; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id t38-20020a056a0013a600b0050de1250e53si5741357pfg.258.2022.05.02.18.18.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 May 2022 18:18:57 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CglC6ij+; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 79D7252B35; Mon, 2 May 2022 17:58:25 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1387246AbiEBUUg (ORCPT + 99 others); Mon, 2 May 2022 16:20:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352110AbiEBUUf (ORCPT ); Mon, 2 May 2022 16:20:35 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61269BCAB for ; Mon, 2 May 2022 13:17:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1651522625; x=1683058625; h=date:from:to:cc:subject:message-id:mime-version; bh=TDgkeaExvvU4MUaWhsjsOW8SUcyecyq5v6Ttz09eSDk=; b=CglC6ij+PIVE626rB/QXGEnhz0NkhvqFGhAj5m1Cdgq6Gk8/R1lDBI3P QUrwbvsudKDr+wfukYvjjDzyiI4nfYQjtzuH0LP+e3k/d5WchH28RVfMU CpsZzgVoSBMd3M4kul7qj0FoX6h0cWTnvayrJZDXx2X3ft9l+cE2ISr9I nmuGiAIQJqil7zOz5VNoqY39jpomzdSoO4yWESMoh0E/WB+2n47iedhF0 N90JprHnjcngwol0Qxh4lJoIrelF7oJeEZ2Q3yiVP8SsklICcVrMkEDQM vk0uZxi34+f/kxX5PLV94WVZVcrVPZ/ZMRpmtOc5+v5zWqsC52zY6KxMD w==; X-IronPort-AV: E=McAfee;i="6400,9594,10335"; a="247227691" X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="247227691" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 May 2022 13:17:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,193,1647327600"; d="scan'208";a="546602152" Received: from lkp-server01.sh.intel.com (HELO 5056e131ad90) ([10.239.97.150]) by orsmga002.jf.intel.com with ESMTP; 02 May 2022 13:17:02 -0700 Received: from kbuild by 5056e131ad90 with local (Exim 4.95) (envelope-from ) id 1nlcTd-0009qH-Lh; Mon, 02 May 2022 20:17:01 +0000 Date: Tue, 3 May 2022 04:16:28 +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: <202205030410.6Owech62-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: https://github.com/AsahiLinux/linux bits/090-spi-hid head: 11b586fd5cff82ad72e9a281c0deb27959d16857 commit: 11b586fd5cff82ad72e9a281c0deb27959d16857 [11/11] WIP: HID: transport: spi: add Apple SPI transport config: arm64-allmodconfig (https://download.01.org/0day-ci/archive/20220503/202205030410.6Owech62-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 09325d36061e42b495d1f4c7e933e260eac260ed) 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/11b586fd5cff82ad72e9a281c0deb27959d16857 git remote add asahilinux https://github.com/AsahiLinux/linux git fetch --no-tags asahilinux bits/090-spi-hid git checkout 11b586fd5cff82ad72e9a281c0deb27959d16857 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash drivers/dma/ 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 https://01.org/lkp