Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp817765rdb; Wed, 1 Nov 2023 03:57:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6RZ1RpvhjAc17eV/pPafk7WuL3KiAX4AUxdilG5BdKS3iYignlLfpx3AIbxa3+5Ah43nf X-Received: by 2002:a17:907:806:b0:9b2:b269:d563 with SMTP id wv6-20020a170907080600b009b2b269d563mr1750337ejb.63.1698836238798; Wed, 01 Nov 2023 03:57:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698836238; cv=none; d=google.com; s=arc-20160816; b=VwW084Jnbiyce0v9o+mmQxvOujhHWberMMJhBO2aJvacM04O2tx2oS7CU0GZwdFMmE RGG8hOYSeRdUVSYfIfUkOplRQFmPgTBtGTi7eek6MVuS3wM6/bUVZwoBH1U0Hopg1gaW IIsTfaA6z5Xn/5aLTCPU7LWegglXBuDfixhNbE2dJh8YO+RL0+AcPm6ku2bTDCAI2vWo 4AQUpaNNa11TrX31FCiv5aBkDCQIFKVFGmogYdGf5dfCpFlmPGdG5V/pw0oPeaPNWqED 3exlrKn3bNlC200EM0ccb2dJRB99P7AMd1v/dM8PlRxu8XHFyPhQgjRpxDEWYJWySC7t vK8w== 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=fS1SofLEhTWzdO9JlkMGQxkvt5xsXXk12PsCbhIC9jQ=; fh=bFKHfOaQVAnuBWC4/Xfj3VdV/Ue/u6XWjp9j/eDAw4o=; b=d6ZEBWzOiRauLlVK7JtkTmqD6rhleEeOAZOiM6Th8ZPsqUXpkzCwtzQIQoypmWIkZ7 Znhn8JAcEj7TNCnwBeVUoywk3bSkZ4bVYrBXwUrkhpiVHlOKswQlRH51B5lKtwH4lCva Dj1xxEJxA0o0AAVYfwPQ8NY1dPhyVLbTVVC4fQqiT7+1vt7Rbg7lxCqTicI7VPNfcLJ+ +EJ5xKhPkK3sJPfnyN6Hu7gd9hkVPdts52h9wA70rLCC9AEaTdnIYvd8hukmzGQBE99P 7Tj1ODyPJleENmqKgxqzOkeZBI81HxAO/ByZSRqU5FQYSFamkpbZx1H50Fi0OvQ5lI0g EgAQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=joACo38Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id ne35-20020a1709077ba300b009b28213ba5esi1396073ejc.268.2023.11.01.03.57.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 03:57:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=joACo38Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C0E8F809EE05; Wed, 1 Nov 2023 03:57:11 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234882AbjKAK46 (ORCPT + 99 others); Wed, 1 Nov 2023 06:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234064AbjKAK4t (ORCPT ); Wed, 1 Nov 2023 06:56:49 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CA57122; Wed, 1 Nov 2023 03:56:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1698836200; x=1730372200; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8XoIBvJBqu2UWQDbjlJ+l/oehOtNlARvyRZhwkORV84=; b=joACo38YsW5rDnNlEJ/Xxzw8zZ4RCx2y3xv8BxVCtX3YPx4W9W1nYcfG xp88PbhiETi1IQesFchd89jVpW6MEtxi0eKJlTF6RED7jYQvgXNeAVfZk 1kH0MAqpUePfQu1PUPN43M370FjomDlqFMsQkuhmjQO2BW2yfx8Q6anIG uqjj4khol5TpDT2C+lDDe9zPIHOQyQVUmXpZulQqupMFIxyqc2aBi/0NI R6dUf9d1YvzDIR6HciZZliI9qGt4bza8O8P0s1C7CZP1++I3+P/TPiOwa usJbrb4/Ni4NnOXOkts/Dq3A/jlNIlEa+Z0veAhx29w6vlw8qCFzuFF7Q A==; X-IronPort-AV: E=McAfee;i="6600,9927,10880"; a="454948364" X-IronPort-AV: E=Sophos;i="6.03,268,1694761200"; d="scan'208";a="454948364" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Nov 2023 03:56:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.03,268,1694761200"; d="scan'208";a="8632388" Received: from lkp-server01.sh.intel.com (HELO 17d9e85e5079) ([10.239.97.150]) by orviesa001.jf.intel.com with ESMTP; 01 Nov 2023 03:56:37 -0700 Received: from kbuild by 17d9e85e5079 with local (Exim 4.96) (envelope-from ) id 1qy8tm-0000lM-1L; Wed, 01 Nov 2023 10:56:34 +0000 Date: Wed, 1 Nov 2023 18:56:14 +0800 From: kernel test robot To: David Ober , linux-hwmon@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, jdelvare@suse.com, linux@roeck-us.net, corbet@lwn.net, dober@lenovo.com, mpearson-lenovo@squebb.ca, David Ober Subject: Re: [PATCH v2] hwmon:Add MEC172x Micro Chip driver for Lenovo motherboards Message-ID: <202311011858.M1Ui9wp1-lkp@intel.com> References: <20231031154930.4908-1-dober6023@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231031154930.4908-1-dober6023@gmail.com> X-Spam-Status: No, score=-1.3 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Wed, 01 Nov 2023 03:57:11 -0700 (PDT) Hi David, kernel test robot noticed the following build warnings: [auto build test WARNING on groeck-staging/hwmon-next] [also build test WARNING on linus/master v6.6 next-20231101] [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/David-Ober/hwmon-Add-MEC172x-Micro-Chip-driver-for-Lenovo-motherboards/20231031-235345 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next patch link: https://lore.kernel.org/r/20231031154930.4908-1-dober6023%40gmail.com patch subject: [PATCH v2] hwmon:Add MEC172x Micro Chip driver for Lenovo motherboards config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20231101/202311011858.M1Ui9wp1-lkp@intel.com/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231101/202311011858.M1Ui9wp1-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311011858.M1Ui9wp1-lkp@intel.com/ All warnings (new ones prefixed by >>): drivers/hwmon/lenovo-ec-sensors.c: In function 'get_ec_reg': drivers/hwmon/lenovo-ec-sensors.c:36:25: error: implicit declaration of function 'inb_p'; did you mean 'int_pow'? [-Werror=implicit-function-declaration] 36 | #define io_read8(a) inb_p(a) | ^~~~~ drivers/hwmon/lenovo-ec-sensors.c:45:13: note: in expansion of macro 'io_read8' 45 | if (io_read8(MCHP_EMI0_APPLICATION_ID) != 0) /* EMI access locked */ | ^~~~~~~~ drivers/hwmon/lenovo-ec-sensors.c:35:25: error: implicit declaration of function 'outb_p' [-Werror=implicit-function-declaration] 35 | #define io_write8(a, b) outb_p(b, a) | ^~~~~~ drivers/hwmon/lenovo-ec-sensors.c:48:9: note: in expansion of macro 'io_write8' 48 | io_write8(MCHP_EMI0_APPLICATION_ID, 0x01); | ^~~~~~~~~ drivers/hwmon/lenovo-ec-sensors.c: In function 'get_platform': >> drivers/hwmon/lenovo-ec-sensors.c:274:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 274 | for (idx = 0 ; idx < 6 ; idx++) | ^~~ drivers/hwmon/lenovo-ec-sensors.c:276:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 276 | system_type[idx] = get_ec_reg(0xC, (0x10 + idx)); | ^~~~~~~~~~~ In function 'get_platform', inlined from 'lenovo_ec_probe' at drivers/hwmon/lenovo-ec-sensors.c:420:26: >> drivers/hwmon/lenovo-ec-sensors.c:276:34: warning: writing 1 byte into a region of size 0 [-Wstringop-overflow=] 276 | system_type[idx] = get_ec_reg(0xC, (0x10 + idx)); | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/hwmon/lenovo-ec-sensors.c: In function 'lenovo_ec_probe': drivers/hwmon/lenovo-ec-sensors.c:270:14: note: at offset 6 into destination object 'system_type' of size 6 270 | char system_type[6]; | ^~~~~~~~~~~ cc1: some warnings being treated as errors vim +/for +274 drivers/hwmon/lenovo-ec-sensors.c 267 268 static int get_platform(struct ec_sensors_data *data) 269 { 270 char system_type[6]; 271 int ret = -1; 272 int idx; 273 > 274 for (idx = 0 ; idx < 6 ; idx++) 275 mutex_lock(&data->mec_mutex); > 276 system_type[idx] = get_ec_reg(0xC, (0x10 + idx)); 277 mutex_unlock(&data->mec_mutex); 278 279 for (idx = 0 ; idx < 4 ; idx++) { 280 if (strcmp(systems[idx], system_type) == 0) { 281 ret = idx; 282 break; 283 } 284 } 285 return ret; 286 } 287 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki