All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android16-6.12-desktop 0/4] drivers/platform/x86/acer-wmi.c:1928:27: error: incomplete definition of type 'struct platform_profile_handler'
@ 2025-11-21 16:20 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-11-21 16:20 UTC (permalink / raw)
  To: cros-kernel-buildreports; +Cc: oe-kbuild-all

tree:   https://android.googlesource.com/kernel/common android16-6.12-desktop
head:   40435e5332925bf7429f8e4c796040981fcc4968
commit: 82c3c913af0c82e7da403f126de414662b19d5ab [0/4] UPSTREAM: ACPI: platform_profile: Move platform_profile_handler
config: i386-randconfig-011-20251121 (https://download.01.org/0day-ci/archive/20251122/202511220045.Cbc09c5x-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/20251122/202511220045.Cbc09c5x-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/202511220045.Cbc09c5x-lkp@intel.com/

All error/warnings (new ones prefixed by >>):

>> drivers/platform/x86/acer-wmi.c:763:40: warning: tentative definition of variable with internal linkage has incomplete non-array type 'struct platform_profile_handler' [-Wtentative-definition-incomplete-type]
     763 | static struct platform_profile_handler platform_profile_handler;
         |                                        ^
   drivers/platform/x86/acer-wmi.c:763:15: note: forward declaration of 'struct platform_profile_handler'
     763 | static struct platform_profile_handler platform_profile_handler;
         |               ^
>> drivers/platform/x86/acer-wmi.c:1928:27: error: incomplete definition of type 'struct platform_profile_handler'
    1928 |                 platform_profile_handler.profile_get =
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/acer-wmi.c:763:15: note: forward declaration of 'struct platform_profile_handler'
     763 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/acer-wmi.c:1930:27: error: incomplete definition of type 'struct platform_profile_handler'
    1930 |                 platform_profile_handler.profile_set =
         |                 ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/acer-wmi.c:763:15: note: forward declaration of 'struct platform_profile_handler'
     763 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/acer-wmi.c:1934:28: error: incomplete definition of type 'struct platform_profile_handler'
    1934 |                         platform_profile_handler.choices);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/acer-wmi.c:763:15: note: forward declaration of 'struct platform_profile_handler'
     763 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/acer-wmi.c:1936:28: error: incomplete definition of type 'struct platform_profile_handler'
    1936 |                         platform_profile_handler.choices);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/acer-wmi.c:763:15: note: forward declaration of 'struct platform_profile_handler'
     763 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/acer-wmi.c:1938:28: error: incomplete definition of type 'struct platform_profile_handler'
    1938 |                         platform_profile_handler.choices);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/acer-wmi.c:763:15: note: forward declaration of 'struct platform_profile_handler'
     763 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/acer-wmi.c:1940:28: error: incomplete definition of type 'struct platform_profile_handler'
    1940 |                         platform_profile_handler.choices);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/acer-wmi.c:763:15: note: forward declaration of 'struct platform_profile_handler'
     763 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/acer-wmi.c:1942:28: error: incomplete definition of type 'struct platform_profile_handler'
    1942 |                         platform_profile_handler.choices);
         |                         ~~~~~~~~~~~~~~~~~~~~~~~~^
   drivers/platform/x86/acer-wmi.c:763:15: note: forward declaration of 'struct platform_profile_handler'
     763 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   drivers/platform/x86/acer-wmi.c:1944:60: error: too few arguments to function call, expected 4, have 1
    1944 |                 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/acer-wmi.c:2036:27: error: too few arguments to function call, single argument 'dev' was not specified
    2036 |                 platform_profile_notify();
         |                 ~~~~~~~~~~~~~~~~~~~~~~~ ^
   include/linux/platform_profile.h:45:6: note: 'platform_profile_notify' declared here
      45 | void platform_profile_notify(struct device *dev);
         |      ^                       ~~~~~~~~~~~~~~~~~~
   drivers/platform/x86/acer-wmi.c:2598:27: error: too few arguments to function call, single argument 'dev' was not specified
    2598 |                 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/acer-wmi.c:2621:27: error: too few arguments to function call, single argument 'dev' was not specified
    2621 |                 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/acer-wmi.c:763:40: error: tentative definition has type 'struct platform_profile_handler' that is never completed
     763 | static struct platform_profile_handler platform_profile_handler;
         |                                        ^
   drivers/platform/x86/acer-wmi.c:763:15: note: forward declaration of 'struct platform_profile_handler'
     763 | static struct platform_profile_handler platform_profile_handler;
         |               ^
   1 warning and 12 errors generated.


vim +1928 drivers/platform/x86/acer-wmi.c

6bb5153dfbaf88 SungHwan Jung 2023-11-24  1922  
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1923  static int acer_platform_profile_setup(void)
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1924  {
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1925  	if (quirks->predator_v4) {
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1926  		int err;
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1927  
6bb5153dfbaf88 SungHwan Jung 2023-11-24 @1928  		platform_profile_handler.profile_get =
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1929  			acer_predator_v4_platform_profile_get;
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1930  		platform_profile_handler.profile_set =
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1931  			acer_predator_v4_platform_profile_set;
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1932  
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1933  		set_bit(PLATFORM_PROFILE_PERFORMANCE,
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1934  			platform_profile_handler.choices);
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1935  		set_bit(PLATFORM_PROFILE_BALANCED_PERFORMANCE,
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1936  			platform_profile_handler.choices);
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1937  		set_bit(PLATFORM_PROFILE_BALANCED,
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1938  			platform_profile_handler.choices);
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1939  		set_bit(PLATFORM_PROFILE_QUIET,
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1940  			platform_profile_handler.choices);
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1941  		set_bit(PLATFORM_PROFILE_LOW_POWER,
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1942  			platform_profile_handler.choices);
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1943  
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1944  		err = platform_profile_register(&platform_profile_handler);
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1945  		if (err)
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1946  			return err;
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1947  
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1948  		platform_profile_support = true;
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1949  
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1950  		/* Set default non-turbo profile  */
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1951  		last_non_turbo_profile =
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1952  			ACER_PREDATOR_V4_THERMAL_PROFILE_BALANCED_WMI;
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1953  	}
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1954  	return 0;
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1955  }
6bb5153dfbaf88 SungHwan Jung 2023-11-24  1956  

:::::: The code at line 1928 was first introduced by commit
:::::: 6bb5153dfbaf88fa4b40ef50b706d2fb186ed92e platform/x86: acer-wmi: Add platform profile and mode key support for Predator PHN16-71

:::::: TO: SungHwan Jung <onenowy@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:[~2025-11-21 16:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-21 16:20 [android-common:android16-6.12-desktop 0/4] drivers/platform/x86/acer-wmi.c:1928:27: error: incomplete definition of 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.