android_kernel_xiaomi_sm7250/drivers/ide
Bartlomiej Zolnierkiewicz 282037f17f hpt366: fix build for CONFIG_HOTPLUG=n
On Saturday 20 October 2007, Avuton Olrich wrote:

> My randconfig script the attached config caught an error on:
> drivers/ide/pci/cy82c693.c:439: error: primary causes a section type conflict
>
> My git tree: c00046c279
>
> Bisected to:
> 8562043606 is first bad commit
> commit 8562043606
> Author: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
> Date:   Sat Oct 20 00:32:34 2007 +0200
>
>     ide: constify struct ide_port_info
>
>     Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

It turns out that const and __{dev}initdata cannot be mixed currently
and that hpt366 host driver is also affected by the same issue:

> drivers/ide/pci/hpt366.c:1428: error: hpt366_chipsets causes a section type
> conflict

This patch workarounds the problem by making static struct hpt_info instances
const.  Now all __devinitdata data in hpt366 host driver are read-only so it
builds again (driver's .init.data section gets marked as READONLY).

While at it:

* Bump driver version.

Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Cc: "Avuton Olrich" <avuton@gmail.com>
Cc: Randy Dunlap <randy.dunlap@oracle.com>
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 hpt366: 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