public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: oe-kbuild-all@lists.linux.dev, linux-acpi@vger.kernel.org,
	linux-pm@vger.kernel.org
Subject: [rafael-pm:bleeding-edge 76/102] drivers/platform/chrome/chromeos_tbmc.c:50:9: error: expected ',' or ';' before 'struct'
Date: Thu, 26 Feb 2026 01:35:17 +0800	[thread overview]
Message-ID: <202602260106.dVqBEPAB-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-02-25 17:35 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=202602260106.dVqBEPAB-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=rjw@rjwysocki.net \
    /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