projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0235fb
)
l2tp: avoid precidence issues in L2TP_SKB_CB macro
author
Tom Parkin
<tparkin@katalix.com>
Wed, 22 Jul 2020 16:32:14 +0000
(17:32 +0100)
committer
David S. Miller
<davem@davemloft.net>
Thu, 23 Jul 2020 01:08:39 +0000
(18:08 -0700)
checkpatch warned about the L2TP_SKB_CB macro's use of its argument: add
braces to avoid the problem.
Signed-off-by: Tom Parkin <tparkin@katalix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/l2tp/l2tp_core.c
patch
|
blob
|
blame
|
history
diff --git
a/net/l2tp/l2tp_core.c
b/net/l2tp/l2tp_core.c
index 3dc712647f342eaf7e776205465701a89bfbfc5d..6871611d99f243b69e5e212e1fd435d32ce36796 100644
(file)
--- a/
net/l2tp/l2tp_core.c
+++ b/
net/l2tp/l2tp_core.c
@@
-93,7
+93,7
@@
struct l2tp_skb_cb {
unsigned long expires;
};
-#define L2TP_SKB_CB(skb) ((struct l2tp_skb_cb *)&
skb
->cb[sizeof(struct inet_skb_parm)])
+#define L2TP_SKB_CB(skb) ((struct l2tp_skb_cb *)&
(skb)
->cb[sizeof(struct inet_skb_parm)])
static struct workqueue_struct *l2tp_wq;