Commit 055c47272b8f5679d08ccc57efea3cb4aaeb5fc6

Authored by Borislav Petkov
Committed by H. Peter Anvin
1 parent cf3bdc29fc

um, hweight: Fix UML boot crash due to x86 optimized hweight

Apparently UML cannot stomach callee reg-saving trickery
introduced with d61931d89be506372d01a90d1755f6d0a9fafe2d
(x86: Add optimized popcnt variants) and oopses during boot:
http://marc.info/?l=linux-kernel&m=127522065202435&w=2

Redirect arch_hweight.h include from the x86 portion to the generic
arch_hweight.h which is a fallback to the software hweight routines.

LKML-Reference: <201005271944.09541.toralf.foerster@gmx.de>
Signed-off-by: Borislav Petkov <bp@alien8.de>
LKML-Reference: <4C0F4B00.4090307@panasas.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>

Showing 1 changed file with 6 additions and 0 deletions Side-by-side Diff

arch/um/include/asm/arch_hweight.h
  1 +#ifndef _ASM_UM_HWEIGHT_H
  2 +#define _ASM_UM_HWEIGHT_H
  3 +
  4 +#include <asm-generic/bitops/arch_hweight.h>
  5 +
  6 +#endif