* [sailus-media-tree:pld 32/32] drivers/media/pci/intel/ipu-bridge.c:300:47: error: 'dev' undeclared; did you mean 'adev'?
@ 2026-04-03 8:42 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-03 8:42 UTC (permalink / raw)
To: Sakari Ailus; +Cc: oe-kbuild-all, linux-media
tree: git://linuxtv.org/sailus/media_tree.git pld
head: b8c5b499767feb946c184029ff272276a036623e
commit: b8c5b499767feb946c184029ff272276a036623e [32/32] media: ipu-bridge: Prioritise _PLD over SSDB in rotation
config: i386-randconfig-r071-20260402 (https://download.01.org/0day-ci/archive/20260402/202604022305.mNTpVYLs-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9004-gb810ac53
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260402/202604022305.mNTpVYLs-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604022305.mNTpVYLs-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/media/pci/intel/ipu-bridge.c:4:
drivers/media/pci/intel/ipu-bridge.c: In function 'ipu_bridge_parse_rotation':
>> drivers/media/pci/intel/ipu-bridge.c:300:47: error: 'dev' undeclared (first use in this function); did you mean 'adev'?
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
drivers/media/pci/intel/ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
drivers/media/pci/intel/ipu-bridge.c:300:47: note: each undeclared identifier is reported only once for each function it appears in
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
drivers/media/pci/intel/ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
>> include/acpi/acpi_bus.h:526:37: error: passing argument 1 of 'is_acpi_device_node' makes pointer from integer without a cast [-Wint-conversion]
526 | is_acpi_device_node(__to_acpi_device_node_fwnode) ? \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
drivers/media/pci/intel/ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
In file included from include/linux/acpi.h:38:
include/acpi/acpi_bus.h:514:54: note: expected 'const struct fwnode_handle *' but argument is of type 'int'
514 | bool is_acpi_device_node(const struct fwnode_handle *fwnode);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
>> include/linux/container_of.h:21:35: error: invalid type argument of unary '*' (have 'int')
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/build_bug.h:77:34: note: in expansion of macro '__static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~~~~~~~~~~~~
include/linux/container_of.h:21:9: note: in expansion of macro 'static_assert'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:21:23: note: in expansion of macro '__same_type'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/acpi/acpi_bus.h:527:25: note: in expansion of macro 'container_of'
527 | container_of(__to_acpi_device_node_fwnode, \
| ^~~~~~~~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
drivers/media/pci/intel/ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
include/linux/container_of.h:22:35: error: invalid type argument of unary '*' (have 'int')
22 | __same_type(*(ptr), void), \
| ^~~~~~
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/build_bug.h:77:34: note: in expansion of macro '__static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~~~~~~~~~~~~
include/linux/container_of.h:21:9: note: in expansion of macro 'static_assert'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:22:23: note: in expansion of macro '__same_type'
22 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
include/acpi/acpi_bus.h:527:25: note: in expansion of macro 'container_of'
527 | container_of(__to_acpi_device_node_fwnode, \
| ^~~~~~~~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
drivers/media/pci/intel/ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
include/linux/compiler_types.h:617:27: error: expression in static assertion is not an integer
617 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/build_bug.h:77:34: note: in expansion of macro '__static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~~~~~~~~~~~~
include/linux/container_of.h:21:9: note: in expansion of macro 'static_assert'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:21:23: note: in expansion of macro '__same_type'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/acpi/acpi_bus.h:527:25: note: in expansion of macro 'container_of'
527 | container_of(__to_acpi_device_node_fwnode, \
| ^~~~~~~~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
drivers/media/pci/intel/ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
--
In file included from ipu-bridge.c:4:
ipu-bridge.c: In function 'ipu_bridge_parse_rotation':
ipu-bridge.c:300:47: error: 'dev' undeclared (first use in this function); did you mean 'adev'?
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
ipu-bridge.c:300:47: note: each undeclared identifier is reported only once for each function it appears in
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
>> include/acpi/acpi_bus.h:526:37: error: passing argument 1 of 'is_acpi_device_node' makes pointer from integer without a cast [-Wint-conversion]
526 | is_acpi_device_node(__to_acpi_device_node_fwnode) ? \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| int
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
In file included from include/linux/acpi.h:38:
include/acpi/acpi_bus.h:514:54: note: expected 'const struct fwnode_handle *' but argument is of type 'int'
514 | bool is_acpi_device_node(const struct fwnode_handle *fwnode);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
>> include/linux/container_of.h:21:35: error: invalid type argument of unary '*' (have 'int')
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/build_bug.h:77:34: note: in expansion of macro '__static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~~~~~~~~~~~~
include/linux/container_of.h:21:9: note: in expansion of macro 'static_assert'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:21:23: note: in expansion of macro '__same_type'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/acpi/acpi_bus.h:527:25: note: in expansion of macro 'container_of'
527 | container_of(__to_acpi_device_node_fwnode, \
| ^~~~~~~~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
include/linux/container_of.h:22:35: error: invalid type argument of unary '*' (have 'int')
22 | __same_type(*(ptr), void), \
| ^~~~~~
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/build_bug.h:77:34: note: in expansion of macro '__static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~~~~~~~~~~~~
include/linux/container_of.h:21:9: note: in expansion of macro 'static_assert'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:22:23: note: in expansion of macro '__same_type'
22 | __same_type(*(ptr), void), \
| ^~~~~~~~~~~
include/acpi/acpi_bus.h:527:25: note: in expansion of macro 'container_of'
527 | container_of(__to_acpi_device_node_fwnode, \
| ^~~~~~~~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
include/linux/compiler_types.h:617:27: error: expression in static assertion is not an integer
617 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:1281:48: note: in definition of macro 'acpi_handle_debug'
1281 | acpi_handle_printk(KERN_DEBUG, handle, fmt, ##__VA_ARGS__); \
| ^~~~~~
include/linux/build_bug.h:77:34: note: in expansion of macro '__static_assert'
77 | #define static_assert(expr, ...) __static_assert(expr, ##__VA_ARGS__, #expr)
| ^~~~~~~~~~~~~~~
include/linux/container_of.h:21:9: note: in expansion of macro 'static_assert'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~~~
include/linux/container_of.h:21:23: note: in expansion of macro '__same_type'
21 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \
| ^~~~~~~~~~~
include/acpi/acpi_bus.h:527:25: note: in expansion of macro 'container_of'
527 | container_of(__to_acpi_device_node_fwnode, \
| ^~~~~~~~~~~~
include/linux/acpi.h:58:41: note: in expansion of macro 'to_acpi_device_node'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:61:60: note: in expansion of macro 'ACPI_COMPANION'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~
ipu-bridge.c:300:35: note: in expansion of macro 'ACPI_HANDLE'
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~
vim +300 drivers/media/pci/intel/ipu-bridge.c
286
287 static u32 ipu_bridge_parse_rotation(struct acpi_device *adev,
288 struct ipu_sensor_ssdb *ssdb,
289 struct v4l2_fwnode_device_properties *props)
290 {
291 const struct dmi_system_id *dmi_id;
292 struct acpi_pld_info *pld;
293
294 dmi_id = dmi_first_match(upside_down_sensor_dmi_ids);
295 if (dmi_id && acpi_dev_hid_match(adev, dmi_id->driver_data))
296 return 180;
297
298 if (acpi_get_physical_device_location(adev->handle, &pld) &&
299 pld->rotation < 8) {
> 300 acpi_handle_debug(ACPI_HANDLE(dev),
301 "_PLD exists; not use rotation %u from SSDB\n",
302 ssdb->degree);
303 return 0;
304 }
305
306 if (props->rotation != V4L2_FWNODE_PROPERTY_UNSET)
307 return props->rotation;
308
309 switch (ssdb->degree) {
310 case IPU_SENSOR_ROTATION_NORMAL:
311 return 0;
312 case IPU_SENSOR_ROTATION_INVERTED:
313 return 180;
314 }
315
316 acpi_handle_warn(acpi_device_handle(adev),
317 "Unknown rotation %d. Assume 0 degree rotation\n",
318 ssdb->degree);
319 return 0;
320 }
321
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-03 8:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-03 8:42 [sailus-media-tree:pld 32/32] drivers/media/pci/intel/ipu-bridge.c:300:47: error: 'dev' undeclared; did you mean 'adev'? kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox