mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 23:47:06 +00:00
Wrapping the kernel headers is dangerous when it comes to arch headers. Once we wrap asm/types.h, it will also replace the glibc asm/types.h, not only the kernel one. This results in build errors on some machines. Drop this wrapper and do its work from linux/types.h wrapper, also the glibc asm/types.h can already handle most of the type definition it was doing (typedef __u64, __u32, etc...). Todo: Check the others asm/*.h wrappers to prevent from other conflicts. Reported-by: Ingo Molnar <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Arnaldo Carvalho de Melo <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Anton Blanchard <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
19 lines
564 B
C
19 lines
564 B
C
#ifndef _PERF_ASM_BITOPS_H_
|
|
#define _PERF_ASM_BITOPS_H_
|
|
|
|
#include <sys/types.h>
|
|
#include "../../types.h"
|
|
#include <linux/compiler.h>
|
|
|
|
/* CHECKME: Not sure both always match */
|
|
#define BITS_PER_LONG __WORDSIZE
|
|
|
|
#include "../../../../include/asm-generic/bitops/__fls.h"
|
|
#include "../../../../include/asm-generic/bitops/fls.h"
|
|
#include "../../../../include/asm-generic/bitops/fls64.h"
|
|
#include "../../../../include/asm-generic/bitops/__ffs.h"
|
|
#include "../../../../include/asm-generic/bitops/ffz.h"
|
|
#include "../../../../include/asm-generic/bitops/hweight.h"
|
|
|
|
#endif
|