kernel-ark/arch/powerpc/kernel
Emil Medve 576e393e74 [POWERPC] Fix build errors when BLOCK=n
These are the symptom error messages:

  CC      arch/powerpc/kernel/setup_32.o
In file included from include/linux/blkdev.h:17,
                 from include/linux/ide.h:13,
                 from arch/powerpc/kernel/setup_32.c:13:
include/linux/bsg.h:67: warning: 'struct request_queue' declared inside parameter list
include/linux/bsg.h:67: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/bsg.h:71: warning: 'struct request_queue' declared inside parameter list
In file included from arch/powerpc/kernel/setup_32.c:13:
include/linux/ide.h:857: error: field 'wrq' has incomplete type

  CC      arch/powerpc/kernel/ppc_ksyms.o
In file included from include/linux/blkdev.h:17,
                 from include/linux/ide.h:13,
                 from arch/powerpc/kernel/ppc_ksyms.c:15:
include/linux/bsg.h:67: warning: 'struct request_queue' declared inside parameter list
include/linux/bsg.h:67: warning: its scope is only this definition or declaration, which is probably not what you want
include/linux/bsg.h:71: warning: 'struct request_queue' declared inside parameter list
In file included from arch/powerpc/kernel/ppc_ksyms.c:15:
include/linux/ide.h:857: error: field 'wrq' has incomplete type

The fix tries to use the smallest scope CONFIG_* symbols that will fix
the build problem.  In this case <linux/ide.h> needs to be included
only if IDE=y or IDE=m were selected.  Also, ppc_ide_md is needed only
if BLK_DEV_IDE=y or BLK_DEV_IDE=m

Moved the EXPORT_SYMBOL(ppc_ide_md) from ppc_ksysms.c next to its
declaration in setup_32.c which made <linux/ide.h> not needed. With
<linux/ide.h> gone from ppc_ksyms.c, <asm/cacheflush.h> is needed to
address the following warnings and errors:

  CC      arch/powerpc/kernel/ppc_ksyms.o
arch/powerpc/kernel/ppc_ksyms.c:122: error: '__flush_icache_range' undeclared here (not in a function)
arch/powerpc/kernel/ppc_ksyms.c:122: warning: type defaults to 'int' in declaration of '__flush_icache_range'
arch/powerpc/kernel/ppc_ksyms.c:123: error: 'flush_dcache_range' undeclared here (not in a function)
arch/powerpc/kernel/ppc_ksyms.c:123: warning: type defaults to 'int' in declaration of 'flush_dcache_range'

Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2007-09-22 14:49:22 +10:00
..
vdso32
vdso64 Fix VDSO gettimeofday() when called with NULL struct timeval. 2007-06-29 21:27:00 -07:00
align.c [POWERPC] Handle alignment faults on SPE load/store instructions 2007-09-14 08:51:48 -05:00
asm-offsets.c [POWERPC] Size swapper_pg_dir correctly 2007-09-19 15:25:34 +10:00
audit.c
binfmt_elf32.c
btext.c [POWERPC] Clean out a bunch of duplicate includes 2007-08-17 11:01:51 +10:00
compat_audit.c
cpu_setup_6xx.S
cpu_setup_pa6t.S
cpu_setup_ppc970.S
cputable.c [POWERPC] Add cpu feature for SPE handling 2007-09-14 08:53:30 -05:00
crash_dump.c [POWERPC] FWNMI is only used on pSeries 2007-09-19 15:25:34 +10:00
crash.c [POWERPC] Clean out a bunch of duplicate includes 2007-08-17 11:01:51 +10:00
dma_64.c
entry_32.S [POWERPC] Add cpu feature for SPE handling 2007-09-14 08:53:30 -05:00
entry_64.S [POWERPC] Remove barriers from the SLB shadow buffer update 2007-09-19 14:40:54 +10:00
firmware.c
fpu.S
head_8xx.S [POWERPC] Remove cmd_line from head*.S 2007-09-19 15:25:34 +10:00
head_32.S [POWERPC] Remove cmd_line from head*.S 2007-09-19 15:25:34 +10:00
head_40x.S [POWERPC] Remove cmd_line from head*.S 2007-09-19 15:25:34 +10:00
head_44x.S [POWERPC] Remove cmd_line from head*.S 2007-09-19 15:25:34 +10:00
head_64.S [POWERPC] FWNMI is only used on pSeries 2007-09-19 15:25:34 +10:00
head_booke.h
head_fsl_booke.S [POWERPC] Remove cmd_line from head*.S 2007-09-19 15:25:34 +10:00
ibmebus.c [POWERPC] Don't cast kmalloc return value in ibmebus.c 2007-09-19 14:40:54 +10:00
idle_6xx.S
idle_power4.S
idle.c
init_task.c
io.c [POWERPC] Move inline asm eieio to using eieio inline function 2007-07-10 00:33:14 -05:00
iomap.c [POWERPC] Add 64-bit resources support to pci_iomap 2007-09-20 07:36:52 -05:00
iommu.c [POWERPC] Clean out a bunch of duplicate includes 2007-08-17 11:01:51 +10:00
irq.c [POWERPC] Export virq mapping via debugfs 2007-09-14 01:33:20 +10:00
isa-bridge.c
kprobes.c jprobes: make jprobes a little safer for users 2007-07-19 10:04:44 -07:00
l2cr_6xx.S
legacy_serial.c [POWERPC] Move serial_dev_init to device_initcall() 2007-09-13 04:09:14 +10:00
lparcfg.c some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
machine_kexec_32.c
machine_kexec_64.c
machine_kexec.c
Makefile [POWERPC] iSeries: Clean up lparmap mess 2007-08-22 15:21:46 +10:00
misc_32.S [POWERPC] Fix small race in 44x tlbie function 2007-08-15 15:12:50 +10:00
misc_64.S
misc.S
module_32.c
module_64.c
msi.c
nvram_64.c [POWERPC] pseries: Eliminate global error_log_cnt variable 2007-08-17 11:01:52 +10:00
of_device.c Begin to consolidate of_device.c 2007-07-20 13:39:59 +10:00
of_platform.c Create drivers/of/platform.c 2007-07-20 14:25:51 +10:00
paca.c
pci_32.c [POWERPC] null_pci_ops: Use named structure member initializers 2007-08-17 11:01:53 +10:00
pci_64.c [POWERPC] Fix initialization and usage of dma_mask 2007-08-10 21:04:42 +10:00
pci_dn.c [POWERPC] Fix section mismatch in PCI code 2007-09-19 15:25:34 +10:00
pci-common.c Merge branch 'fixes-2.6.23' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc into merge 2007-07-26 16:43:24 +10:00
pmc.c
ppc32.h
ppc_ksyms.c [POWERPC] Fix build errors when BLOCK=n 2007-09-22 14:49:22 +10:00
proc_ppc64.c
process.c [POWERPC] Add cpu feature for SPE handling 2007-09-14 08:53:30 -05:00
prom_init.c [POWERPC] prom_init whitespace cleanup, typo fix 2007-09-14 01:33:24 +10:00
prom_parse.c Revert "[POWERPC] Don't complain if size-cells == 0 in prom_parse()" 2007-07-26 13:44:36 +10:00
prom.c [POWERPC] setup_64.c and prom.c comment cleanup 2007-09-14 01:33:24 +10:00
ptrace32.c
ptrace.c [POWERPC] Add cpu feature for SPE handling 2007-09-14 08:53:30 -05:00
rtas_flash.c mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
rtas_pci.c [POWERPC] rtas_pci_ops: Use named structure member initializers 2007-08-17 11:01:53 +10:00
rtas-proc.c
rtas-rtc.c
rtas.c
semaphore.c
setup_32.c [POWERPC] Fix build errors when BLOCK=n 2007-09-22 14:49:22 +10:00
setup_64.c [POWERPC] setup_64.c and prom.c comment cleanup 2007-09-14 01:33:24 +10:00
setup-common.c [POWERPC] Remove cmd_line from head*.S 2007-09-19 15:25:34 +10:00
setup.h
signal_32.c
signal_64.c Merge branch 'for-2.6.23' into merge 2007-07-11 13:28:26 +10:00
signal.c
signal.h
smp-tbsync.c
smp.c [POWERPC] Avoid pointless WARN_ON(irqs_disabled()) from panic codepath 2007-09-22 14:49:22 +10:00
suspend.c
swsusp_32.S
swsusp_64.c
swsusp_asm64.S
swsusp.c
sys_ppc32.c sys_fallocate() implementation on i386, x86_64 and powerpc 2007-07-17 21:42:44 -04:00
syscalls.c Remove fs.h from mm.h 2007-07-29 17:09:29 -07:00
sysfs.c [POWERPC] Remove warning in arch/powerpc/kernel/sysfs.c 2007-09-14 01:33:22 +10:00
systbl.S
tau_6xx.c
time.c Merge branch 'linux-2.6' 2007-09-20 10:09:27 +10:00
traps.c [POWERPC] Remove unused platform_machine_check() 2007-09-14 01:33:22 +10:00
udbg_16550.c [POWERPC] 4xx: Implement udbg_getc() for 440 2007-09-19 21:13:17 -05:00
udbg.c [POWREPC] Fixup a number of modpost warnings on ppc32 2007-07-26 00:16:21 -05:00
vdso.c [POWERPC] Don't expose clock vDSO functions when CPU has no timebase 2007-09-19 15:26:34 +10:00
vecemu.c
vector.S
vio.c
vmlinux.lds.S [POWERPC] Fix modpost warnings from head*.S on ppc32 2007-09-14 08:53:36 -05:00