Skip to content

Commit b8c48be

Browse files
idoschdavem330
authored andcommitted
ethtool: Use kernel data types for internal EEPROM struct
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>
1 parent 37a025e commit b8c48be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

include/linux/ethtool.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -401,12 +401,12 @@ struct ethtool_rmon_stats {
401401
* required information to the driver.
402402
*/
403403
struct ethtool_module_eeprom {
404-
__u32 offset;
405-
__u32 length;
406-
__u8 page;
407-
__u8 bank;
408-
__u8 i2c_address;
409-
__u8 *data;
404+
u32 offset;
405+
u32 length;
406+
u8 page;
407+
u8 bank;
408+
u8 i2c_address;
409+
u8 *data;
410410
};
411411

412412
/**

0 commit comments

Comments
 (0)