tree:
https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git vsp1/pa-phase
head: d2606552ddb7871f0dd703f3655dec6bd7482407
commit: d2606552ddb7871f0dd703f3655dec6bd7482407 [7/7] imx135 camera sensor driver
config: nds32-allyesconfig (attached as .config)
compiler: nds32le-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/kbingham/rcar.git/commit/...
git remote add rcar
https://git.kernel.org/pub/scm/linux/kernel/git/kbingham/rcar.git
git fetch --no-tags rcar vsp1/pa-phase
git checkout d2606552ddb7871f0dd703f3655dec6bd7482407
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/media/i2c/imx135.c: In function 'imx135_power_on':
> drivers/media/i2c/imx135.c:1246:26: error: storage size of
'dep_devices' isn't known
1246 | struct acpi_handle_list
dep_devices;
| ^~~~~~~~~~~
> drivers/media/i2c/imx135.c:1251:6: error: implicit declaration of
function 'acpi_has_method'; did you mean 'acpi_has_watchdog'?
[-Werror=implicit-function-declaration]
1251 | if (acpi_has_method(dev_handle,
"_DEP")) {
| ^~~~~~~~~~~~~~~
| acpi_has_watchdog
> drivers/media/i2c/imx135.c:1252:12: error: implicit declaration
of function 'acpi_evaluate_reference'; did you mean
'acpi_evaluate_object'? [-Werror=implicit-function-declaration]
1252 |
status = acpi_evaluate_reference(dev_handle, "_DEP", NULL,
| ^~~~~~~~~~~~~~~~~~~~~~~
| acpi_evaluate_object
> drivers/media/i2c/imx135.c:1271:9: error: implicit declaration of
function 'acpi_bus_get_device'; did you mean 'acpi_get_gpe_device'?
[-Werror=implicit-function-declaration]
1271 | if
(acpi_bus_get_device(dep_devices.handles[i], &device))
| ^~~~~~~~~~~~~~~~~~~
| acpi_get_gpe_device
> drivers/media/i2c/imx135.c:1274:28: error:
'platform_bus_type' undeclared (first use in this function)
1274 |
dev = bus_find_device(&platform_bus_type, NULL,
| ^~~~~~~~~~~~~~~~~
drivers/media/i2c/imx135.c:1274:28: note: each undeclared identifier is reported only
once for each function it appears in
> drivers/media/i2c/imx135.c:1275:14: error: dereferencing pointer
to incomplete type 'struct acpi_device'
1275 |
&device->fwnode, match_depend);
| ^~
drivers/media/i2c/imx135.c:1246:26: warning: unused variable 'dep_devices'
[-Wunused-variable]
1246 | struct acpi_handle_list dep_devices;
| ^~~~~~~~~~~
cc1: some warnings being treated as errors
vim +1246 drivers/media/i2c/imx135.c
1239
1240 static int imx135_power_on(struct device *dev)
1241 {
1242 struct i2c_client *client = to_i2c_client(dev);
1243 struct v4l2_subdev *sd = i2c_get_clientdata(client);
1244 struct imx135 *imx135 = to_imx135(sd);
1245 struct acpi_handle *dev_handle = ACPI_HANDLE(&client->dev);
1246 struct acpi_handle_list dep_devices;
1247 acpi_status
status;
1248 int ret;
1249 int i;
1250
1251 if (acpi_has_method(dev_handle, "_DEP")) {
1252 status = acpi_evaluate_reference(dev_handle, "_DEP", NULL,
1253 &dep_devices);
1254 if (ACPI_FAILURE(status)) {
1255 printk("Failed to evaluate _DEP.\n");
1256 return -ENODEV;
1257 }
1258
1259 for (i = 0; i < dep_devices.count; i++) {
1260 struct acpi_device *device;
1261 struct acpi_device_info *info;
1262
1263 status = acpi_get_object_info(dep_devices.handles[i], &info);
1264 if (ACPI_FAILURE(status)) {
1265 printk("Error reading _DEP device info\n");
1266 return -ENODEV;
1267 }
1268
1269 if (info->valid & ACPI_VALID_HID &&
1270 !strcmp(info->hardware_id.string, "INT3472")) {
1271 if (acpi_bus_get_device(dep_devices.handles[i],
&device))
1272 return -ENODEV;
1273
1274 dev = bus_find_device(&platform_bus_type, NULL,
1275 &device->fwnode, match_depend);
1276 if (dev) {
1277 dev_info(&client->dev, "Dependent platform device found
%s\n",
1278 dev_name(dev));
1279 break;
1280 }
1281 }
1282 }
1283 }
1284
1285 ret = regulator_bulk_enable(IMX135_NUM_SUPPLIES, imx135->supplies);
1286 if (ret) {
1287 dev_err(imx135->dev, "Failed to enable regulators\n");
1288 return ret;
1289 }
1290
1291 usleep_range(1, 2);
1292 gpiod_set_value_cansleep(imx135->rst_gpio, 1);
1293 usleep_range(30000, 31000);
1294
1295 return 0;
1296 }
1297
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org