All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [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
Date: Wed, 04 Mar 2026 08:43:30 +0800	[thread overview]
Message-ID: <202603040843.7xWGk17M-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-03-04  0:44 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=202603040843.7xWGk17M-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=cros-kernel-buildreports@googlegroups.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 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.