lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202505191635.mix4vgrC-lkp@intel.com>
Date: Mon, 19 May 2025 16:25:50 +0800
From: kernel test robot <lkp@...el.com>
To: Yikai Tsai <yikai.tsai.wiwynn@...il.com>, patrick@...cx.xyz,
	Carsten Spieß <mail@...sten-spiess.de>,
	Jean Delvare <jdelvare@...e.com>,
	Guenter Roeck <linux@...ck-us.net>
Cc: oe-kbuild-all@...ts.linux.dev, Yikai Tsai <yikai.tsai.wiwynn@...il.com>,
	linux-hwmon@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v1 1/1] hwmon: (isl28022) Fix current reading calculation

Hi Yikai,

kernel test robot noticed the following build errors:

[auto build test ERROR on groeck-staging/hwmon-next]
[also build test ERROR on linus/master v6.15-rc7 next-20250516]
[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/Yikai-Tsai/hwmon-isl28022-Fix-current-reading-calculation/20250519-142038
base:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
patch link:    https://lore.kernel.org/r/20250519061637.8796-2-yikai.tsai.wiwynn%40gmail.com
patch subject: [PATCH v1 1/1] hwmon: (isl28022) Fix current reading calculation
config: s390-randconfig-001-20250519 (https://download.01.org/0day-ci/archive/20250519/202505191635.mix4vgrC-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250519/202505191635.mix4vgrC-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 <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202505191635.mix4vgrC-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/hwmon/isl28022.c: In function 'isl28022_read_current':
>> drivers/hwmon/isl28022.c:164:3: error: 'sign_bit' undeclared (first use in this function); did you mean 'assign_bit'?
      sign_bit = (regval >> 15) & 0x01;
      ^~~~~~~~
      assign_bit
   drivers/hwmon/isl28022.c:164:3: note: each undeclared identifier is reported only once for each function it appears in


vim +164 drivers/hwmon/isl28022.c

   151	
   152	static int isl28022_read_current(struct device *dev, u32 attr, long *val)
   153	{
   154		struct isl28022_data *data = dev_get_drvdata(dev);
   155		unsigned int regval;
   156		int err;
   157	
   158		switch (attr) {
   159		case hwmon_curr_input:
   160			err = regmap_read(data->regmap,
   161					  ISL28022_REG_CURRENT, &regval);
   162			if (err < 0)
   163				return err;
 > 164			sign_bit = (regval >> 15) & 0x01;
   165			*val = (((long)(((u16)regval) & 0x7FFF) - (sign_bit * 32768)) *
   166				1250L * (long)data->gain) / (long)data->shunt;
   167			break;
   168		default:
   169			return -EOPNOTSUPP;
   170		}
   171	
   172		return 0;
   173	}
   174	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ