LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH] selftests: bpf: fix compiler warning
@ 2019-05-24 0:30 Alakesh Haloi
2019-05-28 16:45 ` Song Liu
0 siblings, 1 reply; 3+ messages in thread
From: Alakesh Haloi @ 2019-05-24 0:30 UTC (permalink / raw)
To: Daniel Borkmann, Martin KaFai Lau, Song Liu, Yonghong Song,
Stanislav Fomichev
Cc: linux-kselftest, netdev, bpf, linux-kernel
Add missing header file following compiler warning
prog_tests/flow_dissector.c: In function ‘tx_tap’:
prog_tests/flow_dissector.c:175:9: warning: implicit declaration of function ‘writev’; did you mean ‘write’? [-Wimplicit-function-declaration]
return writev(fd, iov, ARRAY_SIZE(iov));
^~~~~~
write
Signed-off-by: Alakesh Haloi <alakesh.haloi@gmail.com>
---
tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
index fbd1d88a6095..c938283ac232 100644
--- a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
+++ b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
@@ -3,6 +3,7 @@
#include <error.h>
#include <linux/if.h>
#include <linux/if_tun.h>
+#include <sys/uio.h>
#define CHECK_FLOW_KEYS(desc, got, expected) \
CHECK_ATTR(memcmp(&got, &expected, sizeof(got)) != 0, \
--
2.17.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] selftests: bpf: fix compiler warning
2019-05-24 0:30 [PATCH] selftests: bpf: fix compiler warning Alakesh Haloi
@ 2019-05-28 16:45 ` Song Liu
2019-05-28 19:40 ` Alakesh Haloi
0 siblings, 1 reply; 3+ messages in thread
From: Song Liu @ 2019-05-28 16:45 UTC (permalink / raw)
To: Alakesh Haloi
Cc: Daniel Borkmann, Martin KaFai Lau, Song Liu, Yonghong Song,
Stanislav Fomichev, linux-kselftest, Networking, bpf, open list
On Thu, May 23, 2019 at 5:31 PM Alakesh Haloi <alakesh.haloi@gmail.com> wrote:
>
> Add missing header file following compiler warning
>
> prog_tests/flow_dissector.c: In function ‘tx_tap’:
> prog_tests/flow_dissector.c:175:9: warning: implicit declaration of function ‘writev’; did you mean ‘write’? [-Wimplicit-function-declaration]
> return writev(fd, iov, ARRAY_SIZE(iov));
> ^~~~~~
> write
>
> Signed-off-by: Alakesh Haloi <alakesh.haloi@gmail.com>
The patch looks good. Please add a "Fixes" tag, so the fix
can be back ported properly.
Also, please specify which tree the patch should be applied
with [PATCH bpf] or [PATCH bpf-next].
Thanks,
Song
> ---
> tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
> index fbd1d88a6095..c938283ac232 100644
> --- a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
> +++ b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
> @@ -3,6 +3,7 @@
> #include <error.h>
> #include <linux/if.h>
> #include <linux/if_tun.h>
> +#include <sys/uio.h>
>
> #define CHECK_FLOW_KEYS(desc, got, expected) \
> CHECK_ATTR(memcmp(&got, &expected, sizeof(got)) != 0, \
> --
> 2.17.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] selftests: bpf: fix compiler warning
2019-05-28 16:45 ` Song Liu
@ 2019-05-28 19:40 ` Alakesh Haloi
0 siblings, 0 replies; 3+ messages in thread
From: Alakesh Haloi @ 2019-05-28 19:40 UTC (permalink / raw)
To: Song Liu
Cc: Daniel Borkmann, Martin KaFai Lau, Song Liu, Yonghong Song,
Stanislav Fomichev, linux-kselftest, Networking, bpf, open list
On Tue, May 28, 2019 at 09:45:14AM -0700, Song Liu wrote:
> On Thu, May 23, 2019 at 5:31 PM Alakesh Haloi <alakesh.haloi@gmail.com> wrote:
> >
> > Add missing header file following compiler warning
> >
> > prog_tests/flow_dissector.c: In function ‘tx_tap’:
> > prog_tests/flow_dissector.c:175:9: warning: implicit declaration of function ‘writev’; did you mean ‘write’? [-Wimplicit-function-declaration]
> > return writev(fd, iov, ARRAY_SIZE(iov));
> > ^~~~~~
> > write
> >
> > Signed-off-by: Alakesh Haloi <alakesh.haloi@gmail.com>
>
> The patch looks good. Please add a "Fixes" tag, so the fix
> can be back ported properly.
>
> Also, please specify which tree the patch should be applied
> with [PATCH bpf] or [PATCH bpf-next].
>
> Thanks,
> Song
>
Thanks for reviewing the patch. My apologies for not following the
rules. I have sent an updated patch after adding Fixes: tag and
modifying the subject to reflect that it is for bpf tree.
The updated patch is here https://lkml.org/lkml/2019/5/28/904
Thanks
Alakesh
>
>
>
> > ---
> > tools/testing/selftests/bpf/prog_tests/flow_dissector.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
> > index fbd1d88a6095..c938283ac232 100644
> > --- a/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
> > +++ b/tools/testing/selftests/bpf/prog_tests/flow_dissector.c
> > @@ -3,6 +3,7 @@
> > #include <error.h>
> > #include <linux/if.h>
> > #include <linux/if_tun.h>
> > +#include <sys/uio.h>
> >
> > #define CHECK_FLOW_KEYS(desc, got, expected) \
> > CHECK_ATTR(memcmp(&got, &expected, sizeof(got)) != 0, \
> > --
> > 2.17.1
> >
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-05-28 19:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-24 0:30 [PATCH] selftests: bpf: fix compiler warning Alakesh Haloi
2019-05-28 16:45 ` Song Liu
2019-05-28 19:40 ` Alakesh Haloi
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).