Commit 82385b0d authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by David S. Miller

net: skbuff.h: Mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Acked-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9fd25592
...@@ -3505,13 +3505,19 @@ static inline bool __skb_metadata_differs(const struct sk_buff *skb_a, ...@@ -3505,13 +3505,19 @@ static inline bool __skb_metadata_differs(const struct sk_buff *skb_a,
#define __it(x, op) (x -= sizeof(u##op)) #define __it(x, op) (x -= sizeof(u##op))
#define __it_diff(a, b, op) (*(u##op *)__it(a, op)) ^ (*(u##op *)__it(b, op)) #define __it_diff(a, b, op) (*(u##op *)__it(a, op)) ^ (*(u##op *)__it(b, op))
case 32: diffs |= __it_diff(a, b, 64); case 32: diffs |= __it_diff(a, b, 64);
/* fall through */
case 24: diffs |= __it_diff(a, b, 64); case 24: diffs |= __it_diff(a, b, 64);
/* fall through */
case 16: diffs |= __it_diff(a, b, 64); case 16: diffs |= __it_diff(a, b, 64);
/* fall through */
case 8: diffs |= __it_diff(a, b, 64); case 8: diffs |= __it_diff(a, b, 64);
break; break;
case 28: diffs |= __it_diff(a, b, 64); case 28: diffs |= __it_diff(a, b, 64);
/* fall through */
case 20: diffs |= __it_diff(a, b, 64); case 20: diffs |= __it_diff(a, b, 64);
/* fall through */
case 12: diffs |= __it_diff(a, b, 64); case 12: diffs |= __it_diff(a, b, 64);
/* fall through */
case 4: diffs |= __it_diff(a, b, 32); case 4: diffs |= __it_diff(a, b, 32);
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment