From 5ba2cc615ba9e60075412cecbce9edaaf3eea2e3 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Mon, 20 Apr 2020 13:36:27 -0400 Subject: [PATCH] LU-10391 socklnd: properly order headers in socklnd.h MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- lnet/klnds/socklnd/socklnd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.8.3.1