From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AB2842F25F5 for ; Mon, 5 Jan 2026 10:10:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.66 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767607835; cv=none; b=GZv/TshHv0CALkEpmh9Le8FZuas0Klh0JOyB56p/6T1k00eKDTAwA2ZkHm0G3tZRmKDhBKUy4tD2HrjYr1UF/hIUGZ74v8R614Qg/TgHJkzm5TxM1Llo8o+COXnM85qd/vHo+NEiif0epCsWzUknCJY7o9RxIb2xZFSmMvi/n2s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767607835; c=relaxed/simple; bh=PbGYj0RLG7CPYad+Rq+AEDImBjNt5TLUDiyB5JHGqmc=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; b=SLnEE0UWCRUbAHjVkaTLigEFI0tbh8S9EDuvKcHk/+q50NznO+fCBIc1Of5zeNOBPYI53sa1P4zP9w4LpkV1bpQ9+BQX+hY2wQQZYUox1vz9ivVFXR/A+BZ8eaa0buJvnOpAywXrTrt9tGFrdJ/GPE54M5MT16DBvwXlz4JymOw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=vxUgh2fg; arc=none smtp.client-ip=209.85.221.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="vxUgh2fg" Received: by mail-wr1-f66.google.com with SMTP id ffacd0b85a97d-430f57cd471so6450562f8f.0 for ; Mon, 05 Jan 2026 02:10:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767607832; x=1768212632; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fxNaBeHAJ/4EZ7JTOdnqwOVDyNniPg0HIAmiaHm6nBM=; b=vxUgh2fgpu2bKWARM+DPnq0imMBwR8PLVb92gecUFh1pVO7UgXms8YzR8O3xKT5UxP paw5TJ4/Jn/tETSu3EHspIaBSRL2pMywKktCXL4LNjxRdGEs1V9QwGCa0ysaT3sKoM3W 4JxoCCmGZ/TdTwpKAT9iISI7W+mbSk+d5KyzwanS/yuigPSgx9cSfLqMhXLqSXXivywf DsK5b49bto2h22dSpz3hac3sBTObyFEZtm3MddkZAwMKysM8TaeXTJEKQ2qvX4GvOihG NwXa3ug/IRzFY+odfyBTj4AZSckCRzQmOWDDLsIHPhvpVqv5JB7vSBp6iGx7MRT+soQB 1auQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767607832; x=1768212632; h=in-reply-to:content-disposition:mime-version:message-id:subject:cc :to:from:date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fxNaBeHAJ/4EZ7JTOdnqwOVDyNniPg0HIAmiaHm6nBM=; b=nnOYpofgT7Xb7xnRmLJ5Oet5LiH6cLnIeJcDqCcecD3xxkRlAk8bRHPrxPHSoNOdce 5FA8gKY1+NFL1bUTafJM7JuFbQnkoKThGLGHEVGsRsoz8Zjazsmitp2Em6N4vDRWUTX9 HWtOpBAK9JbQgDldgzZrQx1r908NQe3mQHQU68SnKNYNxgMIi/dHHzV2OdDAtAsJcdEu 6j15NMvSMpgzQTOsI5YsTGKf9XjjZr2XER2FQNVVliIYErTGAsBiB7qF0gNu0tiohZHJ 9YZuivONMFlQusYNo4+JcVs8lB3wqzhoEIPKcrXLAzgcL7458GkeoQ9QyIjMSvLVkD7w iIUQ== X-Forwarded-Encrypted: i=1; AJvYcCXMO5JrnKh2HpbFI4eRwKlHRyLq6PflSlHTCFY4vuUneMR81FoqugbsdX2065VZFlOzU3X1QdTBJiT6rro=@vger.kernel.org X-Gm-Message-State: AOJu0YyrJhjfxRFwmfDW9DibrTVAw/qGAKwL7Z+XVtwDgB8R4baSgNJY ZgOwSgWSkSy8DDWd9M7UGiNfh2bZ51a3UHPbwMAmrNQS3chEbWPEES+ktmjHTn1cEHw= X-Gm-Gg: AY/fxX5Nr/qMmpLHSXgFnWe2H0/ng3MwRXpH9zQMvZl/9UX/ZMxIVlZn8x9RRVc9Zd6 WutmnEN9PIrm4954kIJhl3pur/s0gYDu3bjZU9g7qmwYo9TH7fuqMQxd2giOTxO8AtqWeg+QM5c UoWUz5xvM3nqdkyImql6WA4uQbtK1k65VfgiBFc5jqfuxS+tphP3HRYMRetNMPf6xB4G6oarSNh 58nriOEr+ySkJ2FFK+G5XHVHQxoz0yEn5gjoCpYxBKJWv6wh8lV5NR6RiPZ1DqpDfTd9QwM+jTa 5eDG5RG9KW0FFdXvAaSpMXPBgZx6LOs3hGrdXc9Nq7FI/9LU/L7Kka/iIYSDI7tvMHVd0fc/Qju /DLLRKD68ni7Z+UC/lwYtRM1hiW+pipUfrZnioivfBBe1UgNLYripOaEvlz9c4JcPGPzN3zaWgW ikfoa4UjSFMzzRZGFY X-Google-Smtp-Source: AGHT+IFizN6ugrpoj6l/xyTx2wr6ugxEAzpdZgwgMGXWzIHWqKUPqfS+umP15OiFV+l/yYQfDLUJ0w== X-Received: by 2002:a5d:4a11:0:b0:431:67d:5390 with SMTP id ffacd0b85a97d-4324e50d055mr58872716f8f.54.1767607831963; Mon, 05 Jan 2026 02:10:31 -0800 (PST) Received: from localhost ([196.207.164.177]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4324ea830fesm100837339f8f.20.2026.01.05.02.10.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 02:10:31 -0800 (PST) Date: Mon, 5 Jan 2026 13:10:27 +0300 From: Dan Carpenter To: oe-kbuild@lists.linux.dev, "benoit.masson" , jdelvare@suse.com, linux@roeck-us.net Cc: lkp@intel.com, oe-kbuild-all@lists.linux.dev, linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org, "benoit.masson" Subject: Re: [PATCH] hwmon: it87: describe per-chip temperature resources Message-ID: <202512300415.VRCQoZYs-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20251226203021.27244-1-yahoo@perenite.com> Hi benoit.masson, 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/benoit-masson/hwmon-it87-describe-per-chip-temperature-resources/20251227-043108 base: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next patch link: https://lore.kernel.org/r/20251226203021.27244-1-yahoo%40perenite.com patch subject: [PATCH] hwmon: it87: describe per-chip temperature resources config: x86_64-randconfig-161-20251229 (https://download.01.org/0day-ci/archive/20251230/202512300415.VRCQoZYs-lkp@intel.com/config) compiler: gcc-14 (Debian 14.2.0-19) 14.2.0 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/202512300415.VRCQoZYs-lkp@intel.com/ smatch warnings: drivers/hwmon/it87.c:1694 show_pwm_temp_map() warn: variable dereferenced before IS_ERR check 'data' (see line 1691) vim +/data +1694 drivers/hwmon/it87.c 94ac7ee616809d Jean Delvare 2010-03-05 1685 static ssize_t show_pwm_temp_map(struct device *dev, 94ac7ee616809d Jean Delvare 2010-03-05 1686 struct device_attribute *attr, char *buf) 94ac7ee616809d Jean Delvare 2010-03-05 1687 { 94ac7ee616809d Jean Delvare 2010-03-05 1688 struct sensor_device_attribute *sensor_attr = to_sensor_dev_attr(attr); 94ac7ee616809d Jean Delvare 2010-03-05 1689 struct it87_data *data = it87_update_device(dev); c962024e306ed5 Guenter Roeck 2015-04-04 1690 int nr = sensor_attr->index; 542f1e57c17849 benoit.masson 2025-12-26 @1691 u8 num_map = data->num_temp_map ?: IT87_TEMP_MAP_DEFAULT; ^^^^^^^^^^^^^^^^^^ Unchecked dereference 94ac7ee616809d Jean Delvare 2010-03-05 1692 int map; 94ac7ee616809d Jean Delvare 2010-03-05 1693 0282ba4a4fe6c8 Frank Crawford 2023-04-16 @1694 if (IS_ERR(data)) ^^^^ Checked too late. 0282ba4a4fe6c8 Frank Crawford 2023-04-16 1695 return PTR_ERR(data); 0282ba4a4fe6c8 Frank Crawford 2023-04-16 1696 0624d861983c2c Guenter Roeck 2015-04-06 1697 map = data->pwm_temp_map[nr]; -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki