Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3665453pxb; Sun, 27 Mar 2022 02:36:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxuDL3bx43YJvGSVU+vnmkdja6qcNc52MmT8Upex6arFFzorfmnQGyXHWbuIUDEa4NozW78 X-Received: by 2002:a17:902:7045:b0:153:95da:fcee with SMTP id h5-20020a170902704500b0015395dafceemr20862052plt.49.1648373778915; Sun, 27 Mar 2022 02:36:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648373778; cv=none; d=google.com; s=arc-20160816; b=GNhjg2bcGiclBGovUNwmVrdUMOH19TmPE3baqwTLMilO1OJ2NQwjlt3rCufp1jXoHY 33Eurw4HJfGKyTlaDxxAdjfRwMsKGfK7F+pP6cmy4O2kWJ1yIHKyc9Qv23qpTYEB14c1 8Al5a90/z+MzM9WaJ3f6E2hGRara0kJOdr53ybQ9Fakt/qxvAv++AScwr7cMVkdOWeC7 dBUTtx9ausYl++IC+j/71c9TZ4PELZ6l0hDrgVqoJmujkLWasu8e9uoBMKDsZPJ1B1pB cU3KBpugpysrZk2sTsLB4HTtxRhYFgGSZAaJV82UaChOProUfcHAhH2MyRqSN5ki0Mrj xq8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=gduuvKTzX5fYL6H8EOf3fIXqHZSzCUgenkeSppROmME=; b=VpNx74H693cEejjhkhUdij2dud24J0smlG5E+CUKfsrclPCWiEt9/tyLDadnh6hoL6 qN5/FBVQ0tl2SJoiwok5ZCthXCGaIaSX+FFD7gfqSUeOFEpjL+0baOfbQ7+9c1UVkSuu cwmBpY0XdwxUYpWTn6NY1Fh3BHtE3rq/SLedsdutNfCDwabE53w2AQ331epJEifXFpF3 vsbiTrULkv2iWnVjmWozWq0QilPae6gKOQmyVdzi8UGhWwjVBn7pWOL3otPkDgSl7Rd0 IJ/RyTXRSXi/tbsReYsB1cXfRAz2XVEyxLSH8fCmmoiaHbxlucBSb7en51H+r7cDwB6A mktA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=X03IYnbG; 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 j11-20020a17090ae60b00b001c6c4431f41si11411262pjy.82.2022.03.27.02.36.06; Sun, 27 Mar 2022 02:36:18 -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=X03IYnbG; 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 S232964AbiCZMi4 (ORCPT + 99 others); Sat, 26 Mar 2022 08:38:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231126AbiCZMiy (ORCPT ); Sat, 26 Mar 2022 08:38:54 -0400 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6ABAE09B6; Sat, 26 Mar 2022 05:37:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1648298238; x=1679834238; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2qNhWmWOmaV+zWM8jy09FHg0w+HKEVvZwyYHcKgSC8Q=; b=X03IYnbGpccpyxjrIC3IUFr+exE2UUkTeG6fNyTaEZJvw6+A/bQplN5L vlvA0JjtEGNjEAK/iO/oVuZrKuO+HnU2/+bBNMP/XBN/ZMk1KC2axTAZc r9YUjcUelet/m3cnLeBz1oBMysbVBCcupPQ1R2Sz9o6Zm6AfMJVSr+qqH uivbm5N2evC3jBsPLi73C9im95ae94vhUiqqNV9zgpRg4J4hX0pxgfkxU e4P33lu/WOg2nhb8steAv4ie80IUTDcpIM4EEs14FqJv8f3PaEpaw7xXL 7cNgPa9fvGgsa5aEMXuym1fR729Syguw66My4MxzOfN1HUEkOcLrP3eSA Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10297"; a="321971161" X-IronPort-AV: E=Sophos;i="5.90,213,1643702400"; d="scan'208";a="321971161" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2022 05:37:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,213,1643702400"; d="scan'208";a="520488065" Received: from lkp-server02.sh.intel.com (HELO 89b41b6ae01c) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 26 Mar 2022 05:37:15 -0700 Received: from kbuild by 89b41b6ae01c with local (Exim 4.92) (envelope-from ) id 1nY5fP-000NMv-5B; Sat, 26 Mar 2022 12:37:15 +0000 Date: Sat, 26 Mar 2022 20:36:25 +0800 From: kernel test robot To: Aleksa Savic , linux-hwmon@vger.kernel.org Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Jean Delvare , Guenter Roeck , Jonathan Corbet , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] hwmon: (aquacomputer_d5next) Add support for Aquacomputer Octo Message-ID: <202203262032.UaIhk6RY-lkp@intel.com> References: <20220326101250.8076-1-savicaleksa83@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220326101250.8076-1-savicaleksa83@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, 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 Aleksa, I love your patch! Perhaps something to improve: [auto build test WARNING on groeck-staging/hwmon-next] [also build test WARNING on next-20220325] [cannot apply to v5.17] [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] url: https://github.com/0day-ci/linux/commits/Aleksa-Savic/hwmon-aquacomputer_d5next-Add-support-for-Aquacomputer-Octo/20220326-181328 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next config: i386-randconfig-a002 (https://download.01.org/0day-ci/archive/20220326/202203262032.UaIhk6RY-lkp@intel.com/config) compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 0f6d9501cf49ce02937099350d08f20c4af86f3d) 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/0day-ci/linux/commit/ffb6d76f23a93a5875a427d03dc6a67538277e19 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Aleksa-Savic/hwmon-aquacomputer_d5next-Add-support-for-Aquacomputer-Octo/20220326-181328 git checkout ffb6d76f23a93a5875a427d03dc6a67538277e19 # 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=i386 SHELL=/bin/bash drivers/hwmon/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/hwmon/aquacomputer_d5next.c:420:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] default: ^ drivers/hwmon/aquacomputer_d5next.c:420:3: note: insert 'break;' to avoid fall-through default: ^ break; drivers/hwmon/aquacomputer_d5next.c:489:3: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] default: ^ drivers/hwmon/aquacomputer_d5next.c:489:3: note: insert 'break;' to avoid fall-through default: ^ break; drivers/hwmon/aquacomputer_d5next.c:698:2: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough] default: ^ drivers/hwmon/aquacomputer_d5next.c:698:2: note: insert 'break;' to avoid fall-through default: ^ break; 3 warnings generated. vim +420 drivers/hwmon/aquacomputer_d5next.c 389 390 static int aqc_read(struct device *dev, enum hwmon_sensor_types type, u32 attr, 391 int channel, long *val) 392 { 393 int ret; 394 struct aqc_data *priv = dev_get_drvdata(dev); 395 396 if (time_after(jiffies, priv->updated + STATUS_UPDATE_INTERVAL)) 397 return -ENODATA; 398 399 switch (type) { 400 case hwmon_temp: 401 if (priv->temp_input[channel] == -ENODATA) 402 return -ENODATA; 403 404 *val = priv->temp_input[channel]; 405 break; 406 case hwmon_fan: 407 *val = priv->speed_input[channel]; 408 break; 409 case hwmon_power: 410 *val = priv->power_input[channel]; 411 break; 412 case hwmon_pwm: 413 switch (priv->kind) { 414 case octo: 415 ret = aqc_get_ctrl_val(priv, octo_ctrl_fan_offsets[channel]); 416 if (ret < 0) 417 return ret; 418 419 *val = aqc_percent_to_pwm(ret); > 420 default: 421 break; 422 } 423 break; 424 case hwmon_in: 425 *val = priv->voltage_input[channel]; 426 break; 427 case hwmon_curr: 428 *val = priv->current_input[channel]; 429 break; 430 default: 431 return -EOPNOTSUPP; 432 } 433 434 return 0; 435 } 436 -- 0-DAY CI Kernel Test Service https://01.org/lkp