* [PATCH] bpf: Remove unused variable in nsim_bpf
@ 2018-11-12 22:10 Nathan Chancellor
2018-11-12 22:14 ` Jakub Kicinski
2018-11-17 1:52 ` Alexei Starovoitov
0 siblings, 2 replies; 4+ messages in thread
From: Nathan Chancellor @ 2018-11-12 22:10 UTC (permalink / raw)
To: Alexei Starovoitov, Daniel Borkmann
Cc: Quentin Monnet, Jakub Kicinski, netdev, linux-kernel, Nathan Chancellor
Clang warns:
drivers/net/netdevsim/bpf.c:557:30: error: unused variable 'state'
[-Werror,-Wunused-variable]
struct nsim_bpf_bound_prog *state;
^
1 error generated.
The declaration should have been removed in commit b07ade27e933 ("bpf:
pass translate() as a callback and remove its ndo_bpf subcommand").
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
---
drivers/net/netdevsim/bpf.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/netdevsim/bpf.c b/drivers/net/netdevsim/bpf.c
index 6a5b7bd9a1f9..a1b29173ca1c 100644
--- a/drivers/net/netdevsim/bpf.c
+++ b/drivers/net/netdevsim/bpf.c
@@ -554,7 +554,6 @@ static void nsim_bpf_map_free(struct bpf_offloaded_map *offmap)
int nsim_bpf(struct net_device *dev, struct netdev_bpf *bpf)
{
struct netdevsim *ns = netdev_priv(dev);
- struct nsim_bpf_bound_prog *state;
int err;
ASSERT_RTNL();
--
2.19.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] bpf: Remove unused variable in nsim_bpf
2018-11-12 22:10 [PATCH] bpf: Remove unused variable in nsim_bpf Nathan Chancellor
@ 2018-11-12 22:14 ` Jakub Kicinski
2018-11-13 6:07 ` Quentin Monnet
2018-11-17 1:52 ` Alexei Starovoitov
1 sibling, 1 reply; 4+ messages in thread
From: Jakub Kicinski @ 2018-11-12 22:14 UTC (permalink / raw)
To: Nathan Chancellor
Cc: Alexei Starovoitov, Daniel Borkmann, Quentin Monnet, netdev,
linux-kernel
On Mon, 12 Nov 2018 15:10:42 -0700, Nathan Chancellor wrote:
> Clang warns:
>
> drivers/net/netdevsim/bpf.c:557:30: error: unused variable 'state'
> [-Werror,-Wunused-variable]
> struct nsim_bpf_bound_prog *state;
> ^
> 1 error generated.
>
> The declaration should have been removed in commit b07ade27e933 ("bpf:
> pass translate() as a callback and remove its ndo_bpf subcommand").
>
> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] bpf: Remove unused variable in nsim_bpf
2018-11-12 22:14 ` Jakub Kicinski
@ 2018-11-13 6:07 ` Quentin Monnet
0 siblings, 0 replies; 4+ messages in thread
From: Quentin Monnet @ 2018-11-13 6:07 UTC (permalink / raw)
To: Jakub Kicinski, Nathan Chancellor
Cc: Alexei Starovoitov, Daniel Borkmann, netdev, linux-kernel
2018-11-12 14:14 UTC-0800 ~ Jakub Kicinski <jakub.kicinski@netronome.com>
> On Mon, 12 Nov 2018 15:10:42 -0700, Nathan Chancellor wrote:
>> Clang warns:
>>
>> drivers/net/netdevsim/bpf.c:557:30: error: unused variable 'state'
>> [-Werror,-Wunused-variable]
>> struct nsim_bpf_bound_prog *state;
>> ^
>> 1 error generated.
>>
>> The declaration should have been removed in commit b07ade27e933 ("bpf:
>> pass translate() as a callback and remove its ndo_bpf subcommand").
>>
>> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
>
> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
>
My bad, thanks for the fix!
Acked-by: Quentin Monnet <quentin.monnet@netronome.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] bpf: Remove unused variable in nsim_bpf
2018-11-12 22:10 [PATCH] bpf: Remove unused variable in nsim_bpf Nathan Chancellor
2018-11-12 22:14 ` Jakub Kicinski
@ 2018-11-17 1:52 ` Alexei Starovoitov
1 sibling, 0 replies; 4+ messages in thread
From: Alexei Starovoitov @ 2018-11-17 1:52 UTC (permalink / raw)
To: Nathan Chancellor
Cc: Alexei Starovoitov, Daniel Borkmann, Quentin Monnet,
Jakub Kicinski, netdev, linux-kernel
On Mon, Nov 12, 2018 at 03:10:42PM -0700, Nathan Chancellor wrote:
> Clang warns:
>
> drivers/net/netdevsim/bpf.c:557:30: error: unused variable 'state'
> [-Werror,-Wunused-variable]
> struct nsim_bpf_bound_prog *state;
> ^
> 1 error generated.
>
> The declaration should have been removed in commit b07ade27e933 ("bpf:
> pass translate() as a callback and remove its ndo_bpf subcommand").
>
> Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Applied, Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-11-17 1:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-12 22:10 [PATCH] bpf: Remove unused variable in nsim_bpf Nathan Chancellor
2018-11-12 22:14 ` Jakub Kicinski
2018-11-13 6:07 ` Quentin Monnet
2018-11-17 1:52 ` Alexei Starovoitov
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).