* [linux-next:master 3415/3461] drivers/hwmon/cros_ec_hwmon.c:34:18: sparse: sparse: cast to restricted __le16
@ 2024-06-03 7:32 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2024-06-03 7:32 UTC (permalink / raw)
To: Thomas Weißschuh
Cc: oe-kbuild-all, Linux Memory Management List, Tzung-Bi Shih
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 861a3cb5a2a8480d361fa6708da24747d6fa72fe
commit: e8665a172378986159ce8aaf45712c43472f5866 [3415/3461] hwmon: add ChromeOS EC driver
config: x86_64-randconfig-r111-20240603 (https://download.01.org/0day-ci/archive/20240603/202406031506.HgEi9sBs-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240603/202406031506.HgEi9sBs-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/202406031506.HgEi9sBs-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
>> drivers/hwmon/cros_ec_hwmon.c:34:18: sparse: sparse: cast to restricted __le16
vim +34 drivers/hwmon/cros_ec_hwmon.c
25
26 static int cros_ec_hwmon_read_fan_speed(struct cros_ec_device *cros_ec, u8 index, u16 *speed)
27 {
28 int ret;
29
30 ret = cros_ec_cmd_readmem(cros_ec, EC_MEMMAP_FAN + index * 2, 2, speed);
31 if (ret < 0)
32 return ret;
33
> 34 *speed = le16_to_cpu(*speed);
35 return 0;
36 }
37
--
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:[~2024-06-03 7:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-03 7:32 [linux-next:master 3415/3461] drivers/hwmon/cros_ec_hwmon.c:34:18: sparse: sparse: cast to restricted __le16 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox