From: kernel test robot <lkp@intel.com>
To: Ricardo Ribalda <ribalda@chromium.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-media@vger.kernel.org,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Hans de Goede <hansg@kernel.org>
Subject: [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
Date: Fri, 03 Apr 2026 16:41:06 +0800 [thread overview]
Message-ID: <202604022233.XxAwrVdV-lkp@intel.com> (raw)
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
reply other threads:[~2026-04-03 8:42 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=202604022233.XxAwrVdV-lkp@intel.com \
--to=lkp@intel.com \
--cc=hansg@kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=ribalda@chromium.org \
--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