]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
ethtool: Use kernel data types for internal EEPROM struct
authorIdo Schimmel <idosch@nvidia.com>
Tue, 22 Jun 2021 06:50:50 +0000 (09:50 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Jun 2021 17:40:54 +0000 (10:40 -0700)
The struct is not visible to user space and therefore should not use the
user visible data types.

Instead, use internal data types like other structures in the file.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/ethtool.h

index e030f7510cd3a19fc691873da1fa823ae505fff4..29dbb603bc915e9b30b4f5d7cf6302140537c1f5 100644 (file)
@@ -401,12 +401,12 @@ struct ethtool_rmon_stats {
  * required information to the driver.
  */
 struct ethtool_module_eeprom {
-       __u32   offset;
-       __u32   length;
-       __u8    page;
-       __u8    bank;
-       __u8    i2c_address;
-       __u8    *data;
+       u32     offset;
+       u32     length;
+       u8      page;
+       u8      bank;
+       u8      i2c_address;
+       u8      *data;
 };
 
 /**