]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/4.4.157/ethtool-remove-trailing-semicolon-for-static-inline.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.4.157 / ethtool-remove-trailing-semicolon-for-static-inline.patch
CommitLineData
7be860c4
GKH
1From foo@baz Mon Sep 17 12:15:09 CEST 2018
2From: Florian Fainelli <f.fainelli@gmail.com>
3Date: Sat, 4 Aug 2018 14:20:40 -0700
4Subject: ethtool: Remove trailing semicolon for static inline
5
6From: Florian Fainelli <f.fainelli@gmail.com>
7
8[ Upstream commit d89d41556141a527030a15233135ba622ba3350d ]
9
10Android's header sanitization tool chokes on static inline functions having a
11trailing semicolon, leading to an incorrectly parsed header file. While the
12tool should obviously be fixed, also fix the header files for the two affected
13functions: ethtool_get_flow_spec_ring() and ethtool_get_flow_spec_ring_vf().
14
15Fixes: 8cf6f497de40 ("ethtool: Add helper routines to pass vf to rx_flow_spec")
16Reporetd-by: Blair Prescott <blair.prescott@broadcom.com>
17Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
18Signed-off-by: David S. Miller <davem@davemloft.net>
19Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
20Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
21---
22 include/uapi/linux/ethtool.h | 4 ++--
23 1 file changed, 2 insertions(+), 2 deletions(-)
24
25--- a/include/uapi/linux/ethtool.h
26+++ b/include/uapi/linux/ethtool.h
27@@ -819,13 +819,13 @@ struct ethtool_rx_flow_spec {
28 static inline __u64 ethtool_get_flow_spec_ring(__u64 ring_cookie)
29 {
30 return ETHTOOL_RX_FLOW_SPEC_RING & ring_cookie;
31-};
32+}
33
34 static inline __u64 ethtool_get_flow_spec_ring_vf(__u64 ring_cookie)
35 {
36 return (ETHTOOL_RX_FLOW_SPEC_RING_VF & ring_cookie) >>
37 ETHTOOL_RX_FLOW_SPEC_RING_VF_OFF;
38-};
39+}
40
41 /**
42 * struct ethtool_rxnfc - command to get or set RX flow classification rules