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 <[email protected]>
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