From: kernel test robot <lkp@intel.com>
To: "Peter Marshall" <pm@petermarshall.ca>,
"Maximilian Luz" <luzmaximilian@gmail.com>,
"Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
platform-driver-x86@vger.kernel.org,
linux-kernel@vger.kernel.org,
Peter Marshall <pm@petermarshall.ca>
Subject: Re: [PATCH] platform/surface: platform_profile: handle fan standby state
Date: Thu, 12 Nov 2026 05:26:35 +0800 [thread overview]
Message-ID: <202611120527.xw8ZORYY-lkp@intel.com> (raw)
In-Reply-To: <20261111020916.3557508-2-pm@petermarshall.ca>
Hi Peter,
kernel test robot noticed the following build warnings:
[auto build test WARNING on linus/master]
[also build test WARNING on v7.4-rc2 next-20261110]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Peter-Marshall/platform-surface-platform_profile-handle-fan-standby-state/20261110-210916
base: linus/master
patch link: https://lore.kernel.org/r/20261111020916.3557508-2-pm%40petermarshall.ca
patch subject: [PATCH] platform/surface: platform_profile: handle fan standby state
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20261112/202611120527.xw8ZORYY-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261112/202611120527.xw8ZORYY-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/202611120527.xw8ZORYY-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/platform/surface/surface_platform_profile.c:267:6: warning: variable 'status' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
267 | if (tpd->has_fan) {
| ^~~~~~~~~~~~
drivers/platform/surface/surface_platform_profile.c:273:9: note: uninitialized use occurs here
273 | return status;
| ^~~~~~
drivers/platform/surface/surface_platform_profile.c:267:2: note: remove the 'if' if its condition is always true
267 | if (tpd->has_fan) {
| ^~~~~~~~~~~~~~~~~
drivers/platform/surface/surface_platform_profile.c:263:12: note: initialize the variable 'status' to silence this warning
263 | int status;
| ^
| = 0
1 warning generated.
vim +267 drivers/platform/surface/surface_platform_profile.c
259
260 static int surface_platform_profile_pm_prepare(struct device *dev)
261 {
262 struct ssam_platform_profile_device *tpd;
263 int status;
264
265 tpd = dev_get_drvdata(dev);
266
> 267 if (tpd->has_fan) {
268 status = ssam_fan_state_set(tpd->sdev, SSAM_FAN_STATE_STANDBY);
269 if (status)
270 dev_err(&tpd->sdev->dev, "pm: fan standby notification failed");
271 }
272
273 return status;
274 }
275
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
prev parent reply other threads:[~2026-11-11 21:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-11 2:09 [PATCH 0/1] platform/surface: platform_profile: handle fan standby state Peter Marshall
2026-11-11 2:09 ` [PATCH] " Peter Marshall
2026-11-11 14:14 ` kernel test robot
2026-11-11 21:26 ` kernel test robot [this message]
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=202611120527.xw8ZORYY-lkp@intel.com \
--to=lkp@intel.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=luzmaximilian@gmail.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=platform-driver-x86@vger.kernel.org \
--cc=pm@petermarshall.ca \
/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.