[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <201811030142.IIRPWNE6%fengguang.wu@intel.com>
Date: Sat, 3 Nov 2018 01:28:44 +0800
From: kbuild test robot <lkp@...el.com>
To: Hans de Goede <hdegoede@...hat.com>
Cc: kbuild-all@...org, linux-kernel@...r.kernel.org,
"Rafael J. Wysocki" <rjw@...ysocki.net>
Subject: drivers/acpi/pmic/intel_pmic_xpower.c:183: undefined reference to
`iosf_mbi_block_punit_i2c_access'
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d81f50bd34646d8373b989e55180c0fc9af94e0b
commit: 3c670dba864d9ab0a23612a93b7d98700734bd44 ACPI / PMIC: xpower: Block P-Unit I2C access during read-modify-write
date: 8 days ago
config: x86_64-randconfig-s3-11022323 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
git checkout 3c670dba864d9ab0a23612a93b7d98700734bd44
# save the attached .config to linux build tree
make ARCH=x86_64
All errors (new ones prefixed by >>):
drivers/acpi/pmic/intel_pmic_xpower.o: In function `intel_xpower_pmic_update_power':
>> drivers/acpi/pmic/intel_pmic_xpower.c:183: undefined reference to `iosf_mbi_block_punit_i2c_access'
>> drivers/acpi/pmic/intel_pmic_xpower.c:200: undefined reference to `iosf_mbi_unblock_punit_i2c_access'
vim +183 drivers/acpi/pmic/intel_pmic_xpower.c
172
173 static int intel_xpower_pmic_update_power(struct regmap *regmap, int reg,
174 int bit, bool on)
175 {
176 int data, ret;
177
178 /* GPIO1 LDO regulator needs special handling */
179 if (reg == XPOWER_GPI1_CTRL)
180 return regmap_update_bits(regmap, reg, GPI1_LDO_MASK,
181 on ? GPI1_LDO_ON : GPI1_LDO_OFF);
182
> 183 ret = iosf_mbi_block_punit_i2c_access();
184 if (ret)
185 return ret;
186
187 if (regmap_read(regmap, reg, &data)) {
188 ret = -EIO;
189 goto out;
190 }
191
192 if (on)
193 data |= BIT(bit);
194 else
195 data &= ~BIT(bit);
196
197 if (regmap_write(regmap, reg, data))
198 ret = -EIO;
199 out:
> 200 iosf_mbi_unblock_punit_i2c_access();
201
202 return ret;
203 }
204
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Download attachment ".config.gz" of type "application/gzip" (30237 bytes)
Powered by blists - more mailing lists