lib: Fix multiple definitions of clz_tab
authorDavid Miller <davem@davemloft.net>
Wed, 1 Feb 2012 22:17:54 +0000 (00:17 +0200)
committerJames Morris <jmorris@namei.org>
Wed, 1 Feb 2012 23:34:23 +0000 (10:34 +1100)
commitc6df4b17c8539f737a6a2d7b797eac41e8e34cdc
tree7b891178267aa9486fed1197419aac57d3036b5f
parent86f8bedc9e1a8ddb4f1d9ff1f0c1229cc0797d6d
lib: Fix multiple definitions of clz_tab

Both sparc 32-bit's software divide assembler and MPILIB provide
clz_tab[] with identical contents.

Break it out into a seperate object file and select it when
SPARC32 or MPILIB is set.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: James Morris <jmorris@namei.org>
arch/sparc/Kconfig
arch/sparc/lib/divdi3.S
lib/Kconfig
lib/Makefile
lib/clz_tab.c [new file with mode: 0644]
lib/mpi/mpi-bit.c