[PATCH] powerpc: sanitize header files for user space includes
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Dec 2005 21:43:46 +0000 (22:43 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 04:13:08 +0000 (15:13 +1100)
commit88ced0314938814e1772b4d0d7ab20c52e4472b6
tree3e06de882c0bf5706ee7a8994e06eb8c9ed3feca
parente1333803c3a8fb167ba67ffc5540dbb53fa7deb3
[PATCH] powerpc: sanitize header files for user space includes

include/asm-ppc/ had #ifdef __KERNEL__ in all header files that
are not meant for use by user space, include/asm-powerpc does
not have this yet.

This patch gets us a lot closer there. There are a few cases
where I was not sure, so I left them out. I have verified
that no CONFIG_* symbols are used outside of __KERNEL__
any more and that there are no obvious compile errors when
including any of the headers in user space libraries.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>
75 files changed:
include/asm-powerpc/abs_addr.h
include/asm-powerpc/agp.h
include/asm-powerpc/asm-compat.h
include/asm-powerpc/bootx.h
include/asm-powerpc/bug.h
include/asm-powerpc/checksum.h
include/asm-powerpc/compat.h
include/asm-powerpc/cputable.h
include/asm-powerpc/current.h
include/asm-powerpc/delay.h
include/asm-powerpc/dma-mapping.h
include/asm-powerpc/dma.h
include/asm-powerpc/eeh.h
include/asm-powerpc/eeh_event.h
include/asm-powerpc/elf.h
include/asm-powerpc/floppy.h
include/asm-powerpc/grackle.h
include/asm-powerpc/hardirq.h
include/asm-powerpc/heathrow.h
include/asm-powerpc/hvcall.h
include/asm-powerpc/hvconsole.h
include/asm-powerpc/hvcserver.h
include/asm-powerpc/i8259.h
include/asm-powerpc/ibmebus.h
include/asm-powerpc/io.h
include/asm-powerpc/iommu.h
include/asm-powerpc/kdebug.h
include/asm-powerpc/kexec.h
include/asm-powerpc/keylargo.h
include/asm-powerpc/kprobes.h
include/asm-powerpc/lmb.h
include/asm-powerpc/lppaca.h
include/asm-powerpc/macio.h
include/asm-powerpc/mmu.h
include/asm-powerpc/mmu_context.h
include/asm-powerpc/mmzone.h
include/asm-powerpc/module.h
include/asm-powerpc/mpic.h
include/asm-powerpc/numnodes.h
include/asm-powerpc/nvram.h
include/asm-powerpc/of_device.h
include/asm-powerpc/ohare.h
include/asm-powerpc/oprofile_impl.h
include/asm-powerpc/pSeries_reconfig.h
include/asm-powerpc/paca.h
include/asm-powerpc/page_32.h
include/asm-powerpc/page_64.h
include/asm-powerpc/param.h
include/asm-powerpc/parport.h
include/asm-powerpc/pci-bridge.h
include/asm-powerpc/pgalloc.h
include/asm-powerpc/pgtable-64k.h
include/asm-powerpc/pgtable.h
include/asm-powerpc/pmac_low_i2c.h
include/asm-powerpc/pmc.h
include/asm-powerpc/ppc-pci.h
include/asm-powerpc/ppc_asm.h
include/asm-powerpc/processor.h
include/asm-powerpc/rtas.h
include/asm-powerpc/seccomp.h
include/asm-powerpc/sections.h
include/asm-powerpc/signal.h
include/asm-powerpc/smu.h
include/asm-powerpc/sparsemem.h
include/asm-powerpc/spinlock.h
include/asm-powerpc/spu.h
include/asm-powerpc/spu_csa.h
include/asm-powerpc/synch.h
include/asm-powerpc/system.h
include/asm-powerpc/tce.h
include/asm-powerpc/tlb.h
include/asm-powerpc/topology.h
include/asm-powerpc/udbg.h
include/asm-powerpc/vdso_datapage.h
include/asm-powerpc/vio.h