Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
To: "Luke D. Jones" <luke@ljones.dev>
Cc: kernel test robot <lkp@intel.com>,
	llvm@lists.linux.dev,  oe-kbuild-all@lists.linux.dev,
	 Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	 Hans de Goede <hdegoede@redhat.com>,
	 Mario Limonciello <mario.limonciello@amd.com>
Subject: Re: [pdx86-platform-drivers-x86:review-ilpo-next 74/89] drivers/platform/x86/asus-wmi.c:5028:35: error: variable has incomplete type 'struct acpi_s2idle_dev_ops'
Date: Tue, 20 May 2025 16:40:48 +0300 (EEST)	[thread overview]
Message-ID: <9adefaf8-b327-5730-664d-2741a1406c36@linux.intel.com> (raw)
In-Reply-To: <83e5ee5d-de9d-51c5-457e-803b0b7a57cd@linux.intel.com>

[-- Attachment #1: Type: text/plain, Size: 3044 bytes --]

Luke,

Ping? This is still unsolved.

On Fri, 9 May 2025, Ilpo Järvinen wrote:
> On Fri, 9 May 2025, kernel test robot wrote:
> 
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git review-ilpo-next
> > head:   83579675331059689e2869bf752ca9e17fadbd82
> > commit: feea7bd6b02d43a794e3f065650d89cf8d8e8e59 [74/89] platform/x86: asus-wmi: Refactor Ally suspend/resume
> > config: x86_64-buildonly-randconfig-004-20250509 (https://download.01.org/0day-ci/archive/20250509/202505090418.DaeaXe4i-lkp@intel.com/config)
> > compiler: clang version 20.1.2 (https://github.com/llvm/llvm-project 58df0ef89dd64126512e4ee27b4ac3fd8ddf6247)
> > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250509/202505090418.DaeaXe4i-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/202505090418.DaeaXe4i-lkp@intel.com/
> > 
> > All errors (new ones prefixed by >>):
> > 
> > >> drivers/platform/x86/asus-wmi.c:5028:35: error: variable has incomplete type 'struct acpi_s2idle_dev_ops'
> >     5028 | static struct acpi_s2idle_dev_ops asus_ally_s2idle_dev_ops = {
> >          |                                   ^
> >    drivers/platform/x86/asus-wmi.c:5028:15: note: forward declaration of 'struct acpi_s2idle_dev_ops'
> >     5028 | static struct acpi_s2idle_dev_ops asus_ally_s2idle_dev_ops = {
> >          |               ^
> > >> drivers/platform/x86/asus-wmi.c:5063:8: error: call to undeclared function 'acpi_register_lps0_dev'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> >     5063 |         ret = acpi_register_lps0_dev(&asus_ally_s2idle_dev_ops);
> >          |               ^
> > >> drivers/platform/x86/asus-wmi.c:5099:2: error: call to undeclared function 'acpi_unregister_lps0_dev'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
> >     5099 |         acpi_unregister_lps0_dev(&asus_ally_s2idle_dev_ops);
> >          |         ^
> >    3 errors generated.
> > 
> > 
> > vim +5028 drivers/platform/x86/asus-wmi.c
> > 
> >   5026	
> >   5027	/* Use only for Ally devices due to the wake_on_ac */
> > > 5028	static struct acpi_s2idle_dev_ops asus_ally_s2idle_dev_ops = {
> >   5029		.restore = asus_ally_s2idle_restore,
> >   5030	};
> >   5031	
> 
> > > 5063		ret = acpi_register_lps0_dev(&asus_ally_s2idle_dev_ops);
> 
> > > 5099		acpi_unregister_lps0_dev(&asus_ally_s2idle_dev_ops);
> 
> Hi Luke,
> 
> It seems CONFIG_SUSPEND is not defined in this config leading to the 
> failure. Can you please look at this as I was slight unsure what way the 
> fix should go although it looked like some ifdeffery is necessary and 
> probably wrapping those register/unregister functions.
> 
> 

-- 
 i.

  reply	other threads:[~2025-05-20 13:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-05-08 20:18 [pdx86-platform-drivers-x86:review-ilpo-next 74/89] drivers/platform/x86/asus-wmi.c:5028:35: error: variable has incomplete type 'struct acpi_s2idle_dev_ops' kernel test robot
2025-05-09  7:06 ` Ilpo Järvinen
2025-05-20 13:40   ` Ilpo Järvinen [this message]
2025-05-20 18:57     ` Luke Jones
2025-05-23 12:17       ` Ilpo Järvinen
2025-05-23 12:36         ` Luke Jones

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=9adefaf8-b327-5730-664d-2741a1406c36@linux.intel.com \
    --to=ilpo.jarvinen@linux.intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=hdegoede@redhat.com \
    --cc=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=luke@ljones.dev \
    --cc=mario.limonciello@amd.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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