All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android16-6.12-desktop 28/28] drivers/platform/x86/hp/hp-wmi.c:276:40: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct platform_profile_handler'
@ 2026-03-03 23:00 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-03 23:00 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

Hi Kurt,

FYI, the error/warning still remains.

tree:   https://android.googlesource.com/kernel/common android16-6.12-desktop
head:   8e5209e3b2974d51db2fd44a262f0d2bc2b7798d
commit: 82c3c913af0c82e7da403f126de414662b19d5ab [28/28] UPSTREAM: ACPI: platform_profile: Move platform_profile_handler
config: x86_64-allyesconfig (https://download.01.org/0day-ci/archive/20260304/202603040610.DNnDuYHp-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/20260304/202603040610.DNnDuYHp-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/202603040610.DNnDuYHp-lkp@intel.com/

All warnings (new ones prefixed by >>):

>> drivers/platform/x86/hp/hp-wmi.c:276:40: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct platform_profile_handler' [-Wtentative-definition-incomplete-type]
     276 | static struct platform_profile_handler platform_profile_handler;
         |                                        ^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1585:27: error: incomplete definition of type 'struct platform_profile_handler'
    1585 |                 platform_profile_handler.profile_get = platform_profile_omen_get;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1586:27: error: incomplete definition of type 'struct platform_profile_handler'
    1586 |                 platform_profile_handler.profile_set = platform_profile_omen_set;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1588:58: error: incomplete definition of type 'struct platform_profile_handler'
    1588 |                 set_bit(PLATFORM_PROFILE_COOL, platform_profile_handler.choices);
         |                                                ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1602:27: error: incomplete definition of type 'struct platform_profile_handler'
    1602 |                 platform_profile_handler.profile_get = platform_profile_victus_get;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1603:27: error: incomplete definition of type 'struct platform_profile_handler'
    1603 |                 platform_profile_handler.profile_set = platform_profile_victus_set;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1605:59: error: incomplete definition of type 'struct platform_profile_handler'
    1605 |                 set_bit(PLATFORM_PROFILE_QUIET, platform_profile_handler.choices);
         |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1620:27: error: incomplete definition of type 'struct platform_profile_handler'
    1620 |                 platform_profile_handler.profile_get = hp_wmi_platform_profile_get;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1621:27: error: incomplete definition of type 'struct platform_profile_handler'
    1621 |                 platform_profile_handler.profile_set = hp_wmi_platform_profile_set;
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1623:59: error: incomplete definition of type 'struct platform_profile_handler'
    1623 |                 set_bit(PLATFORM_PROFILE_QUIET, platform_profile_handler.choices);
         |                                                 ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1624:58: error: incomplete definition of type 'struct platform_profile_handler'
    1624 |                 set_bit(PLATFORM_PROFILE_COOL, platform_profile_handler.choices);
         |                                                ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1627:61: error: incomplete definition of type 'struct platform_profile_handler'
    1627 |         set_bit(PLATFORM_PROFILE_BALANCED, platform_profile_handler.choices);
         |                                            ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1628:64: error: incomplete definition of type 'struct platform_profile_handler'
    1628 |         set_bit(PLATFORM_PROFILE_PERFORMANCE, platform_profile_handler.choices);
         |                                               ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/hp/hp-wmi.c:1630:59: error: too few arguments to function call, expected 4, have 1
    1630 |         err = platform_profile_register(&platform_profile_handler);
         |               ~~~~~~~~~~~~~~~~~~~~~~~~~                          ^
   include/linux/platform_profile.h:37:16: note: 'platform_profile_register' declared here
      37 | struct device *platform_profile_register(struct device *dev, const char *name,
         |                ^                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      38 |                                          void *drvdata,
         |                                          ~~~~~~~~~~~~~~
      39 |                                          const struct platform_profile_ops *ops);
         |                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/platform/x86/hp/hp-wmi.c:1694:27: error: too few arguments to function call, single argument 'dev' was not specified
    1694 |                 platform_profile_remove();
         |                 ~~~~~~~~~~~~~~~~~~~~~~~ ^
   include/linux/platform_profile.h:40:5: note: 'platform_profile_remove' declared here
      40 | int platform_profile_remove(struct device *dev);
         |     ^                       ~~~~~~~~~~~~~~~~~~
   drivers/platform/x86/hp/hp-wmi.c:276:40: error: tentative definition has type 'struct platform_profile_handler' that is never completed
     276 | static struct platform_profile_handler platform_profile_handler;
         |                                        ^
   drivers/platform/x86/hp/hp-wmi.c:276:15: note: forward declaration of 'struct platform_profile_handler'
     276 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   1 warning and 15 errors generated.


vim +276 drivers/platform/x86/hp/hp-wmi.c

d23430233494411 drivers/platform/x86/hp/hp-wmi.c Alexis Belmonte 2024-07-08  272  
62ec30d45ecbb85 drivers/misc/hp-wmi.c            Matthew Garrett 2008-07-25  273  static struct input_dev *hp_wmi_input_dev;
604915f1c7b22a9 drivers/platform/x86/hp/hp-wmi.c Jonathan Singer 2023-04-26  274  static struct input_dev *camera_shutter_input_dev;
62ec30d45ecbb85 drivers/misc/hp-wmi.c            Matthew Garrett 2008-07-25  275  static struct platform_device *hp_wmi_platform_dev;
4296f679ca50f97 drivers/platform/x86/hp-wmi.c    Elia Devito     2021-02-21 @276  static struct platform_profile_handler platform_profile_handler;
d23430233494411 drivers/platform/x86/hp/hp-wmi.c Alexis Belmonte 2024-07-08  277  static struct notifier_block platform_power_source_nb;
d23430233494411 drivers/platform/x86/hp/hp-wmi.c Alexis Belmonte 2024-07-08  278  static enum platform_profile_option active_platform_profile;
4296f679ca50f97 drivers/platform/x86/hp-wmi.c    Elia Devito     2021-02-21  279  static bool platform_profile_support;
65f936f3535950d drivers/platform/x86/hp-wmi.c    Bedant Patnaik  2022-06-09  280  static bool zero_insize_support;
62ec30d45ecbb85 drivers/misc/hp-wmi.c            Matthew Garrett 2008-07-25  281  

:::::: The code at line 276 was first introduced by commit
:::::: 4296f679ca50f97c4973715f1e9e72357d2eb251 platform/x86: hp-wmi: add platform profile support

:::::: TO: Elia Devito <eliadevito@gmail.com>
:::::: CC: Hans de Goede <hdegoede@redhat.com>

-- 
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-03-03 23:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-03 23:00 [android-common:android16-6.12-desktop 28/28] drivers/platform/x86/hp/hp-wmi.c:276:40: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct platform_profile_handler' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.