* [sailus-media-tree:pld 24/32] drivers/media/v4l2-core/v4l2-fwnode.c:831:3: error: call to undeclared function '__acpi_handle_debug'; ISO C99 and later do not support implicit function declarations
@ 2026-04-03 8:41 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-03 8:41 UTC (permalink / raw)
To: Ricardo Ribalda
Cc: llvm, oe-kbuild-all, linux-media, Sakari Ailus, Hans de Goede
tree: git://linuxtv.org/sailus/media_tree.git pld
head: b8c5b499767feb946c184029ff272276a036623e
commit: 010794c2fea2ddf1d1556e40bcd97c3c3b952825 [24/32] media: v4l: fwnode: Support ACPI's _PLD for v4l2_fwnode_device_parse
config: hexagon-randconfig-001-20260402 (https://download.01.org/0day-ci/archive/20260402/202604022233.XxAwrVdV-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260402/202604022233.XxAwrVdV-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/202604022233.XxAwrVdV-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/media/v4l2-core/v4l2-fwnode.c:831:3: error: call to undeclared function '__acpi_handle_debug'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
831 | acpi_handle_debug(ACPI_HANDLE(dev), "cannot obtain _PLD\n");
| ^
include/linux/acpi.h:1275:26: note: expanded from macro 'acpi_handle_debug'
1275 | _dynamic_func_call(fmt, __acpi_handle_debug, \
| ^
1 error generated.
vim +/__acpi_handle_debug +831 drivers/media/v4l2-core/v4l2-fwnode.c
820
821 static int v4l2_fwnode_device_parse_acpi(struct device *dev,
822 struct v4l2_fwnode_device_properties *props)
823 {
824 struct acpi_pld_info *pld;
825 int ret = 0;
826
827 if (!is_acpi_device_node(dev_fwnode(dev)))
828 return 0;
829
830 if (!acpi_get_physical_device_location(ACPI_HANDLE(dev), &pld)) {
> 831 acpi_handle_debug(ACPI_HANDLE(dev), "cannot obtain _PLD\n");
832 return 0;
833 }
834
835 if (props->orientation == V4L2_FWNODE_PROPERTY_UNSET) {
836 switch (pld->panel) {
837 case ACPI_PLD_PANEL_FRONT:
838 props->orientation = V4L2_FWNODE_ORIENTATION_FRONT;
839 break;
840 case ACPI_PLD_PANEL_BACK:
841 props->orientation = V4L2_FWNODE_ORIENTATION_BACK;
842 break;
843 case ACPI_PLD_PANEL_TOP:
844 case ACPI_PLD_PANEL_LEFT:
845 case ACPI_PLD_PANEL_RIGHT:
846 case ACPI_PLD_PANEL_UNKNOWN:
847 props->orientation = V4L2_FWNODE_ORIENTATION_EXTERNAL;
848 break;
849 default:
850 acpi_handle_warn(ACPI_HANDLE(dev),
851 "invalid panel %u in _PLD\n",
852 pld->panel);
853 ret = -EINVAL;
854 goto done;
855 }
856 }
857
858 if (props->rotation == V4L2_FWNODE_PROPERTY_UNSET) {
859 switch (pld->rotation) {
860 case 0 ... 7:
861 props->rotation = pld->rotation * 45;
862 break;
863 default:
864 acpi_handle_warn(ACPI_HANDLE(dev),
865 "invalid rotation %u in _PLD\n",
866 pld->rotation);
867 ret = -EINVAL;
868 goto done;
869 }
870 }
871
872 done:
873 ACPI_FREE(pld);
874 return ret;
875 }
876
--
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:41 [sailus-media-tree:pld 24/32] drivers/media/v4l2-core/v4l2-fwnode.c:831:3: error: call to undeclared function '__acpi_handle_debug'; ISO C99 and later do not support implicit function declarations 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