From 0205308795f25f9c13df30476f308a338bd2b64f 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 99dc7bfbcd3c..da7667879166 100644 --- a/include/linux/ethtool.h +++ b/include/linux/ethtool.h @@ -16,6 +16,7 @@ #include #include #include +#include #include struct compat_ethtool_rx_flow_spec { @@ -760,6 +761,11 @@ struct ethtool_ops { int (*set_module_power_mode)(struct net_device *dev, const struct ethtool_module_power_mode_params *params, struct netlink_ext_ack *extack); + + ANDROID_KABI_RESERVE(1); + ANDROID_KABI_RESERVE(2); + ANDROID_KABI_RESERVE(3); + ANDROID_KABI_RESERVE(4); }; int ethtool_check_ops(const struct ethtool_ops *ops);