Skip to contentSkip to conversation

dev_ioctl: fix a W=1 warning

PATCH Applied Heiner Kallweit 3 participants 3 messages Mar 24, 2023 – Mar 27, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dev_ioctl: fix a W=1 warning

This fixes the following warning when compiled with GCC 12.2.0 and W=1.

net/core/dev_ioctl.c:475: warning: Function parameter or member 'data' not described in 'dev_ioctl'

---
 net/core/dev_ioctl.c | 1 +
 1 file changed, 1 insertion(+)
net/core/dev_ioctl.c +1 -0
index 5cdbfbf9a..846669426 100644
@@ -462,6 +462,7 @@ EXPORT_SYMBOL(dev_load);
  *	@net: the applicable net namespace
  *	@cmd: command to issue
  *	@ifr: pointer to a struct ifreq in user space
+ *	@data: data exchanged with userspace
  *	@need_copyout: whether or not copy_to_user() should be called
  *
  *	Issue ioctl functions to devices. This is normally called by the
Signature · 1 line
2.40.0
#2 lore raw
In reply to Heiner Kallweit
This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by David S. Miller <[email protected]>:

Quoted 8 lines · On Fri, 24 Mar 2023 23:11:49 +0100 you wrote:

This fixes the following warning when compiled with GCC 12.2.0 and W=1.

net/core/dev_ioctl.c:475: warning: Function parameter or member 'data' not described in 'dev_ioctl'

[...]

Here is the summary with links:
- [net-next] dev_ioctl: fix a W=1 warning

    https://git.kernel.org/netdev/net-next/c/e5b42483ccce

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html