Skip to content

Commit 5a59a3a

Browse files
Guillaume Naultdavem330
authored andcommitted
ppp: fix __percpu annotation
Move sparse annotation right after pointer type. Fixes sparse warning: drivers/net/ppp/ppp_generic.c:1422:13: warning: incorrect type in initializer (different address spaces) drivers/net/ppp/ppp_generic.c:1422:13: expected void const [noderef] <asn:3>*__vpp_verify drivers/net/ppp/ppp_generic.c:1422:13: got int *<noident> ... Fixes: e5dadc6 ("ppp: Fix false xmit recursion detect with two ppp devices") Signed-off-by: Guillaume Nault <g.nault@alphalink.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 230583c commit 5a59a3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ppp/ppp_generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ struct ppp {
120120
int n_channels; /* how many channels are attached 54 */
121121
spinlock_t rlock; /* lock for receive side 58 */
122122
spinlock_t wlock; /* lock for transmit side 5c */
123-
int *xmit_recursion __percpu; /* xmit recursion detect */
123+
int __percpu *xmit_recursion; /* xmit recursion detect */
124124
int mru; /* max receive unit 60 */
125125
unsigned int flags; /* control bits 64 */
126126
unsigned int xstate; /* transmit state bits 68 */

0 commit comments

Comments
 (0)