linux/drivers/ide/pci
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
..
aec62xx.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
alim15x3.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
amd74xx.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
atiixp.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
cmd64x.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
cmd640.c ide: take ide_lock for prefetch disable/enable in do_special() 2007-10-20 00:32:36 +02:00
cs5520.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
cs5530.c cs5530: remove needless ide_lock taking 2007-10-20 00:32:36 +02:00
cs5535.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
cy82c693.c cy82c693: fix build for CONFIG_HOTPLUG=n 2007-10-26 20:31:15 +02:00
delkin_cb.c ide: add ->fixup method to ide_hwif_t 2007-10-20 00:32:31 +02:00
generic.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
hpt34x.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
hpt366.c hpt366: fix build for CONFIG_HOTPLUG=n 2007-10-26 20:31:15 +02:00
it821x.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2007-10-19 20:36:17 -07:00
it8213.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
jmicron.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
Makefile scc_pata: dependency fix 2007-03-17 21:57:25 +01:00
ns87415.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
opti621.c opti621: fix deadlock on error handling 2007-10-20 00:32:35 +02:00
pdc202xx_new.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
pdc202xx_old.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
piix.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
rz1000.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
sc1200.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
scc_pata.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
serverworks.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
sgiioc4.c ide: remove write-only hwif->hw 2007-10-20 00:32:33 +02:00
siimage.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial 2007-10-19 20:36:17 -07:00
sis5513.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
sl82c105.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
slc90e66.c slc90e66: fix deadlock on error handling 2007-10-20 00:32:35 +02:00
tc86c001.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
triflex.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
trm290.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00
via82cxxx.c ide: constify struct ide_port_info 2007-10-20 00:32:34 +02:00