Commit 928923c76b393e38e5ba1d47e843e208ceef6cf9

Authored by Geert Uytterhoeven
Committed by Linus Torvalds
1 parent 2301060e2b

Introduce CONFIG_CHECK_SIGNATURE

Introduce CONFIG_CHECK_SIGNATURE to control inclusion of check_signature()
and avoid problems on platforms that don't have readb().

Let the few legacy (ISA || PCI || X86) drivers that need check_signature()
select CONFIG_CHECK_SIGNATURE.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 5 changed files with 13 additions and 1 deletions Side-by-side Diff

drivers/block/Kconfig
... ... @@ -68,6 +68,7 @@
68 68 config BLK_DEV_XD
69 69 tristate "XT hard disk support"
70 70 depends on ISA && ISA_DMA_API
  71 + select CHECK_SIGNATURE
71 72 help
72 73 Very old 8 bit hard disk controllers used in the IBM XT computer
73 74 will be supported if you say Y here.
drivers/input/misc/Kconfig
... ... @@ -68,6 +68,7 @@
68 68 select INPUT_POLLDEV
69 69 select NEW_LEDS
70 70 select LEDS_CLASS
  71 + select CHECK_SIGNATURE
71 72 help
72 73 Say Y here for support of Winstron laptop button interface, used on
73 74 laptops of various brands, including Acer and Fujitsu-Siemens. If
drivers/scsi/Kconfig
... ... @@ -367,6 +367,7 @@
367 367 config SCSI_7000FASST
368 368 tristate "7000FASST SCSI support"
369 369 depends on ISA && SCSI && ISA_DMA_API
  370 + select CHECK_SIGNATURE
370 371 help
371 372 This driver supports the Western Digital 7000 SCSI host adapter
372 373 family. Some information is in the source:
... ... @@ -388,6 +389,7 @@
388 389 tristate "Adaptec AHA152X/2825 support"
389 390 depends on ISA && SCSI && !64BIT
390 391 select SCSI_SPI_ATTRS
  392 + select CHECK_SIGNATURE
391 393 ---help---
392 394 This is a driver for the AHA-1510, AHA-1520, AHA-1522, and AHA-2825
393 395 SCSI host adapters. It also works for the AVA-1505, but the IRQ etc.
... ... @@ -583,6 +585,7 @@
583 585 tristate "DTC3180/3280 SCSI support"
584 586 depends on ISA && SCSI
585 587 select SCSI_SPI_ATTRS
  588 + select CHECK_SIGNATURE
586 589 help
587 590 This is support for DTC 3180/3280 SCSI Host Adapters. Please read
588 591 the SCSI-HOWTO, available from
... ... @@ -657,6 +660,7 @@
657 660 config SCSI_FUTURE_DOMAIN
658 661 tristate "Future Domain 16xx SCSI/AHA-2920A support"
659 662 depends on (ISA || PCI) && SCSI
  663 + select CHECK_SIGNATURE
660 664 ---help---
661 665 This is support for Future Domain's 16-bit SCSI host adapters
662 666 (TMC-1660/1680, TMC-1650/1670, TMC-3260, TMC-1610M/MER/MEX) and
... ... @@ -1324,6 +1328,7 @@
1324 1328 config SCSI_SEAGATE
1325 1329 tristate "Seagate ST-02 and Future Domain TMC-8xx SCSI support"
1326 1330 depends on X86 && ISA && SCSI
  1331 + select CHECK_SIGNATURE
1327 1332 ---help---
1328 1333 These are 8-bit SCSI controllers; the ST-01 is also supported by
1329 1334 this driver. It is explained in section 3.9 of the SCSI-HOWTO,
... ... @@ -1397,6 +1402,7 @@
1397 1402 tristate "Trantor T128/T128F/T228 SCSI support"
1398 1403 depends on ISA && SCSI
1399 1404 select SCSI_SPI_ATTRS
  1405 + select CHECK_SIGNATURE
1400 1406 ---help---
1401 1407 This is support for a SCSI host adapter. It is explained in section
1402 1408 3.11 of the SCSI-HOWTO, available from
... ... @@ -138,5 +138,8 @@
138 138 depends on !NO_DMA
139 139 default y
140 140  
  141 +config CHECK_SIGNATURE
  142 + bool
  143 +
141 144 endmenu
... ... @@ -21,7 +21,8 @@
21 21 endif
22 22  
23 23 obj-$(CONFIG_GENERIC_IOMAP) += iomap.o
24   -obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o check_signature.o
  24 +obj-$(CONFIG_HAS_IOMEM) += iomap_copy.o devres.o
  25 +obj-$(CONFIG_CHECK_SIGNATURE) += check_signature.o
25 26 obj-$(CONFIG_DEBUG_LOCKING_API_SELFTESTS) += locking-selftest.o
26 27 obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock_debug.o
27 28 lib-$(CONFIG_RWSEM_GENERIC_SPINLOCK) += rwsem-spinlock.o