Skip to content

Commit 5ea8176

Browse files
Al ViroLinus Torvalds
authored andcommitted
[PATCH] sort the devres mess out
* Split the implementation-agnostic stuff in separate files. * Make sure that targets using non-default request_irq() pull kernel/irq/devres.o * Introduce new symbols (HAS_IOPORT and HAS_IOMEM) defaulting to positive; allow architectures to turn them off (we needed these symbols anyway for dependencies of quite a few drivers). * protect the ioport-related parts of lib/devres.o with CONFIG_HAS_IOPORT. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 2835fdf commit 5ea8176

21 files changed

Lines changed: 442 additions & 397 deletions

File tree

‎arch/arm/Kconfig‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ config MMU
2929
bool
3030
default y
3131

32+
config NO_IOPORT
33+
bool
34+
default n
35+
3236
config EISA
3337
bool
3438
---help---
@@ -298,6 +302,7 @@ config ARCH_RPC
298302
select TIMER_ACORN
299303
select ARCH_MAY_HAVE_PC_FDC
300304
select ISA_DMA_API
305+
select NO_IOPORT
301306
help
302307
On the Acorn Risc-PC, Linux can support the internal IDE disk and
303308
CD-ROM interface, serial and parallel port, and the floppy drive.

‎arch/cris/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ config IRQ_PER_CPU
4444
bool
4545
default y
4646

47+
config NO_IOPORT
48+
def_bool y
49+
4750
config CRIS
4851
bool
4952
default y

‎arch/h8300/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ config TIME_LOW_RES
5757
bool
5858
default y
5959

60+
config NO_IOPORT
61+
def_bool y
62+
6063
config ISA
6164
bool
6265
default y

‎arch/h8300/kernel/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ extra-y := vmlinux.lds
66

77
obj-y := process.o traps.o ptrace.o ints.o \
88
sys_h8300.o time.o semaphore.o signal.o \
9-
setup.o gpio.o init_task.o syscalls.o
9+
setup.o gpio.o init_task.o syscalls.o devres.o
10+
11+
devres-y = ../../../kernel/irq/devres.o
1012

1113
obj-$(CONFIG_MODULES) += module.o h8300_ksyms.o

‎arch/m32r/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ config GENERIC_IRQ_PROBE
2828
bool
2929
default y
3030

31+
config NO_IOPORT
32+
def_bool y
33+
3134
source "init/Kconfig"
3235

3336

‎arch/m68k/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ config ARCH_MAY_HAVE_PC_FDC
4242
depends on Q40 || (BROKEN && SUN3X)
4343
default y
4444

45+
config NO_IOPORT
46+
def_bool y
47+
4548
mainmenu "Linux/68k Kernel Configuration"
4649

4750
source "init/Kconfig"

‎arch/m68k/kernel/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ endif
1010
extra-y += vmlinux.lds
1111

1212
obj-y := entry.o process.o traps.o ints.o signal.o ptrace.o \
13-
sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o
13+
sys_m68k.o time.o semaphore.o setup.o m68k_ksyms.o devres.o
14+
15+
devres-y = ../../../kernel/irq/devres.o
1416

1517
obj-$(CONFIG_PCI) += bios32.o
1618
obj-$(CONFIG_MODULES) += module.o

‎arch/m68knommu/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ config TIME_LOW_RES
5353
bool
5454
default y
5555

56+
config NO_IOPORT
57+
def_bool y
58+
5659
source "init/Kconfig"
5760

5861
menu "Processor type and features"

‎arch/s390/Kconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ config GENERIC_HWEIGHT
4141
config GENERIC_TIME
4242
def_bool y
4343

44+
config NO_IOPORT
45+
def_bool y
46+
4447
mainmenu "Linux Kernel Configuration"
4548

4649
config S390

‎arch/sparc/kernel/Makefile‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ obj-y := entry.o wof.o wuf.o etrap.o rtrap.o traps.o $(IRQ_OBJS) \
1212
sys_sparc.o sunos_asm.o systbls.o \
1313
time.o windows.o cpu.o devices.o sclow.o \
1414
tadpole.o tick14.o ptrace.o sys_solaris.o \
15-
unaligned.o muldiv.o semaphore.o prom.o of_device.o
15+
unaligned.o muldiv.o semaphore.o prom.o of_device.o devres.o
16+
17+
devres-y = ../../../kernel/irq/devres.o
1618

1719
obj-$(CONFIG_PCI) += pcic.o
1820
obj-$(CONFIG_SUN4) += sun4setup.o

0 commit comments

Comments
 (0)