Subject: linux-next: build failure after merge of the hwmon-staging tree

From: Stephen Rothwell <[email-masked]>
Date: Tue, 10 May 2022 22:26:03 +1000

Hi all,

After merging the hwmon-staging tree, today's linux-next build (powerpc
allyesconfig) failed like this:

ld: drivers/hwmon/nct6775-platform.o: in function `.nct6775_wmi_reg_write':
nct6775-platform.c:(.text.nct6775_wmi_reg_write+0x38): undefined reference to `.nct6775_reg_is_word_sized'
ld: drivers/hwmon/nct6775-platform.o: in function `.nct6775_wmi_reg_read':
nct6775-platform.c:(.text.nct6775_wmi_reg_read+0x38): undefined reference to `.nct6775_reg_is_word_sized'
ld: drivers/hwmon/nct6775-platform.o: in function `.nct6775_resume':
nct6775-platform.c:(.text.nct6775_resume+0x61c): undefined reference to `.nct6775_reg_is_word_sized'
ld: drivers/hwmon/nct6775-platform.o: in function `.nct6775_platform_probe':
nct6775-platform.c:(.text.nct6775_platform_probe+0x14c): undefined reference to `.nct6775_probe'
ld: drivers/hwmon/nct6775-platform.o: in function `.nct6775_reg_read':
nct6775-platform.c:(.text.nct6775_reg_read+0x5c): undefined reference to `.nct6775_reg_is_word_sized'
ld: drivers/hwmon/nct6775-platform.o: in function `.nct6775_reg_write':
nct6775-platform.c:(.text.nct6775_reg_write+0x5c): undefined reference to `.nct6775_reg_is_word_sized'
ld: drivers/hwmon/nct6775-platform.o:(.data.rel.sensor_dev_attr_beep_enable+0x28): undefined reference to `nct6775_show_beep'
ld: drivers/hwmon/nct6775-platform.o:(.data.rel.sensor_dev_attr_beep_enable+0x30): undefined reference to `nct6775_store_beep'
ld: drivers/hwmon/nct6775-platform.o:(.data.rel.sensor_dev_attr_intrusion0_alarm+0x28): undefined reference to `nct6775_show_alarm'
ld: drivers/hwmon/nct6775-platform.o:(.data.rel.sensor_dev_attr_intrusion0_beep+0x28): undefined reference to `nct6775_show_beep'
ld: drivers/hwmon/nct6775-platform.o:(.data.rel.sensor_dev_attr_intrusion0_beep+0x30): undefined reference to `nct6775_store_beep'
ld: drivers/hwmon/nct6775-platform.o:(.data.rel.sensor_dev_attr_intrusion1_alarm+0x28): undefined reference to `nct6775_show_alarm'
ld: drivers/hwmon/nct6775-platform.o:(.data.rel.sensor_dev_attr_intrusion1_beep+0x28): undefined reference to `nct6775_show_beep'
ld: drivers/hwmon/nct6775-platform.o:(.data.rel.sensor_dev_attr_intrusion1_beep+0x30): undefined reference to `nct6775_store_beep'
ld: drivers/hwmon/nct6775-i2c.o: in function `.nct6775_i2c_read':
nct6775-i2c.c:(.text.nct6775_i2c_read+0x108): undefined reference to `.nct6775_reg_is_word_sized'
ld: drivers/hwmon/nct6775-i2c.o: in function `.nct6775_i2c_probe':
nct6775-i2c.c:(.text.nct6775_i2c_probe+0x134): undefined reference to `.nct6775_probe'

Probably caused by commit

  a2105efee6e7 ("hwmon: (nct6775) Split core and platform driver")

I have reverted that commit for today - and the following commits

  4dcbcf34a249 ("hwmon: (nct6775) add ASUS PRO H410T / PRIME H410M-R / ROG X570-E GAMING WIFI II")
  58f1d9ebfce6 ("hwmon: (nct6775) Add i2c driver")

-- 
Cheers,
Stephen Rothwell