kbuild test robot <l...@intel.com> wrote:
> tree:   
> https://git.kernel.org/pub/scm/linux/kernel/git/klassert/ipsec-next.git 
> testing
> head:   ca78a3eaad69bd08ba41c144c21881dc694d4a32
> commit: 8dc6e3891a4be64c0cca5e8fe2c3ad33bc06543e [4/6] xfrm: remove state and 
> template sort indirections from xfrm_state_afinfo
> config: i386-randconfig-x003-201922 (attached as .config)
> compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
> reproduce:
>         git checkout 8dc6e3891a4be64c0cca5e8fe2c3ad33bc06543e
>         # save the attached .config to linux build tree
>         make ARCH=i386 
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <l...@intel.com>
> 
> All errors (new ones prefixed by >>):
> 
>    net/xfrm/xfrm_state.c: In function 'xfrm_tmpl_sort':
> >> net/xfrm/xfrm_state.c:1792:9: error: '__xfrm6_tmpl_sort_cmp' undeclared 
> >> (first use in this function); did you mean 'xfrm_tmpl_sort'?
>             __xfrm6_tmpl_sort_cmp, 5);
>             ^~~~~~~~~~~~~~~~~~~~~
>             xfrm_tmpl_sort
>    net/xfrm/xfrm_state.c:1792:9: note: each undeclared identifier is reported 
> only once for each function it appears in
>    net/xfrm/xfrm_state.c: In function 'xfrm_state_sort':
> >> net/xfrm/xfrm_state.c:1806:9: error: '__xfrm6_state_sort_cmp' undeclared 
> >> (first use in this function); did you mean '__xfrm6_state_addr_cmp'?
>             __xfrm6_state_sort_cmp, 6);
>             ^~~~~~~~~~~~~~~~~~~~~~
>             __xfrm6_state_addr_cmp

this lacks stubs for CONFIG_IPV6=n case.

Steffen, as this is still only in your testing branch, I suggest you
squash this snipped into commit 8dc6e3891a4be64c0cca5e8fe2c3ad33bc06543e
("xfrm: remove state and template sort indirections from xfrm_state_afinfo"),
it resolves this problem for me.  Otherwise, I can make a formal submit,
just let me know.

diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c
--- a/net/xfrm/xfrm_state.c
+++ b/net/xfrm/xfrm_state.c
@@ -1845,6 +1845,9 @@ static int __xfrm6_tmpl_sort_cmp(const void *p)
        return 4;
 }
 #else
+static inline int __xfrm6_state_sort_cmp(const void *p) { return 5; }
+static inline int __xfrm6_tmpl_sort_cmp(const void *p) { return 4; }
+
 static inline void
 __xfrm6_sort(void **dst, void **src, int n,
             int (*cmp)(const void *p), int maxclass)

Reply via email to