[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20201117135259.142aad6c@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net>
Date: Tue, 17 Nov 2020 13:52:59 -0800
From: Jakub Kicinski <kuba@...nel.org>
To: Andreas Roeseler <andreas.a.roeseler@...il.com>
Cc: davem@...emloft.net, kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org,
netdev@...r.kernel.org
Subject: Re: [PATCH v3 net-next 1/3] net: add support for sending RFC8335
PROBE
On Sat, 14 Nov 2020 12:56:11 -0800 Andreas Roeseler wrote:
> Modifying the ping_supported function to support probe message types
> allows the user to send probe requests through the existing framework
> for sending ping requests.
>
> Signed-off-by: Andreas Roeseler <andreas.a.roeseler@...il.com>
You need to reorder the patches so that defines are added first.
Otherwise if someone lands on this patch during bisection the kernel
will not build:
../net/ipv4/ping.c: In function ‘ping_supported’:
../net/ipv4/ping.c:456:39: error: ‘ICMP_EXT_ECHO’ undeclared (first use in this function); did you mean ‘ICMP_ECHO’?
456 | (family == AF_INET && type == ICMP_EXT_ECHO && code == 0) ||
| ^~~~~~~~~~~~~
| ICMP_ECHO
../net/ipv4/ping.c:456:39: note: each undeclared identifier is reported only once for each function it appears in
../net/ipv4/ping.c:458:40: error: ‘ICMPV6_EXT_ECHO_REQUEST’ undeclared (first use in this function); did you mean ‘ICMPV6_ECHO_REQUEST’?
458 | (family == AF_INET6 && type == ICMPV6_EXT_ECHO_REQUEST && code == 0);
| ^~~~~~~~~~~~~~~~~~~~~~~
| ICMPV6_ECHO_REQUEST
../net/ipv4/ping.c:459:1: error: control reaches end of non-void function [-Werror=return-type]
459 | }
| ^
cc1: some warnings being treated as errors
make[3]: *** [net/ipv4/ping.o] Error 1
make[2]: *** [net/ipv4] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [net] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [__sub-make] Error 2
Powered by blists - more mailing lists