dev_ioctl: fix a W=1 warning
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 24 Mar 2023 22:11:49 +0000 (23:11 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Mar 2023 08:32:21 +0000 (09:32 +0100)
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'

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev_ioctl.c

index 5cdbfbf..8466694 100644 (file)
@@ -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