From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="NCuTRVCG" Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52865118 for ; Mon, 20 Nov 2023 04:10:14 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-3316bb1303bso1776548f8f.0 for ; Mon, 20 Nov 2023 04:10:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700482213; x=1701087013; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=QS36oLotij0tVUHAFPCkN5+chgBCtn4SQxZS9m139l0=; b=NCuTRVCGoerPqn/1EcxD1D0yS7i7kNMiElPUCpHgf3HTNX2+pUQJNXOvHKN+HRS4zl +TQNuF2qXrpyFlz0CzxsqPLN+xDHToZD5l+/2lXN16E61vN+UD6m9ca9fKjbxhL7CRXO /cUiuRcfYsTuhmShWIXIaCqxY0A4IKVoAq9eXOjUh8eSb4VAVHW0E5BNxGJYH6mzanAp Tk14+2XVzBIaA0q14IyngVyoSQO4NqzvxlwIQ649Sp6osydhKVQWaxnrUsZ82kkRptMp UChKkrB804jKfrNZf73PnBCAVdoiEw4fESvi1K0H6yBzMK4UQoRKMqayS3Z8gFPpJtLc uiDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700482213; x=1701087013; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QS36oLotij0tVUHAFPCkN5+chgBCtn4SQxZS9m139l0=; b=ZHAYV1ZFS7aSGVDRfewgBq3JKagLnBClgEu5nCNSmgQBgwDs/hIVC/l0WT1gG0GFI4 YDM1Sml/NvqBmdYt9OCJtO/m9dZcP3qUXiEvo4AkyW8QlHz6NqMx7gD5H7L7QL2aeAYV +SMcyTOcWkYMmmcUMZtuRibhNb3Hlr4aVb2iQdFJwr7+FvWaqjrlEhn8OmW9zl6EQDRB WE1L1grSbFqRcGWBz0sKdZ5mRkPz+qc2SV898bX5PSkevKzud56WmAZJOxW6IrWUOUyw bL1qnN/Kfcj/gOdEste8yTqNEBpIXi4QoTU+nbnvoQpJ/oRaI3u247ib1H9960SKvdEh QSsg== X-Gm-Message-State: AOJu0Yyf6nrPyQwtKfuuQ8oFTNnjkMphilQqsnRFqIqjMSg/sDHYtqDS 4jt4IPJ8nCiwTyUPkMrmaAcmKQ== X-Google-Smtp-Source: AGHT+IEAc+7DnU+zQRiFX6lokbetp4JWQwWelJ6KkGXdipUCH1OQi/JBnWUP/lNPhPgciIgsW0sYsg== X-Received: by 2002:a5d:47ce:0:b0:332:c31b:249e with SMTP id o14-20020a5d47ce000000b00332c31b249emr2904421wrc.55.1700482212756; Mon, 20 Nov 2023 04:10:12 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id o13-20020a5d4a8d000000b00332cbd59f8bsm393192wrq.25.2023.11.20.04.10.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 04:10:12 -0800 (PST) From: Dan Carpenter X-Google-Original-From: Dan Carpenter Date: Mon, 20 Nov 2023 07:10:09 -0500 To: oe-kbuild@lists.linux.dev, Nuno Sa , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, devicetree@vger.kernel.org Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, Bartosz Golaszewski , Jonathan Corbet , Krzysztof Kozlowski , Linus Walleij , Guenter Roeck , Nuno Sa , Rob Herring , Andy Shevchenko , Jean Delvare , Conor Dooley Subject: Re: [PATCH 2/2] hwmon: ltc4282: add support for the LTC4282 chip Message-ID: <63effee3-359b-48a5-b5a4-36b0478f6045@suswa.mountain> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231110151905.1659873-3-nuno.sa@analog.com> Hi Nuno, kernel test robot noticed the following build warnings: https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Nuno-Sa/dt-bindings-hwmon-Add-LTC4282-bindings/20231110-232017 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next patch link: https://lore.kernel.org/r/20231110151905.1659873-3-nuno.sa%40analog.com patch subject: [PATCH 2/2] hwmon: ltc4282: add support for the LTC4282 chip config: i386-randconfig-141-20231112 (https://download.01.org/0day-ci/archive/20231113/202311130219.YBiF8Xu3-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce: (https://download.01.org/0day-ci/archive/20231113/202311130219.YBiF8Xu3-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 | Reported-by: Dan Carpenter | Closes: https://lore.kernel.org/r/202311130219.YBiF8Xu3-lkp@intel.com/ smatch warnings: drivers/hwmon/ltc4282.c:859 ltc4282_is_visible() warn: signedness bug returning '(-524)' drivers/hwmon/ltc4282.c:1143 ltc4282_gpio_setup() warn: passing zero to 'dev_err_probe' vim +859 drivers/hwmon/ltc4282.c 31ea069ddf481b Nuno Sa 2023-11-10 844 static umode_t ltc4282_is_visible(const void *data, 31ea069ddf481b Nuno Sa 2023-11-10 845 enum hwmon_sensor_types type, 31ea069ddf481b Nuno Sa 2023-11-10 846 u32 attr, int channel) 31ea069ddf481b Nuno Sa 2023-11-10 847 { 31ea069ddf481b Nuno Sa 2023-11-10 848 switch (type) { 31ea069ddf481b Nuno Sa 2023-11-10 849 case hwmon_in: 31ea069ddf481b Nuno Sa 2023-11-10 850 return ltc4282_in_is_visible(data, attr); 31ea069ddf481b Nuno Sa 2023-11-10 851 case hwmon_curr: 31ea069ddf481b Nuno Sa 2023-11-10 852 return ltc4282_curr_is_visible(attr); 31ea069ddf481b Nuno Sa 2023-11-10 853 case hwmon_power: 31ea069ddf481b Nuno Sa 2023-11-10 854 return ltc4282_power_is_visible(attr); 31ea069ddf481b Nuno Sa 2023-11-10 855 case hwmon_energy: 31ea069ddf481b Nuno Sa 2023-11-10 856 /* hwmon_energy_enable */ 31ea069ddf481b Nuno Sa 2023-11-10 857 return 0644; 31ea069ddf481b Nuno Sa 2023-11-10 858 default: 31ea069ddf481b Nuno Sa 2023-11-10 @859 return -ENOTSUPP; This function returns umode_t (which must be unsigned and smaller than int for this warning to trigger). 31ea069ddf481b Nuno Sa 2023-11-10 860 } 31ea069ddf481b Nuno Sa 2023-11-10 861 } -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki