Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp3859339imw; Mon, 11 Jul 2022 18:02:28 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tq8dmQUFvCKnbT15Gl0wdIvrY/6ely+dxOWIMi6acWjY3Uzhr6DfbIFe5XyWp4iN2xWRkA X-Received: by 2002:a63:6909:0:b0:411:994d:1e3e with SMTP id e9-20020a636909000000b00411994d1e3emr18196126pgc.227.1657587748273; Mon, 11 Jul 2022 18:02:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657587748; cv=none; d=google.com; s=arc-20160816; b=saqNsbnMzMB8XIHRFSU3TXtLYEthcOVaBDNupPfIAh2JvkDRK7l7a60pkTuGqJwhIu 0RfTpCXdkcLorRxnoPm8x4Tt9mhUsPrXH28D8ERUADK8kFeyS2CaRAkBdCBX075ZSxpZ ysB8SWFP55a/ii/Md91WagvYb9vcEVGnPmwrt88w/nNNZXP6VfZeTS1Fjh+AVDGKexel cqhcWybG6D5asXo23zvyd8K8QJVKHHPiO662n3zxc6e10tP/g9bsdHEyM72w3YiaZu/6 wsz7LZmdLe3wYN+koOewW2QyQJY6lD34DHSKfBKVN6emub1ZZsY0iO2UhD87f76y6oDl iDxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4SBZINNwXg+vsN0Z2nfC0mtid3j1w6xqHaP5df1tPB0=; b=lmw1Im+YeF93r7w1WbF23jmIhs+6BIi1x6HFVEJNnP4cl00EwDm7Kea7gTMfGnVP0h ivIdq1po4svuwq+qJ1ThN81+ENYcM+GZny8pwXJxfw6buTR6B7Im5OCbz2oY2DVb685h orRqE6Rrs66dobOEjaQBzKmGSJ1Fz80+oiW8Qs8VERK593hbJw2dA75VLlG69IiSaRZb XUmvb2YHA5CFFhpNaw0Bqsk1CCWTTUXjlZx8Oj3GzlJlya71PS4Hpt5k9RC8HCNFfKk4 aoPOUVImYEpo1UCTJxNwsGDD/b8+u6YC7VNLtgArv/4Q7tabqhDJGG9Z3OcGEcq1Qmxr lg/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ldv7tubN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a170902b28600b001676128d04bsi11030535plr.413.2022.07.11.18.02.15; Mon, 11 Jul 2022 18:02:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=Ldv7tubN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231902AbiGLAy5 (ORCPT + 99 others); Mon, 11 Jul 2022 20:54:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229616AbiGLAyz (ORCPT ); Mon, 11 Jul 2022 20:54:55 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 307822A721; Mon, 11 Jul 2022 17:54:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657587294; x=1689123294; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=V6w2sMs8zcctI71jT/jdZW5CM1h96l8zoH9VbyJnAnM=; b=Ldv7tubNo0S98EJKfEhYV3eR54b6saKYfLHbV3vcAeS9oy3Qhgq2cfLm 8UeElwpqLa9TeD70uREOlWVLlzKi2p4LIJSyGbFuVvnRMCT//qjVMq4Gi zFvpZBqBd9+E6gT/CR7vUWDSSCvmfQliyAl+TruCHjRbRLhNU4ZyepbQA BmjnajTHw/2ERg3XllpYCHkx7Cq224BKiwCb5EZPzznHP8YbF9We9FNBL pwJKUXC1wtdn09W2BKbHDRm/iYb557BCcDxmuj2BJiQK7iyx/ZRC8VU83 PBQvBI5sxqdNiNeBbrLueEDU9bsbnJXWnhkoRessmF85uy61tuaCevvYI Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10405"; a="265219256" X-IronPort-AV: E=Sophos;i="5.92,264,1650956400"; d="scan'208";a="265219256" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jul 2022 17:54:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,264,1650956400"; d="scan'208";a="662759318" Received: from lkp-server02.sh.intel.com (HELO 8708c84be1ad) ([10.239.97.151]) by fmsmga004.fm.intel.com with ESMTP; 11 Jul 2022 17:54:48 -0700 Received: from kbuild by 8708c84be1ad with local (Exim 4.95) (envelope-from ) id 1oB4Aq-0001Rz-8h; Tue, 12 Jul 2022 00:54:48 +0000 Date: Tue, 12 Jul 2022 08:54:25 +0800 From: kernel test robot To: Jarrett Schultz , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Catalin Marinas , Will Deacon , Jiri Kosina , Benjamin Tissoires , Bjorn Andersson , Shawn Guo , Geert Uytterhoeven , Marcel Ziswiler , Biju Das , Dmitry Baryshkov , Vinod Koul Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Dmitry Antipov , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Jarrett Schultz Subject: Re: [PATCH v5 5/6] HID: add spi-hid, transport driver for HID over SPI bus Message-ID: <202207120839.Ga8kjAG8-lkp@intel.com> References: <20220707165902.3184-6-jaschultzMS@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220707165902.3184-6-jaschultzMS@gmail.com> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Jarrett, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on hid/for-next] [also build test WARNING on dtor-input/next robh/for-next linus/master v5.19-rc6 next-20220711] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Jarrett-Schultz/Add-spi-hid-transport-for-HID-over-SPI-bus/20220708-010203 base: https://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git for-next config: i386-allyesconfig (https://download.01.org/0day-ci/archive/20220712/202207120839.Ga8kjAG8-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 77a38f6839980bfac61babb40d83772c51427011) 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/intel-lab-lkp/linux/commit/d0121c2f2d1bb21824555c34c233dd3fbc6aee96 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Jarrett-Schultz/Add-spi-hid-transport-for-HID-over-SPI-bus/20220708-010203 git checkout d0121c2f2d1bb21824555c34c233dd3fbc6aee96 # 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=i386 SHELL=/bin/bash drivers/hid/spi-hid/ drivers/md/ drivers/net/ethernet/marvell/prestera/ drivers/vfio/pci/mlx5/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/hid/spi-hid/spi-hid-core.c:193:20: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] static const char *const spi_hid_power_mode_string(u8 power_state) ^~~~~~ >> drivers/hid/spi-hid/spi-hid-core.c:691:4: warning: format specifies type 'unsigned short' but the argument has type '__u32' (aka 'unsigned int') [-Wformat] hid->vendor, hid->product); ^~~~~~~~~~~ drivers/hid/spi-hid/spi-hid-core.c:691:17: warning: format specifies type 'unsigned short' but the argument has type '__u32' (aka 'unsigned int') [-Wformat] hid->vendor, hid->product); ^~~~~~~~~~~~ drivers/hid/spi-hid/spi-hid-core.c:1318:13: error: incompatible function pointer types initializing 'void (*)(struct spi_device *)' with an expression of type 'int (struct spi_device *)' [-Werror,-Wincompatible-function-pointer-types] .remove = spi_hid_remove, ^~~~~~~~~~~~~~ 3 warnings and 1 error generated. -- In file included from drivers/hid/spi-hid/trace.c:9: In file included from drivers/hid/spi-hid/./spi-hid_trace.h:194: In file included from include/trace/define_trace.h:102: In file included from include/trace/trace_events.h:237: >> drivers/hid/spi-hid/./spi-hid_trace.h:140:92: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] TP_printk("spi%d.%d: (%04x:%04x v%d) HID v%d.%d state i:%d p:%d len i:%d o:%d r:%d flags %c", ~^ include/trace/stages/stage3_trace_output.h:9:33: note: expanded from macro 'TP_printk' #define TP_printk(fmt, args...) fmt "\n", args ^~~ include/trace/trace_events.h:203:27: note: expanded from macro 'DECLARE_EVENT_CLASS' trace_event_printf(iter, print); \ ^~~~~ 1 warning generated. vim +/const +193 drivers/hid/spi-hid/spi-hid-core.c 192 > 193 static const char *const spi_hid_power_mode_string(u8 power_state) 194 { 195 switch (power_state) { 196 case SPI_HID_POWER_MODE_ON: 197 return "d0"; 198 case SPI_HID_POWER_MODE_SLEEP: 199 return "d2"; 200 case SPI_HID_POWER_MODE_OFF: 201 return "d3"; 202 case SPI_HID_POWER_MODE_WAKING_SLEEP: 203 return "d3*"; 204 default: 205 return "unknown"; 206 } 207 } 208 -- 0-DAY CI Kernel Test Service https://01.org/lkp