linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next] bpfilter: Fix mismatch in function argument types
@ 2018-07-19  7:25 YueHaibing
  2018-07-19  7:55 ` YueHaibing
  0 siblings, 1 reply; 2+ messages in thread
From: YueHaibing @ 2018-07-19  7:25 UTC (permalink / raw)
  To: ast, daniel; +Cc: linux-kernel, netdev, YueHaibing

Fix following warning:
net/ipv4/bpfilter/sockopt.c:28:5: error: symbol 'bpfilter_ip_set_sockopt' redeclared with different type
net/ipv4/bpfilter/sockopt.c:34:5: error: symbol 'bpfilter_ip_get_sockopt' redeclared with different type

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 include/linux/bpfilter.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/bpfilter.h b/include/linux/bpfilter.h
index 687b176..43acfa8 100644
--- a/include/linux/bpfilter.h
+++ b/include/linux/bpfilter.h
@@ -5,9 +5,9 @@
 #include <uapi/linux/bpfilter.h>
 
 struct sock;
-int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char *optval,
+int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char __user *optval,
 			    unsigned int optlen);
-int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char *optval,
+int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval,
 			    int *optlen);
 extern int (*bpfilter_process_sockopt)(struct sock *sk, int optname,
 				       char __user *optval,
-- 
2.7.0



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

* Re: [PATCH bpf-next] bpfilter: Fix mismatch in function argument types
  2018-07-19  7:25 [PATCH bpf-next] bpfilter: Fix mismatch in function argument types YueHaibing
@ 2018-07-19  7:55 ` YueHaibing
  0 siblings, 0 replies; 2+ messages in thread
From: YueHaibing @ 2018-07-19  7:55 UTC (permalink / raw)
  To: ast, daniel; +Cc: linux-kernel, netdev

send wrong patch ,pls ignore it.

On 2018/7/19 15:25, YueHaibing wrote:
> Fix following warning:
> net/ipv4/bpfilter/sockopt.c:28:5: error: symbol 'bpfilter_ip_set_sockopt' redeclared with different type
> net/ipv4/bpfilter/sockopt.c:34:5: error: symbol 'bpfilter_ip_get_sockopt' redeclared with different type
> 
> Signed-off-by: YueHaibing <yuehaibing@huawei.com>
> ---
>  include/linux/bpfilter.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/include/linux/bpfilter.h b/include/linux/bpfilter.h
> index 687b176..43acfa8 100644
> --- a/include/linux/bpfilter.h
> +++ b/include/linux/bpfilter.h
> @@ -5,9 +5,9 @@
>  #include <uapi/linux/bpfilter.h>
>  
>  struct sock;
> -int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char *optval,
> +int bpfilter_ip_set_sockopt(struct sock *sk, int optname, char __user *optval,
>  			    unsigned int optlen);
> -int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char *optval,
> +int bpfilter_ip_get_sockopt(struct sock *sk, int optname, char __user *optval,
>  			    int *optlen);
>  extern int (*bpfilter_process_sockopt)(struct sock *sk, int optname,
>  				       char __user *optval,
> 


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

end of thread, other threads:[~2018-07-19  7:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-19  7:25 [PATCH bpf-next] bpfilter: Fix mismatch in function argument types YueHaibing
2018-07-19  7:55 ` YueHaibing

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).