Re: [PATCH 2/2] x86: disable CONFIG_GENERIC_HWEIGHT and remove __HAVE_ARCH_SW_HWEIGHT

2019-02-18 Thread Masahiro Yamada
On Mon, Feb 18, 2019 at 3:09 PM Masahiro Yamada wrote: > > arch/x86/include/asm/arch_hweight.h uses __sw_hweight{32,64} as > alternatives, but they are implemented in arch/x86/lib/hweight.S > > x86 does not rely on the generic C implementation lib/hweight.c > at all, so CONFIG_GENERIC_HWEIGHT shou

Re: [PATCH 2/2] x86: disable CONFIG_GENERIC_HWEIGHT and remove __HAVE_ARCH_SW_HWEIGHT

2019-02-18 Thread Borislav Petkov
On Mon, Feb 18, 2019 at 02:59:31PM +0900, Masahiro Yamada wrote: > arch/x86/include/asm/arch_hweight.h uses __sw_hweight{32,64} as > alternatives, but they are implemented in arch/x86/lib/hweight.S > > x86 does not rely on the generic C implementation lib/hweight.c > at all, so CONFIG_GENERIC_HWEI

[PATCH 2/2] x86: disable CONFIG_GENERIC_HWEIGHT and remove __HAVE_ARCH_SW_HWEIGHT

2019-02-17 Thread Masahiro Yamada
arch/x86/include/asm/arch_hweight.h uses __sw_hweight{32,64} as alternatives, but they are implemented in arch/x86/lib/hweight.S x86 does not rely on the generic C implementation lib/hweight.c at all, so CONFIG_GENERIC_HWEIGHT should be disabled. __HAVE_ARCH_SW_HWEIGHT was unneeded in the first p