netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] tun: add missing rcu annotation
@ 2018-01-22  2:55 Jason Wang
  2018-01-22 14:18 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Jason Wang @ 2018-01-22  2:55 UTC (permalink / raw)
  To: netdev, linux-kernel; +Cc: Jason Wang, Daniel Borkmann

This patch fixes the following sparse warnings:

drivers/net/tun.c:2241:15: error: incompatible types in comparison expression (different address spaces)

Fixes: cd5681d7d890 ("tuntap: rename struct tun_steering_prog to struct tun_prog")
Cc: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Jason Wang <jasowang@redhat.com>
---
 drivers/net/tun.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/net/tun.c b/drivers/net/tun.c
index 6988746..2bc18b1 100644
--- a/drivers/net/tun.c
+++ b/drivers/net/tun.c
@@ -2225,7 +2225,8 @@ static void tun_prog_free(struct rcu_head *rcu)
 	kfree(prog);
 }
 
-static int __tun_set_ebpf(struct tun_struct *tun, struct tun_prog **prog_p,
+static int __tun_set_ebpf(struct tun_struct *tun,
+			  struct tun_prog __rcu **prog_p,
 			  struct bpf_prog *prog)
 {
 	struct tun_prog *old, *new = NULL;
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] tun: add missing rcu annotation
  2018-01-22  2:55 [PATCH net-next] tun: add missing rcu annotation Jason Wang
@ 2018-01-22 14:18 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2018-01-22 14:18 UTC (permalink / raw)
  To: jasowang; +Cc: netdev, linux-kernel, daniel

From: Jason Wang <jasowang@redhat.com>
Date: Mon, 22 Jan 2018 10:55:38 +0800

> This patch fixes the following sparse warnings:
> 
> drivers/net/tun.c:2241:15: error: incompatible types in comparison expression (different address spaces)
> 
> Fixes: cd5681d7d890 ("tuntap: rename struct tun_steering_prog to struct tun_prog")
> Cc: Daniel Borkmann <daniel@iogearbox.net>
> Signed-off-by: Jason Wang <jasowang@redhat.com>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-01-22 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-22  2:55 [PATCH net-next] tun: add missing rcu annotation Jason Wang
2018-01-22 14:18 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).