[groeck-staging:hwmon-next 13/34] drivers/hwmon/surface_fan.c:22:9: warning: no previous prototype for 'surface_fan_hwmon_is_visible'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git hwmon-next
head:   68ca2db26850ff7eb72388e237103c56db7b4a84
commit: 6652888f0379f01027bb1d7bbdb377710833b4f2 [13/34] hwmon: add fan speed monitoring driver for Surface devices
config: loongarch-allmodconfig (https://download.01.org/0day-ci/archive/20240203/202402031253.JPVKEF5X-lkp@xxxxxxxxx/config)
compiler: loongarch64-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240203/202402031253.JPVKEF5X-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/202402031253.JPVKEF5X-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> drivers/hwmon/surface_fan.c:22:9: warning: no previous prototype for 'surface_fan_hwmon_is_visible' [-Wmissing-prototypes]
      22 | umode_t surface_fan_hwmon_is_visible(const void *drvdata,
         |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~


vim +/surface_fan_hwmon_is_visible +22 drivers/hwmon/surface_fan.c

    20	
    21	// hwmon
  > 22	umode_t surface_fan_hwmon_is_visible(const void *drvdata,
    23					     enum hwmon_sensor_types type, u32 attr,
    24					     int channel)
    25	{
    26		return 0444;
    27	}
    28	

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




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux