tmp_suning_uos_patched/drivers/ide
Bartlomiej Zolnierkiewicz d5271be6b5 drivers/ide/pci/generic: fix build for CONFIG_HOTPLUG=n
It turns out that const and __{dev}initdata cannot be mixed currently
and that generic IDE PCI host driver is also affected by the same issue:

On Thursday 25 October 2007, Ralf Baechle wrote:
>   CC      drivers/ide/pci/generic.o
> drivers/ide/pci/generic.c:52: error: __setup_str_ide_generic_all_on causes a
> +section type conflict

[ Also reported by Martijn Uffing <mp3project@sarijopen.student.utwente.nl>. ]

This patch workarounds the problem in a bit hackish way but without
removing const from generic_chipsets[] (it adds const to __setup() so
__setup_str_ide_generic_all becomes const).

Now all __{dev}initdata data in generic IDE PCI host driver are read-only
so it builds again (driver's .init.data section gets marked as READONLY).

Cc: Martijn Uffing <mp3project@sarijopen.student.utwente.nl>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
2007-10-26 20:31:15 +02:00
..
arm ide: remove write-only hwif->hw 2007-10-20 00:32:33 +02:00
cris [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
h8300 icside: use ec->dma directly 2007-10-20 00:32:32 +02:00
legacy Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2007-10-19 20:36:17 -07:00
mips [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
pci drivers/ide/pci/generic: fix build for CONFIG_HOTPLUG=n 2007-10-26 20:31:15 +02:00
ppc ide: remove write-only hwif->hw 2007-10-20 00:32:33 +02:00
ide-acpi.c ide: fix ->data_phase in taskfile_load_raw() 2007-10-20 00:32:37 +02:00
ide-cd.c Convert files to UTF-8 and some cleanups 2007-10-19 23:21:04 +02:00
ide-cd.h ide-cd: replace C code with call to ARRAY_SIZE() macro 2007-07-09 23:17:57 +02:00
ide-disk.c ide-disk: add get_smart_data() helper 2007-10-20 00:32:37 +02:00
ide-dma.c ide: PCI BMDMA initialization fixes (take 2) 2007-10-20 00:32:37 +02:00
ide-floppy.c Fixup rq_for_each_segment() indentation 2007-10-10 09:25:56 +02:00
ide-generic.c ide: add ide_proc_register_port() 2007-05-10 00:01:11 +02:00
ide-io.c ide: use __ide_end_request() in ide_end_dequeued_request() 2007-10-20 00:32:36 +02:00
ide-iops.c ide: remove dead code from ide_driveid_update() 2007-10-20 00:32:36 +02:00
ide-lib.c ide: remove ide_use_fast_pio() 2007-10-16 22:29:54 +02:00
ide-pnp.c icside: use ec->dma directly 2007-10-20 00:32:32 +02:00
ide-probe.c ide: build fix 2007-10-23 09:49:29 +02:00
ide-proc.c ide: add ide_device_add() 2007-10-20 00:32:31 +02:00
ide-tape.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2007-10-19 20:36:17 -07:00
ide-taskfile.c [SG] Update drivers to use sg helpers 2007-10-22 21:19:53 +02:00
ide-timing.h ide: remove ide_find_best_pio_mode() 2007-07-20 01:11:58 +02:00
ide.c ide: remove write-only hwif->hw 2007-10-20 00:32:33 +02:00
Kconfig ide: add CONFIG_IDE_ARCH_OBSOLETE_INIT 2007-10-20 00:32:32 +02:00
Makefile ide: make /proc/ide/ optional 2007-05-10 00:01:09 +02:00
setup-pci.c ide: enhance ide_setup_pci_noise() 2007-10-20 00:32:36 +02:00