Whamcloud - gitweb
LU-10391 socklnd: properly order headers in socklnd.h 87/38287/2
authorJames Simmons <jsimmons@infradead.org>
Mon, 20 Apr 2020 17:36:27 +0000 (13:36 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 1 May 2020 04:26:33 +0000 (04:26 +0000)
commit5ba2cc615ba9e60075412cecbce9edaaf3eea2e3
treef764c1fca2b1f4442f9fd00fd25eef9c2f0f2f7b
parenta7a34aa42e08e4532e7b7eae277ef8a878c123fb
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 <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/38287
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Serguei Smirnov <ssmirnov@whamcloud.com>
Reviewed-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/klnds/socklnd/socklnd.c