From: kernel test robot <lkp@intel.com>
To: "Yikai Tsai" <yikai.tsai.wiwynn@gmail.com>,
patrick@stwcx.xyz, "Carsten Spieß" <mail@carsten-spiess.de>,
"Jean Delvare" <jdelvare@suse.com>,
"Guenter Roeck" <linux@roeck-us.net>
Cc: oe-kbuild-all@lists.linux.dev,
Yikai Tsai <yikai.tsai.wiwynn@gmail.com>,
linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 1/1] hwmon: (isl28022) Fix current reading calculation
Date: Mon, 19 May 2025 16:25:50 +0800 [thread overview]
Message-ID: <202505191635.mix4vgrC-lkp@intel.com> (raw)
In-Reply-To: <20250519061637.8796-2-yikai.tsai.wiwynn@gmail.com>
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@intel.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, ®val);
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
next prev parent reply other threads:[~2025-05-19 8:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-19 6:16 [PATCH v1 0/1] " Yikai Tsai
2025-05-19 6:16 ` [PATCH v1 1/1] " Yikai Tsai
2025-05-19 8:25 ` kernel test robot [this message]
2025-05-19 13:22 ` Guenter Roeck
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202505191635.mix4vgrC-lkp@intel.com \
--to=lkp@intel.com \
--cc=jdelvare@suse.com \
--cc=linux-hwmon@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@roeck-us.net \
--cc=mail@carsten-spiess.de \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=patrick@stwcx.xyz \
--cc=yikai.tsai.wiwynn@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®