From: kernel test robot <lkp@intel.com>
To: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-media@vger.kernel.org
Subject: [sailus-media-tree:pld 32/32] drivers/media/pci/intel/ipu-bridge.c:300:33: error: use of undeclared identifier 'dev'; did you mean 'adev'?
Date: Fri, 03 Apr 2026 16:42:12 +0800 [thread overview]
Message-ID: <202604022341.WvI89Nd5-lkp@intel.com> (raw)
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: loongarch-randconfig-002-20260402 (https://download.01.org/0day-ci/archive/20260402/202604022341.WvI89Nd5-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260402/202604022341.WvI89Nd5-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/202604022341.WvI89Nd5-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/media/pci/intel/ipu-bridge.c:300:33: error: use of undeclared identifier 'dev'; did you mean 'adev'?
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~
| adev
include/linux/acpi.h:61:61: note: expanded from macro 'ACPI_HANDLE'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^
include/linux/acpi.h:58:51: note: expanded from macro 'ACPI_COMPANION'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^
include/acpi/acpi_bus.h:524:10: note: expanded from macro 'to_acpi_device_node'
524 | typeof(__fwnode) __to_acpi_device_node_fwnode = __fwnode; \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/dynamic_debug.h:261:59: note: expanded from macro '_dynamic_func_call'
261 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ^
include/linux/dynamic_debug.h:259:65: note: expanded from macro '_dynamic_func_call_cls'
259 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
| ^
include/linux/dynamic_debug.h:231:15: note: expanded from macro '__dynamic_func_call_cls'
231 | func(&id, ##__VA_ARGS__); \
| ^
drivers/media/pci/intel/ipu-bridge.c:287:58: note: 'adev' declared here
287 | static u32 ipu_bridge_parse_rotation(struct acpi_device *adev,
| ^
>> drivers/media/pci/intel/ipu-bridge.c:300:33: error: use of undeclared identifier 'dev'; did you mean 'adev'?
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~
| adev
include/linux/acpi.h:61:61: note: expanded from macro 'ACPI_HANDLE'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^
include/linux/acpi.h:58:51: note: expanded from macro 'ACPI_COMPANION'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^
include/acpi/acpi_bus.h:524:51: note: expanded from macro 'to_acpi_device_node'
524 | typeof(__fwnode) __to_acpi_device_node_fwnode = __fwnode; \
| ^
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/dynamic_debug.h:261:59: note: expanded from macro '_dynamic_func_call'
261 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ^
include/linux/dynamic_debug.h:259:65: note: expanded from macro '_dynamic_func_call_cls'
259 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
| ^
include/linux/dynamic_debug.h:231:15: note: expanded from macro '__dynamic_func_call_cls'
231 | func(&id, ##__VA_ARGS__); \
| ^
drivers/media/pci/intel/ipu-bridge.c:287:58: note: 'adev' declared here
287 | static u32 ipu_bridge_parse_rotation(struct acpi_device *adev,
| ^
>> drivers/media/pci/intel/ipu-bridge.c:300:21: error: passing 'typeof ((adev)->fwnode)' (aka 'struct fwnode_handle') to parameter of incompatible type 'const struct fwnode_handle *'; take the address with &
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ^~~~~~~~~~~~~~~~
include/linux/acpi.h:61:46: note: expanded from macro 'ACPI_HANDLE'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^~~~~~~~~~~~~~~~~~~
include/linux/acpi.h:58:30: note: expanded from macro 'ACPI_COMPANION'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/acpi/acpi_bus.h:526:23: note: expanded from macro 'to_acpi_device_node'
526 | is_acpi_device_node(__to_acpi_device_node_fwnode) ? \
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
note: (skipping 1 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/dynamic_debug.h:261:59: note: expanded from macro '_dynamic_func_call'
261 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:259:65: note: expanded from macro '_dynamic_func_call_cls'
259 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
| ^~~~~~~~~~~
include/linux/dynamic_debug.h:231:15: note: expanded from macro '__dynamic_func_call_cls'
231 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
include/acpi/acpi_bus.h:514:54: note: passing argument to parameter 'fwnode' here
514 | bool is_acpi_device_node(const struct fwnode_handle *fwnode);
| ^
>> drivers/media/pci/intel/ipu-bridge.c:300:21: error: operand of type 'typeof ((adev)->fwnode)' (aka 'struct fwnode_handle') where arithmetic or pointer type is required
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
301 | "_PLD exists; not use rotation %u from SSDB\n",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
302 | ssdb->degree);
| ~~~~~~~~~~~~~
include/linux/acpi.h:61:46: note: expanded from macro 'ACPI_HANDLE'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^
include/linux/acpi.h:58:30: note: expanded from macro 'ACPI_COMPANION'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^
include/acpi/acpi_bus.h:527:4: note: expanded from macro 'to_acpi_device_node'
527 | container_of(__to_acpi_device_node_fwnode, \
| ^
note: (skipping 2 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/dynamic_debug.h:261:59: note: expanded from macro '_dynamic_func_call'
261 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/dynamic_debug.h:259:65: note: expanded from macro '_dynamic_func_call_cls'
259 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/dynamic_debug.h:231:15: note: expanded from macro '__dynamic_func_call_cls'
231 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
>> drivers/media/pci/intel/ipu-bridge.c:300:21: error: indirection requires pointer operand ('typeof ((adev)->fwnode)' (aka 'struct fwnode_handle') invalid)
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
301 | "_PLD exists; not use rotation %u from SSDB\n",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
302 | ssdb->degree);
| ~~~~~~~~~~~~~
include/linux/acpi.h:61:46: note: expanded from macro 'ACPI_HANDLE'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^
include/linux/acpi.h:58:30: note: expanded from macro 'ACPI_COMPANION'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^
include/acpi/acpi_bus.h:527:4: note: expanded from macro 'to_acpi_device_node'
527 | container_of(__to_acpi_device_node_fwnode, \
| ^
note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/dynamic_debug.h:261:59: note: expanded from macro '_dynamic_func_call'
261 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/dynamic_debug.h:259:65: note: expanded from macro '_dynamic_func_call_cls'
259 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/dynamic_debug.h:231:15: note: expanded from macro '__dynamic_func_call_cls'
231 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
>> drivers/media/pci/intel/ipu-bridge.c:300:21: error: indirection requires pointer operand ('typeof ((adev)->fwnode)' (aka 'struct fwnode_handle') invalid)
300 | acpi_handle_debug(ACPI_HANDLE(dev),
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
301 | "_PLD exists; not use rotation %u from SSDB\n",
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
302 | ssdb->degree);
| ~~~~~~~~~~~~~
include/linux/acpi.h:61:46: note: expanded from macro 'ACPI_HANDLE'
61 | #define ACPI_HANDLE(dev) acpi_device_handle(ACPI_COMPANION(dev))
| ^
include/linux/acpi.h:58:30: note: expanded from macro 'ACPI_COMPANION'
58 | #define ACPI_COMPANION(dev) to_acpi_device_node((dev)->fwnode)
| ^
include/acpi/acpi_bus.h:527:4: note: expanded from macro 'to_acpi_device_node'
527 | container_of(__to_acpi_device_node_fwnode, \
| ^
note: (skipping 5 expansions in backtrace; use -fmacro-backtrace-limit=0 to see all)
include/linux/dynamic_debug.h:261:59: note: expanded from macro '_dynamic_func_call'
261 | _dynamic_func_call_cls(_DPRINTK_CLASS_DFLT, fmt, func, ##__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/dynamic_debug.h:259:65: note: expanded from macro '_dynamic_func_call_cls'
259 | __dynamic_func_call_cls(__UNIQUE_ID(ddebug), cls, fmt, func, ##__VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/dynamic_debug.h:231:15: note: expanded from macro '__dynamic_func_call_cls'
231 | func(&id, ##__VA_ARGS__); \
| ^~~~~~~~~~~
6 errors generated.
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
reply other threads:[~2026-04-03 8:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202604022341.WvI89Nd5-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-media@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox