Re: linux-next: build failure after merge of the net-next tree

David Miller
2013-12-18T02:21:50Z

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 18 Dec 2013 12:56:43 +1100

> After merging the net-next tree, today's linux-next build (powerpc
> ppc64_defconfig) failed like this:
>
> In file included from include/linux/hashtable.h:12:0,
> from include/linux/elevator.h:5,
> from include/linux/blkdev.h:222,
> from init/do_mounts.h:2,
> from init/do_mounts_rd.c:21:
> include/linux/hash.h:18:22: fatal error: asm/hash.h: No such file or directory
> #include <asm/hash.h>
> ^
>
> And many more ...
>
> Caused by commit 71ae8aac3e19 ("lib: introduce arch optimized hash
> library"). Presumably this would break any architecture other than
> x86 :-(

The author believed that putting a header file in asm-generic/
makes it get used automatically by architectures which lack
that header file.

At the very least we have to add a generic-y entry for it to
arch/${ARCH}/include/asm/Kbuild

I'll try to fix this up, thanks for the report.