All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android16-6.12-desktop 28/28] drivers/platform/x86/inspur_platform_profile.c:188:1: warning: control reaches end of non-void function
@ 2026-03-04  0:43 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-04  0:43 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: 15ff3def5e7516c9599f03e3139358e29dd00664 [28/28] BACKPORT: UPSTREAM: ACPI: platform_profile: Let drivers set drvdata to the class device
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20260304/202603040843.7xWGk17M-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260304/202603040843.7xWGk17M-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/202603040843.7xWGk17M-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/platform/x86/inspur_platform_profile.c: In function 'inspur_wmi_probe':
   drivers/platform/x86/inspur_platform_profile.c:187:16: error: too few arguments to function 'platform_profile_register'
     187 |         return platform_profile_register(&priv->handler);
         |                ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from drivers/platform/x86/inspur_platform_profile.c:11:
   include/linux/platform_profile.h:43:5: note: declared here
      43 | int platform_profile_register(struct platform_profile_handler *pprof, void *drvdata);
         |     ^~~~~~~~~~~~~~~~~~~~~~~~~
   drivers/platform/x86/inspur_platform_profile.c: In function 'inspur_wmi_remove':
   drivers/platform/x86/inspur_platform_profile.c:192:9: error: too few arguments to function 'platform_profile_remove'
     192 |         platform_profile_remove();
         |         ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/platform_profile.h:44:5: note: declared here
      44 | int platform_profile_remove(struct platform_profile_handler *pprof);
         |     ^~~~~~~~~~~~~~~~~~~~~~~
   drivers/platform/x86/inspur_platform_profile.c: In function 'inspur_wmi_probe':
>> drivers/platform/x86/inspur_platform_profile.c:188:1: warning: control reaches end of non-void function [-Wreturn-type]
     188 | }
         | ^


vim +188 drivers/platform/x86/inspur_platform_profile.c

94ace9eda88229c Ai Chao 2023-10-20  168  
94ace9eda88229c Ai Chao 2023-10-20  169  static int inspur_wmi_probe(struct wmi_device *wdev, const void *context)
94ace9eda88229c Ai Chao 2023-10-20  170  {
94ace9eda88229c Ai Chao 2023-10-20  171  	struct inspur_wmi_priv *priv;
94ace9eda88229c Ai Chao 2023-10-20  172  
94ace9eda88229c Ai Chao 2023-10-20  173  	priv = devm_kzalloc(&wdev->dev, sizeof(*priv), GFP_KERNEL);
94ace9eda88229c Ai Chao 2023-10-20  174  	if (!priv)
94ace9eda88229c Ai Chao 2023-10-20  175  		return -ENOMEM;
94ace9eda88229c Ai Chao 2023-10-20  176  
94ace9eda88229c Ai Chao 2023-10-20  177  	priv->wdev = wdev;
94ace9eda88229c Ai Chao 2023-10-20  178  	dev_set_drvdata(&wdev->dev, priv);
94ace9eda88229c Ai Chao 2023-10-20  179  
94ace9eda88229c Ai Chao 2023-10-20  180  	priv->handler.profile_get = inspur_platform_profile_get;
94ace9eda88229c Ai Chao 2023-10-20  181  	priv->handler.profile_set = inspur_platform_profile_set;
94ace9eda88229c Ai Chao 2023-10-20  182  
94ace9eda88229c Ai Chao 2023-10-20  183  	set_bit(PLATFORM_PROFILE_LOW_POWER, priv->handler.choices);
94ace9eda88229c Ai Chao 2023-10-20  184  	set_bit(PLATFORM_PROFILE_BALANCED, priv->handler.choices);
94ace9eda88229c Ai Chao 2023-10-20  185  	set_bit(PLATFORM_PROFILE_PERFORMANCE, priv->handler.choices);
94ace9eda88229c Ai Chao 2023-10-20  186  
94ace9eda88229c Ai Chao 2023-10-20  187  	return platform_profile_register(&priv->handler);
94ace9eda88229c Ai Chao 2023-10-20 @188  }
94ace9eda88229c Ai Chao 2023-10-20  189  

:::::: The code at line 188 was first introduced by commit
:::::: 94ace9eda88229c73698b8dd8d3c06dd0831319c platform/x86: inspur-platform-profile: Add platform profile support

:::::: TO: Ai Chao <aichao@kylinos.cn>
:::::: CC: Ilpo Järvinen <ilpo.jarvinen@linux.intel.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-04  0:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-04  0:43 [android-common:android16-6.12-desktop 28/28] drivers/platform/x86/inspur_platform_profile.c:188:1: warning: control reaches end of non-void function 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.