Re: [PATCH] platform/surface: platform_profile: handle fan standby state

From: kernel test robot

Date: Wed Nov 11 2026 - 09:34:03 EST


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: i386-randconfig-1013-20261111 (https://download.01.org/0day-ci/archive/20261111/202611112200.LGfh2iNB-lkp@xxxxxxxxx/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/20261111/202611112200.LGfh2iNB-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202611112200.LGfh2iNB-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/platform/surface/surface_platform_profile.c:103:12: warning: 'ssam_fan_state_set' defined but not used [-Wunused-function]
103 | static int ssam_fan_state_set(struct ssam_device *sdev, enum ssam_fan_state s)
| ^~~~~~~~~~~~~~~~~~


vim +/ssam_fan_state_set +103 drivers/platform/surface/surface_platform_profile.c

102
> 103 static int ssam_fan_state_set(struct ssam_device *sdev, enum ssam_fan_state s)
104 {
105 const u8 state = s;
106
107 return ssam_retry(__ssam_fan_state_set, sdev->ctrl, &state);
108 }
109

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