History

net sched actions: fix coding style in pedit headers

Fix coding style issues in tc pedit headers detected by the checkpatch script.

Roman Mashak committed 8 years ago

Commit d020d451 parent 80f0f572 files · +8 −2Browse files

Showing the changes to include/uapi/linux (1 of 2 files). Show all

Unified · Split

include/uapi/linux/tc_act/tc_pedit.h+7−2
@@ -17,13 +17,15 @@ enum { · 16 unmodified lines
17 TCA_PEDIT_KEY_EX,17 TCA_PEDIT_KEY_EX,
18 __TCA_PEDIT_MAX18 __TCA_PEDIT_MAX
19};19};
20
20#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)21#define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1)
21 22
22enum {23enum {
23 TCA_PEDIT_KEY_EX_HTYPE = 1,24 TCA_PEDIT_KEY_EX_HTYPE = 1,
24 TCA_PEDIT_KEY_EX_CMD = 2,25 TCA_PEDIT_KEY_EX_CMD = 2,
25 __TCA_PEDIT_KEY_EX_MAX26 __TCA_PEDIT_KEY_EX_MAX
26};27};
28
27#define TCA_PEDIT_KEY_EX_MAX (__TCA_PEDIT_KEY_EX_MAX - 1)29#define TCA_PEDIT_KEY_EX_MAX (__TCA_PEDIT_KEY_EX_MAX - 1)
28 30
29 /* TCA_PEDIT_KEY_EX_HDR_TYPE_NETWROK is a special case for legacy users. It31 /* TCA_PEDIT_KEY_EX_HDR_TYPE_NETWROK is a special case for legacy users. It
@@ -38,6 +40,7 @@ enum pedit_header_type { · 8 unmodified lines
38 TCA_PEDIT_KEY_EX_HDR_TYPE_UDP = 5,40 TCA_PEDIT_KEY_EX_HDR_TYPE_UDP = 5,
39 __PEDIT_HDR_TYPE_MAX,41 __PEDIT_HDR_TYPE_MAX,
40};42};
43
41#define TCA_PEDIT_HDR_TYPE_MAX (__PEDIT_HDR_TYPE_MAX - 1)44#define TCA_PEDIT_HDR_TYPE_MAX (__PEDIT_HDR_TYPE_MAX - 1)
42 45
43enum pedit_cmd {46enum pedit_cmd {
@@ -45,6 +48,7 @@ enum pedit_cmd { · 1 unmodified line
45 TCA_PEDIT_KEY_EX_CMD_ADD = 1,48 TCA_PEDIT_KEY_EX_CMD_ADD = 1,
46 __PEDIT_CMD_MAX,49 __PEDIT_CMD_MAX,
47};50};
51
48#define TCA_PEDIT_CMD_MAX (__PEDIT_CMD_MAX - 1)52#define TCA_PEDIT_CMD_MAX (__PEDIT_CMD_MAX - 1)
49 53
50struct tc_pedit_key {54struct tc_pedit_key {
@@ -55,13 +59,14 @@ struct tc_pedit_key { · 4 unmodified lines
55 __u32 offmask;59 __u32 offmask;
56 __u32 shift;60 __u32 shift;
57};61};
58 62
59struct tc_pedit_sel {63struct tc_pedit_sel {
60 tc_gen;64 tc_gen;
61 unsigned char nkeys;65 unsigned char nkeys;
62 unsigned char flags;66 unsigned char flags;
63 struct tc_pedit_key keys[0];67 struct tc_pedit_key keys[0];
64};68};
69
65#define tc_pedit tc_pedit_sel70#define tc_pedit tc_pedit_sel
66 71
67#endif72#endif