6473d160b4
I noticed that many source files include <linux/pci.h> while they do not appear to need it. Here is an attempt to clean it all up. In order to find all possibly affected files, I searched for all files including <linux/pci.h> but without any other occurence of "pci" or "PCI". I removed the include statement from all of these, then I compiled an allmodconfig kernel on both i386 and x86_64 and fixed the false positives manually. My tests covered 66% of the affected files, so there could be false positives remaining. Untested files are: arch/alpha/kernel/err_common.c arch/alpha/kernel/err_ev6.c arch/alpha/kernel/err_ev7.c arch/ia64/sn/kernel/huberror.c arch/ia64/sn/kernel/xpnet.c arch/m68knommu/kernel/dma.c arch/mips/lib/iomap.c arch/powerpc/platforms/pseries/ras.c arch/ppc/8260_io/enet.c arch/ppc/8260_io/fcc_enet.c arch/ppc/8xx_io/enet.c arch/ppc/syslib/ppc4xx_sgdma.c arch/sh64/mach-cayman/iomap.c arch/xtensa/kernel/xtensa_ksyms.c arch/xtensa/platform-iss/setup.c drivers/i2c/busses/i2c-at91.c drivers/i2c/busses/i2c-mpc.c drivers/media/video/saa711x.c drivers/misc/hdpuftrs/hdpu_cpustate.c drivers/misc/hdpuftrs/hdpu_nexus.c drivers/net/au1000_eth.c drivers/net/fec_8xx/fec_main.c drivers/net/fec_8xx/fec_mii.c drivers/net/fs_enet/fs_enet-main.c drivers/net/fs_enet/mac-fcc.c drivers/net/fs_enet/mac-fec.c drivers/net/fs_enet/mac-scc.c drivers/net/fs_enet/mii-bitbang.c drivers/net/fs_enet/mii-fec.c drivers/net/ibm_emac/ibm_emac_core.c drivers/net/lasi_82596.c drivers/parisc/hppb.c drivers/sbus/sbus.c drivers/video/g364fb.c drivers/video/platinumfb.c drivers/video/stifb.c drivers/video/valkyriefb.c include/asm-arm/arch-ixp4xx/dma.h sound/oss/au1550_ac97.c I would welcome test reports for these files. I am fine with removing the untested files from the patch if the general opinion is that these changes aren't safe. The tested part would still be nice to have. Note that this patch depends on another header fixup patch I submitted to LKML yesterday: [PATCH] scatterlist.h needs types.h http://lkml.org/lkml/2007/3/01/141 Signed-off-by: Jean Delvare <khali@linux-fr.org> Cc: Badari Pulavarty <pbadari@us.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
118 lines
2.6 KiB
C
118 lines
2.6 KiB
C
/*
|
|
* arch/xtensa/kernel/xtensa_ksyms.c
|
|
*
|
|
* Export Xtensa-specific functions for loadable modules.
|
|
*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 2001 - 2005 Tensilica Inc.
|
|
*
|
|
* Joe Taylor <joe@tensilica.com>
|
|
*/
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/string.h>
|
|
#include <linux/mm.h>
|
|
#include <linux/interrupt.h>
|
|
#include <asm/irq.h>
|
|
#include <linux/in6.h>
|
|
#include <linux/ide.h>
|
|
|
|
#include <asm/uaccess.h>
|
|
#include <asm/checksum.h>
|
|
#include <asm/dma.h>
|
|
#include <asm/io.h>
|
|
#include <asm/page.h>
|
|
#include <asm/pgalloc.h>
|
|
#include <asm/semaphore.h>
|
|
#ifdef CONFIG_BLK_DEV_FD
|
|
#include <asm/floppy.h>
|
|
#endif
|
|
#ifdef CONFIG_NET
|
|
#include <net/checksum.h>
|
|
#endif /* CONFIG_NET */
|
|
|
|
|
|
/*
|
|
* String functions
|
|
*/
|
|
EXPORT_SYMBOL(memcmp);
|
|
EXPORT_SYMBOL(memset);
|
|
EXPORT_SYMBOL(memcpy);
|
|
EXPORT_SYMBOL(memmove);
|
|
EXPORT_SYMBOL(memchr);
|
|
EXPORT_SYMBOL(strcat);
|
|
EXPORT_SYMBOL(strchr);
|
|
EXPORT_SYMBOL(strlen);
|
|
EXPORT_SYMBOL(strncat);
|
|
EXPORT_SYMBOL(strnlen);
|
|
EXPORT_SYMBOL(strrchr);
|
|
EXPORT_SYMBOL(strstr);
|
|
|
|
EXPORT_SYMBOL(enable_irq);
|
|
EXPORT_SYMBOL(disable_irq);
|
|
EXPORT_SYMBOL(kernel_thread);
|
|
|
|
/*
|
|
* gcc internal math functions
|
|
*/
|
|
extern long long __ashrdi3(long long, int);
|
|
extern long long __ashldi3(long long, int);
|
|
extern long long __lshrdi3(long long, int);
|
|
extern int __divsi3(int, int);
|
|
extern int __modsi3(int, int);
|
|
extern long long __muldi3(long long, long long);
|
|
extern int __mulsi3(int, int);
|
|
extern unsigned int __udivsi3(unsigned int, unsigned int);
|
|
extern unsigned int __umodsi3(unsigned int, unsigned int);
|
|
extern unsigned long long __umoddi3(unsigned long long, unsigned long long);
|
|
extern unsigned long long __udivdi3(unsigned long long, unsigned long long);
|
|
|
|
EXPORT_SYMBOL(__ashldi3);
|
|
EXPORT_SYMBOL(__ashrdi3);
|
|
EXPORT_SYMBOL(__lshrdi3);
|
|
EXPORT_SYMBOL(__divsi3);
|
|
EXPORT_SYMBOL(__modsi3);
|
|
EXPORT_SYMBOL(__muldi3);
|
|
EXPORT_SYMBOL(__mulsi3);
|
|
EXPORT_SYMBOL(__udivsi3);
|
|
EXPORT_SYMBOL(__umodsi3);
|
|
EXPORT_SYMBOL(__udivdi3);
|
|
EXPORT_SYMBOL(__umoddi3);
|
|
|
|
/*
|
|
* Semaphore operations
|
|
*/
|
|
EXPORT_SYMBOL(__down);
|
|
EXPORT_SYMBOL(__down_interruptible);
|
|
EXPORT_SYMBOL(__down_trylock);
|
|
EXPORT_SYMBOL(__up);
|
|
|
|
#ifdef CONFIG_NET
|
|
/*
|
|
* Networking support
|
|
*/
|
|
EXPORT_SYMBOL(csum_partial_copy_generic);
|
|
#endif /* CONFIG_NET */
|
|
|
|
/*
|
|
* Architecture-specific symbols
|
|
*/
|
|
EXPORT_SYMBOL(__xtensa_copy_user);
|
|
|
|
/*
|
|
* Kernel hacking ...
|
|
*/
|
|
|
|
#if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_DUMMY_CONSOLE)
|
|
// FIXME EXPORT_SYMBOL(screen_info);
|
|
#endif
|
|
|
|
EXPORT_SYMBOL(outsb);
|
|
EXPORT_SYMBOL(outsw);
|
|
EXPORT_SYMBOL(outsl);
|
|
EXPORT_SYMBOL(insb);
|
|
EXPORT_SYMBOL(insw);
|
|
EXPORT_SYMBOL(insl);
|