[hwmon:hwmon-next 7/7] drivers/hwmon/w83627ehf.c:1954:6: error: 'struct w83627ehf_data' has no member named 'vbat'

kernel test robot
2021-07-12T02:08:04Z

[-- Attachment #1: Type: text/plain, Size: 3348 bytes --]

tree: https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head: ed35f99f75142ef4c92e610c617a740cfe814f0d
commit: ed35f99f75142ef4c92e610c617a740cfe814f0d [7/7] hwmon: (w83627ehf) Switch to SIMPLE_DEV_PM_OPS
config: alpha-randconfig-r023-20210711 (attached as .config)
compiler: alpha-linux-gcc (GCC) 9.3.0
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://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/commit/?id=ed35f99f75142ef4c92e610c617a740cfe814f0d
git remote add hwmon https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git
git fetch --no-tags hwmon hwmon-next
git checkout ed35f99f75142ef4c92e610c617a740cfe814f0d
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=alpha SHELL=/bin/bash drivers/hwmon/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

drivers/hwmon/w83627ehf.c: In function 'w83627ehf_suspend':
>> drivers/hwmon/w83627ehf.c:1954:6: error: 'struct w83627ehf_data' has no member named 'vbat'
1954 | data->vbat = w83627ehf_read_value(data, W83627EHF_REG_VBAT);
| ^~
drivers/hwmon/w83627ehf.c: In function 'w83627ehf_resume':
drivers/hwmon/w83627ehf.c:2006:54: error: 'struct w83627ehf_data' has no member named 'vbat'
2006 | w83627ehf_write_value(data, W83627EHF_REG_VBAT, data->vbat);
| ^~

vim +1954 drivers/hwmon/w83627ehf.c

08e7e2789e0da4 drivers/i2c/chips/w83627ehf.c Jean Delvare 2005-04-25 1948
ed35f99f75142e drivers/hwmon/w83627ehf.c Armin Wolf 2021-07-09 1949 static int __maybe_unused w83627ehf_suspend(struct device *dev)
7e630bb55a52cf drivers/hwmon/w83627ehf.c Jean Delvare 2012-12-19 1950 {
7e630bb55a52cf drivers/hwmon/w83627ehf.c Jean Delvare 2012-12-19 1951 struct w83627ehf_data *data = w83627ehf_update_device(dev);
7e630bb55a52cf drivers/hwmon/w83627ehf.c Jean Delvare 2012-12-19 1952
7e630bb55a52cf drivers/hwmon/w83627ehf.c Jean Delvare 2012-12-19 1953 mutex_lock(&data->update_lock);
7e630bb55a52cf drivers/hwmon/w83627ehf.c Jean Delvare 2012-12-19 @1954 data->vbat = w83627ehf_read_value(data, W83627EHF_REG_VBAT);
7e630bb55a52cf drivers/hwmon/w83627ehf.c Jean Delvare 2012-12-19 1955 mutex_unlock(&data->update_lock);
7e630bb55a52cf drivers/hwmon/w83627ehf.c Jean Delvare 2012-12-19 1956
7e630bb55a52cf drivers/hwmon/w83627ehf.c Jean Delvare 2012-12-19 1957 return 0;
7e630bb55a52cf drivers/hwmon/w83627ehf.c Jean Delvare 2012-12-19 1958 }
7e630bb55a52cf drivers/hwmon/w83627ehf.c Jean Delvare 2012-12-19 1959

:::::: The code at line 1954 was first introduced by commit
:::::: 7e630bb55a52cfaa35011c0ebc2efc96f13e5135 hwmon: (w83627ehf) Add support for suspend

:::::: TO: Jean Delvare <khali@linux-fr.org>
:::::: CC: Jean Delvare <khali@endymion.delvare>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 21991 bytes --]