From: James Simmons Date: Mon, 20 Apr 2020 17:36:27 +0000 (-0400) Subject: LU-10391 socklnd: properly order headers in socklnd.h X-Git-Tag: 2.13.54~158 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F38287%2F2;p=fs%2Flustre-release.git LU-10391 socklnd: properly order headers in socklnd.h We need the proper definitions in inetdevice.h for socklnd.h. This breaks on newer platforms like Ubuntu18 with error: implicit declaration of function ‘endfor_ifa’ [-Werror=implicit-function-declaration] Reversing the order of the headers resolves this build issue. Fixes: d720fbaada ("LU-10391 socklnd: use interface index to track local addr") Change-Id: Id8fd27ca118c592b501b3d9241f87b05db3aba70 Signed-off-by: James Simmons Reviewed-on: https://review.whamcloud.com/38287 Tested-by: jenkins Reviewed-by: Neil Brown Reviewed-by: Serguei Smirnov Reviewed-by: Shaun Tancheff Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lnet/klnds/socklnd/socklnd.c b/lnet/klnds/socklnd/socklnd.c index 5a907fc..6003560 100644 --- a/lnet/klnds/socklnd/socklnd.c +++ b/lnet/klnds/socklnd/socklnd.c @@ -37,8 +37,8 @@ * Author: Eric Barton */ -#include "socklnd.h" #include +#include "socklnd.h" static const struct lnet_lnd the_ksocklnd; struct ksock_nal_data ksocknal_data;