diff options
author | Bartlomiej Zolnierkiewicz <[email protected]> | 2007-10-26 20:31:15 +0200 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <[email protected]> | 2007-10-26 20:31:15 +0200 |
commit | d5271be6b5601b3749cccd8ee89941d5868b90bf (patch) | |
tree | 8c6d745ccada019c592b94f20a8daaa93b19d2a8 /net/unix/sysctl_net_unix.c | |
parent | 282037f17f1db66f555b40eedef1215a5f4b36af (diff) |
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 <[email protected]>. ]
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 <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Andrew Morton <[email protected]>
Signed-off-by: Bartlomiej Zolnierkiewicz <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions