0 day kernel build service
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: drivers/platform/x86/hp/hp-wmi.c:391 rpm_to_pwm() warn: signedness bug returning '(-65025)'
Date: Thu, 27 Aug 2026 17:07:59 +0800	[thread overview]
Message-ID: <202608271644.FXMsBF9y-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Krishna Chomal <krishna.chomal108@gmail.com>
CC: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   45c13f3f9e3bb15fd89ff2864c6f627a3b4b4229
commit: 46be1453e6e61884b4840a768d1e8ffaf01a4c1c platform/x86: hp-wmi: add manual fan control for Victus S models
date:   7 months ago
:::::: branch date: 2 days ago
:::::: commit date: 7 months ago
config: x86_64-randconfig-r073-20260827 (https://download.01.org/0day-ci/archive/20260827/202608271644.FXMsBF9y-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
smatch: v0.5.0-9187-g5189e3fb

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
| Fixes: 46be1453e6e6 ("platform/x86: hp-wmi: add manual fan control for Victus S models")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202608271644.FXMsBF9y-lkp@intel.com/

smatch warnings:
drivers/platform/x86/hp/hp-wmi.c:391 rpm_to_pwm() warn: signedness bug returning '(-65025)'

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

46be1453e6e618 Krishna Chomal 2026-01-13  388  
46be1453e6e618 Krishna Chomal 2026-01-13  389  static inline u8 rpm_to_pwm(u8 rpm, struct hp_wmi_hwmon_priv *priv)
46be1453e6e618 Krishna Chomal 2026-01-13  390  {
46be1453e6e618 Krishna Chomal 2026-01-13 @391  	return fixp_linear_interpolate(0, 0, priv->max_rpm, U8_MAX,
46be1453e6e618 Krishna Chomal 2026-01-13  392  				       clamp_val(rpm, 0, priv->max_rpm));
46be1453e6e618 Krishna Chomal 2026-01-13  393  }
46be1453e6e618 Krishna Chomal 2026-01-13  394  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-08-27  9:08 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=202608271644.FXMsBF9y-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox