diff options
author | Thomas Heijligen <thomas.heijligen@secunet.de> | 2021-09-21 10:00:14 +0200 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-09-26 13:00:26 +0000 |
commit | 95f39b0098783704f2425e118897da5315ccb2ee (patch) | |
tree | 0a3dd647b427203405d5c2a41da52d3321a5cde2 | |
parent | cce29a485552052ce922ed1354c26674884a7857 (diff) | |
download | flashrom-95f39b0098783704f2425e118897da5315ccb2ee.tar.gz flashrom-95f39b0098783704f2425e118897da5315ccb2ee.tar.bz2 flashrom-95f39b0098783704f2425e118897da5315ccb2ee.zip |
remove compile guards
The build system handles the decision when to build a file.
Extra compile guards for the source files are not necessary.
Change-Id: I76a76e05c7a7dd27637325ab1e9d8946fd5f9076
Signed-off-by: Thomas Heijligen <thomas.heijligen@secunet.de>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/57797
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Singer <felixsinger@posteo.net>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Nico Huber <nico.h@gmx.de>
-rw-r--r-- | amd_imc.c | 4 | ||||
-rw-r--r-- | atahpt.c | 6 | ||||
-rw-r--r-- | atapromise.c | 6 | ||||
-rw-r--r-- | ft2232_spi.c | 3 | ||||
-rw-r--r-- | ichspi.c | 4 | ||||
-rw-r--r-- | it85spi.c | 4 | ||||
-rw-r--r-- | it87spi.c | 4 | ||||
-rw-r--r-- | linux_spi.c | 4 | ||||
-rw-r--r-- | mcp6x_spi.c | 4 | ||||
-rw-r--r-- | mstarddc_spi.c | 4 | ||||
-rw-r--r-- | nic3com.c | 6 | ||||
-rw-r--r-- | nicnatsemi.c | 6 | ||||
-rw-r--r-- | nicrealtek.c | 6 | ||||
-rw-r--r-- | rayer_spi.c | 5 | ||||
-rw-r--r-- | satamv.c | 5 | ||||
-rw-r--r-- | sb600spi.c | 4 | ||||
-rw-r--r-- | usbblaster_spi.c | 4 | ||||
-rw-r--r-- | wbsio_spi.c | 4 |
18 files changed, 0 insertions, 83 deletions
@@ -15,8 +15,6 @@ * GNU General Public License for more details. */ -#if defined(__i386__) || defined(__x86_64__) - #include "flash.h" #include "programmer.h" #include "hwaccess.h" @@ -151,5 +149,3 @@ int amd_imc_shutdown(struct pci_dev *dev) return ret; } - -#endif @@ -14,8 +14,6 @@ * GNU General Public License for more details. */ -#if defined(__i386__) || defined(__x86_64__) - #include <stdlib.h> #include <string.h> #include "flash.h" @@ -97,7 +95,3 @@ const struct programmer_entry programmer_atahpt = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; - -#else -#error PCI port I/O access is not supported on this architecture yet. -#endif diff --git a/atapromise.c b/atapromise.c index e3009e42..0c187e3c 100644 --- a/atapromise.c +++ b/atapromise.c @@ -14,8 +14,6 @@ * GNU General Public License for more details. */ -#if defined(__i386__) || defined(__x86_64__) - #include <string.h> #include <stdlib.h> #include "flash.h" @@ -170,7 +168,3 @@ const struct programmer_entry programmer_atapromise = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; - -#else -#error PCI port I/O access is not supported on this architecture yet. -#endif diff --git a/ft2232_spi.c b/ft2232_spi.c index 15837d92..0962f1c1 100644 --- a/ft2232_spi.c +++ b/ft2232_spi.c @@ -14,8 +14,6 @@ * GNU General Public License for more details. */ -#if CONFIG_FT2232_SPI == 1 - #include <stdio.h> #include <strings.h> #include <string.h> @@ -599,4 +597,3 @@ const struct programmer_entry programmer_ft2232_spi = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; -#endif @@ -19,8 +19,6 @@ * GNU General Public License for more details. */ -#if defined(__i386__) || defined(__x86_64__) - #include <string.h> #include <stdlib.h> #include "flash.h" @@ -2113,5 +2111,3 @@ int via_init_spi(uint32_t mmio_base) return 0; } - -#endif @@ -20,8 +20,6 @@ * Contains the ITE IT85* SPI specific routines */ -#if defined(__i386__) || defined(__x86_64__) - #include <string.h> #include <stdio.h> #include <stdlib.h> @@ -362,5 +360,3 @@ int it85xx_spi_init(struct superio s) /* Set this as SPI controller. */ return register_spi_master(&spi_master_it85xx, data); } - -#endif @@ -19,8 +19,6 @@ * Contains the ITE IT87* SPI specific routines */ -#if defined(__i386__) || defined(__x86_64__) - #include <string.h> #include <stdlib.h> #include <errno.h> @@ -464,5 +462,3 @@ int init_superio_ite(void) } return ret; } - -#endif /* defined(__i386__) || defined(__x86_64__) */ diff --git a/linux_spi.c b/linux_spi.c index bd9ffb36..27a9a0db 100644 --- a/linux_spi.c +++ b/linux_spi.c @@ -13,8 +13,6 @@ * GNU General Public License for more details. */ -#if CONFIG_LINUX_SPI == 1 - #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -256,5 +254,3 @@ const struct programmer_entry programmer_linux_spi = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; - -#endif // CONFIG_LINUX_SPI == 1 diff --git a/mcp6x_spi.c b/mcp6x_spi.c index fa309ca3..29d26634 100644 --- a/mcp6x_spi.c +++ b/mcp6x_spi.c @@ -19,8 +19,6 @@ * created by Michael Karcher. */ -#if defined(__i386__) || defined(__x86_64__) - #include <stdlib.h> #include <ctype.h> #include "flash.h" @@ -192,5 +190,3 @@ int mcp6x_spi_init(int want_spi) return 0; } - -#endif diff --git a/mstarddc_spi.c b/mstarddc_spi.c index 8e2d5a86..71b02c0b 100644 --- a/mstarddc_spi.c +++ b/mstarddc_spi.c @@ -13,8 +13,6 @@ * GNU General Public License for more details. */ -#if CONFIG_MSTARDDC_SPI == 1 - #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -259,5 +257,3 @@ const struct programmer_entry programmer_mstarddc_spi = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; - -#endif @@ -14,8 +14,6 @@ * GNU General Public License for more details. */ -#if defined(__i386__) || defined(__x86_64__) - #include <stdlib.h> #include "flash.h" #include "programmer.h" @@ -173,7 +171,3 @@ const struct programmer_entry programmer_nic3com = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; - -#else -#error PCI port I/O access is not supported on this architecture yet. -#endif diff --git a/nicnatsemi.c b/nicnatsemi.c index b2f381a3..62167281 100644 --- a/nicnatsemi.c +++ b/nicnatsemi.c @@ -14,8 +14,6 @@ * GNU General Public License for more details. */ -#if defined(__i386__) || defined(__x86_64__) - #include <stdlib.h> #include "flash.h" #include "programmer.h" @@ -110,7 +108,3 @@ const struct programmer_entry programmer_nicnatsemi = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; - -#else -#error PCI port I/O access is not supported on this architecture yet. -#endif diff --git a/nicrealtek.c b/nicrealtek.c index ec821b4f..70daeec0 100644 --- a/nicrealtek.c +++ b/nicrealtek.c @@ -14,8 +14,6 @@ * GNU General Public License for more details. */ -#if defined(__i386__) || defined(__x86_64__) - #include <stdlib.h> #include "flash.h" #include "programmer.h" @@ -151,7 +149,3 @@ const struct programmer_entry programmer_nicrealtek = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; - -#else -#error PCI port I/O access is not supported on this architecture yet. -#endif diff --git a/rayer_spi.c b/rayer_spi.c index 1102ff15..e65eb78d 100644 --- a/rayer_spi.c +++ b/rayer_spi.c @@ -22,7 +22,6 @@ * most OS parport drivers will perform many unnecessary accesses although * this driver just treats the parallel port as a GPIO set. */ -#if defined(__i386__) || defined(__x86_64__) #include <stdlib.h> #include <strings.h> @@ -334,7 +333,3 @@ const struct programmer_entry programmer_rayer_spi = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; - -#else -#error PCI port I/O access is not supported on this architecture yet. -#endif @@ -15,7 +15,6 @@ */ /* Datasheets are not public (yet?) */ -#if defined(__i386__) || defined(__x86_64__) #include <stdlib.h> #include "flash.h" @@ -191,7 +190,3 @@ const struct programmer_entry programmer_satamv = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; - -#else -#error PCI port I/O access is not supported on this architecture yet. -#endif @@ -18,8 +18,6 @@ * GNU General Public License for more details. */ -#if defined(__i386__) || defined(__x86_64__) - #include <string.h> #include <stdlib.h> #include "flash.h" @@ -799,5 +797,3 @@ int sb600_probe_spi(struct pci_dev *dev) return 0; } - -#endif diff --git a/usbblaster_spi.c b/usbblaster_spi.c index bd4b1c92..8957df87 100644 --- a/usbblaster_spi.c +++ b/usbblaster_spi.c @@ -30,8 +30,6 @@ * See also the USB-Blaster Download Cable User Guide: http://www.altera.com/literature/ug/ug_usb_blstr.pdf */ -#if CONFIG_USBBLASTER_SPI == 1 - #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -237,5 +235,3 @@ const struct programmer_entry programmer_usbblaster_spi = { .unmap_flash_region = fallback_unmap, .delay = internal_delay, }; - -#endif diff --git a/wbsio_spi.c b/wbsio_spi.c index a175b216..60b725f1 100644 --- a/wbsio_spi.c +++ b/wbsio_spi.c @@ -14,8 +14,6 @@ * GNU General Public License for more details. */ -#if defined(__i386__) || defined(__x86_64__) - #include <stdlib.h> #include "flash.h" @@ -217,5 +215,3 @@ int wbsio_check_for_spi(void) return register_spi_master(&spi_master_wbsio, data); } - -#endif /* defined(__i386__) || defined(__x86_64__) */ |