src/include: Remove space after function name
Fix the following warning detected by checkpatch.pl: WARNING: space prohibited between function name and open parenthesis '(' TEST=Build and run on Galileo Gen2 Change-Id: I0ac30b32bab895ca72f91720eeae5a5067327247 Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18656 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
parent
6d71a43af5
commit
746d4afbed
|
@ -183,7 +183,7 @@ struct boot_state_init_entry {
|
|||
};
|
||||
|
||||
#if ENV_RAMSTAGE
|
||||
#define BOOT_STATE_INIT_ATTR __attribute__ ((used, section (".bs_init")))
|
||||
#define BOOT_STATE_INIT_ATTR __attribute__ ((used, section(".bs_init")))
|
||||
#else
|
||||
#define BOOT_STATE_INIT_ATTR __attribute__ ((unused))
|
||||
#endif
|
||||
|
|
|
@ -42,7 +42,7 @@ static alwaysinline CRx_TYPE read_cr0(void)
|
|||
CRx_TYPE value;
|
||||
__asm__ __volatile__ (
|
||||
"mov %%cr0, %0"
|
||||
: CRx_RET (value)
|
||||
: CRx_RET(value)
|
||||
:
|
||||
: COMPILER_BARRIER
|
||||
);
|
||||
|
@ -54,7 +54,7 @@ static alwaysinline void write_cr0(CRx_TYPE data)
|
|||
__asm__ __volatile__ (
|
||||
"mov %0, %%cr0"
|
||||
:
|
||||
: CRx_IN (data)
|
||||
: CRx_IN(data)
|
||||
: COMPILER_BARRIER
|
||||
);
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ static alwaysinline CRx_TYPE read_cr4(void)
|
|||
CRx_TYPE value;
|
||||
__asm__ __volatile__ (
|
||||
"mov %%cr4, %0"
|
||||
: CRx_RET (value)
|
||||
: CRx_RET(value)
|
||||
:
|
||||
: COMPILER_BARRIER
|
||||
);
|
||||
|
@ -76,7 +76,7 @@ static alwaysinline void write_cr4(CRx_TYPE data)
|
|||
__asm__ __volatile__ (
|
||||
"mov %0, %%cr4"
|
||||
:
|
||||
: CRx_IN (data)
|
||||
: CRx_IN(data)
|
||||
: COMPILER_BARRIER
|
||||
);
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
#define MTRR_FIX_4K_F0000 0x26e
|
||||
#define MTRR_FIX_4K_F8000 0x26f
|
||||
|
||||
#if !defined (__ASSEMBLER__) && !defined(__PRE_RAM__)
|
||||
#if !defined(__ASSEMBLER__) && !defined(__PRE_RAM__)
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stddef.h>
|
||||
|
|
|
@ -511,7 +511,7 @@ struct smm_module_params {
|
|||
};
|
||||
|
||||
/* smm_handler_t is called with arg of smm_module_params pointer. */
|
||||
typedef void asmlinkage (*smm_handler_t)(void *);
|
||||
typedef asmlinkage void (*smm_handler_t)(void *);
|
||||
|
||||
#ifdef __SMM__
|
||||
/* SMM Runtime helpers. */
|
||||
|
|
|
@ -195,11 +195,11 @@ void run_bios(struct device *dev, unsigned long addr);
|
|||
/* Helper functions */
|
||||
device_t find_dev_path(struct bus *parent, struct device_path *path);
|
||||
device_t alloc_find_dev(struct bus *parent, struct device_path *path);
|
||||
device_t dev_find_device (u16 vendor, u16 device, device_t from);
|
||||
device_t dev_find_class (unsigned int class, device_t from);
|
||||
device_t dev_find_device(u16 vendor, u16 device, device_t from);
|
||||
device_t dev_find_class(unsigned int class, device_t from);
|
||||
device_t dev_find_path(device_t prev_match, enum device_path_type path_type);
|
||||
device_t dev_find_slot (unsigned int bus, unsigned int devfn);
|
||||
device_t dev_find_slot_on_smbus (unsigned int bus, unsigned int addr);
|
||||
device_t dev_find_slot(unsigned int bus, unsigned int devfn);
|
||||
device_t dev_find_slot_on_smbus(unsigned int bus, unsigned int addr);
|
||||
device_t dev_find_slot_pnp(u16 port, u16 device);
|
||||
device_t dev_find_lapic(unsigned int apic_id);
|
||||
int dev_count_cpu(void);
|
||||
|
@ -268,11 +268,11 @@ u32 find_pci_tolm(struct bus *bus);
|
|||
|
||||
#else /* vv __SIMPLE_DEVICE__ vv */
|
||||
|
||||
ROMSTAGE_CONST struct device *dev_find_slot (unsigned int bus,
|
||||
ROMSTAGE_CONST struct device *dev_find_slot(unsigned int bus,
|
||||
unsigned int devfn);
|
||||
ROMSTAGE_CONST struct device *dev_find_next_pci_device(
|
||||
ROMSTAGE_CONST struct device *previous_dev);
|
||||
ROMSTAGE_CONST struct device *dev_find_slot_on_smbus (unsigned int bus,
|
||||
ROMSTAGE_CONST struct device *dev_find_slot_on_smbus(unsigned int bus,
|
||||
unsigned int addr);
|
||||
ROMSTAGE_CONST struct device *dev_find_slot_pnp(u16 port, u16 device);
|
||||
|
||||
|
|
|
@ -107,7 +107,7 @@ struct reg_script_bus_entry {
|
|||
void (*reg_script_write)(struct reg_script_context *ctx);
|
||||
};
|
||||
|
||||
#define REG_SCRIPT_TABLE_ATTRIBUTE __attribute__ ((used, section (".rsbe_init")))
|
||||
#define REG_SCRIPT_TABLE_ATTRIBUTE __attribute__ ((used, section(".rsbe_init")))
|
||||
|
||||
#define REG_SCRIPT_BUS_ENTRY(bus_entry_) \
|
||||
const struct reg_script_bus_entry *rsbe_ ## bus_entry_ \
|
||||
|
|
|
@ -72,7 +72,7 @@ struct rmodule {
|
|||
#if IS_ENABLED(CONFIG_RELOCATABLE_MODULES)
|
||||
/* Rmodules have an entry point of named _start. */
|
||||
#define RMODULE_ENTRY(entry_) \
|
||||
void _start(void *) __attribute__((alias (STRINGIFY(entry_))))
|
||||
void _start(void *) __attribute__((alias(STRINGIFY(entry_))))
|
||||
#else
|
||||
#define RMODULE_ENTRY(entry_)
|
||||
#endif
|
||||
|
|
|
@ -70,7 +70,7 @@ void asmlinkage switch_to_thread(uintptr_t new_stack, uintptr_t *saved_stack);
|
|||
* will enter the thread_entry() function with arg as a parameter. The
|
||||
* saved_stack field in the struct thread needs to be updated accordingly. */
|
||||
void arch_prepare_thread(struct thread *t,
|
||||
void asmlinkage (*thread_entry)(void *), void *arg);
|
||||
asmlinkage void (*thread_entry)(void *), void *arg);
|
||||
#else
|
||||
static inline void threads_initialize(void) {}
|
||||
static inline int thread_run(void (*func)(void *), void *arg) { return -1; }
|
||||
|
|
Loading…
Reference in New Issue