* [rafael-pm:bleeding-edge 76/102] drivers/platform/chrome/chromeos_tbmc.c:50:9: error: expected ',' or ';' before 'struct'
@ 2026-02-25 17:35 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-02-25 17:35 UTC (permalink / raw)
To: Rafael J. Wysocki; +Cc: oe-kbuild-all, linux-acpi, linux-pm
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git bleeding-edge
head: afb26ba421df11fad71fc4be9b874a901efb0388
commit: 37ca8e5f81981188405d5722825b58173c275fb5 [76/102] platform/chrome: chromeos_tbmc: Convert to a platform driver
config: x86_64-randconfig-161-20260225 (https://download.01.org/0day-ci/archive/20260226/202602260106.dVqBEPAB-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch version: v0.5.0-8994-gd50c5a4c
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260226/202602260106.dVqBEPAB-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/202602260106.dVqBEPAB-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/platform/chrome/chromeos_tbmc.c: In function 'chromeos_tbmc_notify':
>> drivers/platform/chrome/chromeos_tbmc.c:50:9: error: expected ',' or ';' before 'struct'
50 | struct acpi_device *adev = ACPI_COMPANION(dev);
| ^~~~~~
In file included from include/linux/acpi.h:38,
from drivers/platform/chrome/chromeos_tbmc.c:15:
>> include/acpi/acpi_bus.h:531:10: error: expected statement before ')' token
531 | })
| ^
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)
| ^~~~~~~~~~~~~~~~~~~
drivers/platform/chrome/chromeos_tbmc.c:50:36: note: in expansion of macro 'ACPI_COMPANION'
50 | struct acpi_device *adev = ACPI_COMPANION(dev);
| ^~~~~~~~~~~~~~
>> drivers/platform/chrome/chromeos_tbmc.c:52:31: error: 'adev' undeclared (first use in this function); did you mean 'dev'?
52 | acpi_pm_wakeup_event(&adev->dev);
| ^~~~
| dev
drivers/platform/chrome/chromeos_tbmc.c:52:31: note: each undeclared identifier is reported only once for each function it appears in
vim +50 drivers/platform/chrome/chromeos_tbmc.c
46
47 static void chromeos_tbmc_notify(acpi_handle handle, u32 event, void *data)
48 {
49 struct device *dev = data
> 50 struct acpi_device *adev = ACPI_COMPANION(dev);
51
> 52 acpi_pm_wakeup_event(&adev->dev);
53 switch (event) {
54 case 0x80:
55 chromeos_tbmc_query_switch(adev, dev_get_drvdata(dev));
56 break;
57 default:
58 dev_err(dev, "Unexpected event: 0x%08X\n", event);
59 }
60 }
61
--
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-02-25 17:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-25 17:35 [rafael-pm:bleeding-edge 76/102] drivers/platform/chrome/chromeos_tbmc.c:50:9: error: expected ',' or ';' before 'struct' 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