* [groeck-staging:hwmon-next 13/34] drivers/hwmon/surface_fan.c:22:9: warning: no previous prototype for 'surface_fan_hwmon_is_visible'
@ 2024-02-03 4:52 kernel test robot
2024-02-03 12:52 ` Ivor Wanders
0 siblings, 1 reply; 5+ messages in thread
From: kernel test robot @ 2024-02-03 4:52 UTC (permalink / raw)
To: Ivor Wanders
Cc: oe-kbuild-all, linux-hwmon, Guenter Roeck, Maximilian Luz,
Armin Wolf
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@intel.com/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@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/202402031253.JPVKEF5X-lkp@intel.com/
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [groeck-staging:hwmon-next 13/34] drivers/hwmon/surface_fan.c:22:9: warning: no previous prototype for 'surface_fan_hwmon_is_visible'
2024-02-03 4:52 [groeck-staging:hwmon-next 13/34] drivers/hwmon/surface_fan.c:22:9: warning: no previous prototype for 'surface_fan_hwmon_is_visible' kernel test robot
@ 2024-02-03 12:52 ` Ivor Wanders
2024-02-03 14:12 ` Guenter Roeck
0 siblings, 1 reply; 5+ messages in thread
From: Ivor Wanders @ 2024-02-03 12:52 UTC (permalink / raw)
To: lkp; +Cc: W_Armin, ivor, linux-hwmon, linux, luzmaximilian, oe-kbuild-all
> >> 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,
I tried reproducing this, but I think this issue is already fixed in the
most recent hwmon-next?
The function should've been marked `static`. It wasn't in the original v5
patch, but the current commit in the tree (216d66aa89f9fc882) already marks
the function static, resolving the issue.
~Ivor
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [groeck-staging:hwmon-next 13/34] drivers/hwmon/surface_fan.c:22:9: warning: no previous prototype for 'surface_fan_hwmon_is_visible'
2024-02-03 12:52 ` Ivor Wanders
@ 2024-02-03 14:12 ` Guenter Roeck
2024-02-03 14:16 ` Ivor Wanders
0 siblings, 1 reply; 5+ messages in thread
From: Guenter Roeck @ 2024-02-03 14:12 UTC (permalink / raw)
To: Ivor Wanders, lkp; +Cc: W_Armin, linux-hwmon, luzmaximilian, oe-kbuild-all
On 2/3/24 04:52, Ivor Wanders wrote:
>>>> 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,
>
> I tried reproducing this, but I think this issue is already fixed in the
> most recent hwmon-next?
> The function should've been marked `static`. It wasn't in the original v5
> patch, but the current commit in the tree (216d66aa89f9fc882) already marks
> the function static, resolving the issue.
>
Yes, I already fixed this up.
Guenter
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [groeck-staging:hwmon-next 13/34] drivers/hwmon/surface_fan.c:22:9: warning: no previous prototype for 'surface_fan_hwmon_is_visible'
2024-02-03 14:12 ` Guenter Roeck
@ 2024-02-03 14:16 ` Ivor Wanders
2024-02-03 14:22 ` Guenter Roeck
0 siblings, 1 reply; 5+ messages in thread
From: Ivor Wanders @ 2024-02-03 14:16 UTC (permalink / raw)
To: linux; +Cc: W_Armin, ivor, linux-hwmon, lkp, luzmaximilian, oe-kbuild-all
> Yes, I already fixed this up.
Appreciate the confirmation, thank you for fixing this.
~Ivor
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [groeck-staging:hwmon-next 13/34] drivers/hwmon/surface_fan.c:22:9: warning: no previous prototype for 'surface_fan_hwmon_is_visible'
2024-02-03 14:16 ` Ivor Wanders
@ 2024-02-03 14:22 ` Guenter Roeck
0 siblings, 0 replies; 5+ messages in thread
From: Guenter Roeck @ 2024-02-03 14:22 UTC (permalink / raw)
To: Ivor Wanders; +Cc: W_Armin, linux-hwmon, lkp, luzmaximilian, oe-kbuild-all
On 2/3/24 06:16, Ivor Wanders wrote:
>> Yes, I already fixed this up.
>
> Appreciate the confirmation, thank you for fixing this.
>
No worries. Sorry, I should have added a note to the commit message,
but it was late last night and I forgot. I'll do that now.
Guenter
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-02-03 14:22 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-03 4:52 [groeck-staging:hwmon-next 13/34] drivers/hwmon/surface_fan.c:22:9: warning: no previous prototype for 'surface_fan_hwmon_is_visible' kernel test robot
2024-02-03 12:52 ` Ivor Wanders
2024-02-03 14:12 ` Guenter Roeck
2024-02-03 14:16 ` Ivor Wanders
2024-02-03 14:22 ` Guenter Roeck
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).