* [linux-next:master 11358/11653] drivers/i2c/busses/i2c-mlxbf.c:2296:8: error: implicit declaration of function 'acpi_device_uid'
@ 2020-09-29 8:50 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-09-29 8:50 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3147 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 663b07a45f972c23ac315fd690874bc00977fe99
commit: b5b5b32081cd206baa6e58cca7f112d9723785d6 [11358/11653] i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC
config: arm64-randconfig-r035-20200929 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6d374cf78c8a80a0bbfc7ce9bc80b3f183f44c80)
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
# install arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b5b5b32081cd206baa6e58cca7f112d9723785d6
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next master
git checkout b5b5b32081cd206baa6e58cca7f112d9723785d6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/i2c/busses/i2c-mlxbf.c:2296:8: error: implicit declaration of function 'acpi_device_uid' [-Werror,-Wimplicit-function-declaration]
uid = acpi_device_uid(adev);
^
drivers/i2c/busses/i2c-mlxbf.c:2296:8: note: did you mean 'cpu_device_up'?
include/linux/cpu.h:93:5: note: 'cpu_device_up' declared here
int cpu_device_up(struct device *dev);
^
>> drivers/i2c/busses/i2c-mlxbf.c:2296:6: warning: incompatible integer to pointer conversion assigning to 'const char *' from 'int' [-Wint-conversion]
uid = acpi_device_uid(adev);
^ ~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +/acpi_device_uid +2296 drivers/i2c/busses/i2c-mlxbf.c
2274
2275 static int mlxbf_i2c_acpi_probe(struct device *dev, struct mlxbf_i2c_priv *priv)
2276 {
2277 const struct acpi_device_id *aid;
2278 struct acpi_device *adev;
2279 unsigned long bus_id = 0;
2280 const char *uid;
2281 int ret;
2282
2283 if (acpi_disabled)
2284 return -ENOENT;
2285
2286 adev = ACPI_COMPANION(dev);
2287 if (!adev)
2288 return -ENXIO;
2289
2290 aid = acpi_match_device(mlxbf_i2c_acpi_ids, dev);
2291 if (!aid)
2292 return -ENODEV;
2293
2294 priv->chip = (struct mlxbf_i2c_chip_info *)aid->driver_data;
2295
> 2296 uid = acpi_device_uid(adev);
2297 if (!uid || !(*uid)) {
2298 dev_err(dev, "Cannot retrieve UID\n");
2299 return -ENODEV;
2300 }
2301
2302 ret = kstrtoul(uid, 0, &bus_id);
2303 if (!ret)
2304 priv->bus = bus_id;
2305
2306 return ret;
2307 }
2308
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 37605 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-29 8:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 8:50 [linux-next:master 11358/11653] drivers/i2c/busses/i2c-mlxbf.c:2296:8: error: implicit declaration of function 'acpi_device_uid' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.