From 63e62b2e8428a60bfc958fb533439f482aadcf9c Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 2 May 2020 09:37:09 +0200 Subject: [PATCH] ANDROID: GKI: ethtool.h: add Android ABI padding to a structure Try to mitigate potential future driver core api changes by adding a padding to struct ethtool_ops. Based on a change made to the RHEL/CENTOS 8 kernel. Bug: 151154716 Signed-off-by: Greg Kroah-Hartman Change-Id: If9f449cb74e81d048a1c41b33c6b7c5b564ecaf3 --- include/linux/ethtool.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/ethtool.h b/include/linux/ethtool.h index f8a2245b70ac..3aaebb60a053 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h @@ -15,6 +15,7 @@ #include #include +#include #include #ifdef CONFIG_COMPAT @@ -412,5 +413,10 @@ struct ethtool_ops { struct ethtool_fecparam *); void (*get_ethtool_phy_stats)(struct net_device *, struct ethtool_stats *, u64 *); + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); + ANDROID_KABI_RESERVE(3); + ANDROID_KABI_RESERVE(4); }; #endif /* _LINUX_ETHTOOL_H */