From c54a967147c08d3ae80510f1a29704d798e8c804 Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 10 Sep 2023 10:38:22 +0200 Subject: [PATCH] soc/intel: Remove space between function name and '(' Change-Id: I1dbfca33c437c680118eb3a92e60b5607c93e565 Signed-off-by: Elyes Haouas Reviewed-on: https://review.coreboot.org/c/coreboot/+/77768 Reviewed-by: Eric Lai Tested-by: build bot (Jenkins) --- src/soc/intel/baytrail/include/soc/efi_wrapper.h | 4 ++-- src/soc/intel/baytrail/include/soc/mrc_wrapper.h | 4 ++-- src/soc/intel/broadwell/include/soc/pei_data.h | 2 +- src/soc/intel/broadwell/include/soc/pei_wrapper.h | 2 +- src/soc/intel/common/block/gpio/gpio.c | 6 +++--- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/soc/intel/baytrail/include/soc/efi_wrapper.h b/src/soc/intel/baytrail/include/soc/efi_wrapper.h index 4d2d86d3fb..854a3b9864 100644 --- a/src/soc/intel/baytrail/include/soc/efi_wrapper.h +++ b/src/soc/intel/baytrail/include/soc/efi_wrapper.h @@ -17,10 +17,10 @@ struct efi_wrapper_params { /* Mainboard Inputs */ int version; - void ABI_X86 (*console_out)(unsigned char byte); + void ABI_X86(*console_out)(unsigned char byte); unsigned int tsc_ticks_per_microsecond; } __packed; -typedef int ABI_X86 (*efi_wrapper_entry_t)(struct efi_wrapper_params *); +typedef int ABI_X86(*efi_wrapper_entry_t)(struct efi_wrapper_params *); #endif diff --git a/src/soc/intel/baytrail/include/soc/mrc_wrapper.h b/src/soc/intel/baytrail/include/soc/mrc_wrapper.h index 9c979c11a5..f55a20133a 100644 --- a/src/soc/intel/baytrail/include/soc/mrc_wrapper.h +++ b/src/soc/intel/baytrail/include/soc/mrc_wrapper.h @@ -58,7 +58,7 @@ struct mrc_params { struct mrc_mainboard_params mainboard; - void ABI_X86 (*console_out)(unsigned char byte); + void ABI_X86(*console_out)(unsigned char byte); int prev_sleep_state; @@ -76,6 +76,6 @@ struct mrc_params { } __packed; /* Call into wrapper. */ -typedef int ABI_X86 (*mrc_wrapper_entry_t)(struct mrc_params *); +typedef int ABI_X86(*mrc_wrapper_entry_t)(struct mrc_params *); #endif /* _MRC_WRAPPER_H_ */ diff --git a/src/soc/intel/broadwell/include/soc/pei_data.h b/src/soc/intel/broadwell/include/soc/pei_data.h index 67d73d9dbf..7728b1c87c 100644 --- a/src/soc/intel/broadwell/include/soc/pei_data.h +++ b/src/soc/intel/broadwell/include/soc/pei_data.h @@ -9,7 +9,7 @@ #define ABI_X86 __attribute__((regparm(0))) -typedef void ABI_X86 (*tx_byte_func)(unsigned char byte); +typedef void ABI_X86(*tx_byte_func)(unsigned char byte); enum board_type { BOARD_TYPE_CRB_MOBILE = 0, /* CRB Mobile */ diff --git a/src/soc/intel/broadwell/include/soc/pei_wrapper.h b/src/soc/intel/broadwell/include/soc/pei_wrapper.h index cf85c044be..0b7b85155d 100644 --- a/src/soc/intel/broadwell/include/soc/pei_wrapper.h +++ b/src/soc/intel/broadwell/include/soc/pei_wrapper.h @@ -5,7 +5,7 @@ #include -typedef int ABI_X86 (*pei_wrapper_entry_t)(struct pei_data *pei_data); +typedef int ABI_X86(*pei_wrapper_entry_t)(struct pei_data *pei_data); static inline void pei_data_usb2_port(struct pei_data *pei_data, int port, uint16_t length, uint8_t enable, diff --git a/src/soc/intel/common/block/gpio/gpio.c b/src/soc/intel/common/block/gpio/gpio.c index facc1fe5a2..63d59daa57 100644 --- a/src/soc/intel/common/block/gpio/gpio.c +++ b/src/soc/intel/common/block/gpio/gpio.c @@ -245,7 +245,7 @@ static void set_ioapic_used(uint32_t irq) { size_t word_offset = irq / 32; size_t bit_offset = irq % 32; - assert (word_offset < ARRAY_SIZE(gpio_ioapic_irqs_used)); + assert(word_offset < ARRAY_SIZE(gpio_ioapic_irqs_used)); gpio_ioapic_irqs_used[word_offset] |= BIT(bit_offset); } @@ -253,7 +253,7 @@ bool gpio_routes_ioapic_irq(uint32_t irq) { size_t word_offset = irq / 32; size_t bit_offset = irq % 32; - assert (word_offset < ARRAY_SIZE(gpio_ioapic_irqs_used)); + assert(word_offset < ARRAY_SIZE(gpio_ioapic_irqs_used)); return (gpio_ioapic_irqs_used[word_offset] & BIT(bit_offset)) != 0; } @@ -830,7 +830,7 @@ static int gpio_route_pmc_gpio_gpe(int pmc_gpe_num) int i; routes = soc_pmc_gpio_routes(&num_routes); - assert (routes != NULL); + assert(routes != NULL); for (i = 0; i < num_routes; i++, routes++) { if (pmc_gpe_num == routes->pmc) return routes->gpio;