src/{arch,commonlib,cpu}: Use "foo *bar" instead of "foo* bar"

Change-Id: I8e4118c5c5d70719ad7dc5f9ff9f86d93fa498ac
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26942
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
This commit is contained in:
Elyes HAOUAS
2018-07-08 12:30:02 +02:00
committed by Patrick Georgi
parent 2106638ec2
commit 6c9737b1ac
8 changed files with 10 additions and 10 deletions

View File

@ -116,7 +116,7 @@ static struct {
{ X86_VENDOR_SIS, "SiS SiS SiS ", }, { X86_VENDOR_SIS, "SiS SiS SiS ", },
}; };
static const char * const x86_vendor_name[] = { static const char *const x86_vendor_name[] = {
[X86_VENDOR_INTEL] = "Intel", [X86_VENDOR_INTEL] = "Intel",
[X86_VENDOR_CYRIX] = "Cyrix", [X86_VENDOR_CYRIX] = "Cyrix",
[X86_VENDOR_AMD] = "AMD", [X86_VENDOR_AMD] = "AMD",

View File

@ -529,7 +529,7 @@ int mmc_set_partition(struct storage_media *media,
const char *mmc_partition_name(struct storage_media *media, const char *mmc_partition_name(struct storage_media *media,
unsigned int partition_number) unsigned int partition_number)
{ {
static const char * const partition_name[8] = { static const char *const partition_name[8] = {
"User", /* 0 */ "User", /* 0 */
"Boot 1", /* 1 */ "Boot 1", /* 1 */
"Boot 2", /* 2 */ "Boot 2", /* 2 */

View File

@ -31,7 +31,7 @@
#define HEX_CAPACITY_MULTIPLIER 1024ULL #define HEX_CAPACITY_MULTIPLIER 1024ULL
struct capacity { struct capacity {
const char * const units; const char *const units;
uint64_t bytes; uint64_t bytes;
}; };

View File

@ -121,7 +121,7 @@ static void vErrata343(void)
wrmsr(BU_CFG2_MSR, msr); wrmsr(BU_CFG2_MSR, msr);
} }
asmlinkage void * post_cache_as_ram(void) asmlinkage void *post_cache_as_ram(void)
{ {
uint32_t family = amd_fam1x_cpu_family(); uint32_t family = amd_fam1x_cpu_family();
int s3resume = 0; int s3resume = 0;

View File

@ -377,7 +377,7 @@ u32 init_cpus(u32 cpu_init_detectedx, struct sys_info *sysinfo)
uint32_t max_bsp_stack_region_size = CONFIG_DCACHE_BSP_STACK_SIZE + CONFIG_DCACHE_BSP_STACK_SLUSH; uint32_t max_bsp_stack_region_size = CONFIG_DCACHE_BSP_STACK_SIZE + CONFIG_DCACHE_BSP_STACK_SLUSH;
uint32_t bsp_stack_region_upper_boundary = CONFIG_DCACHE_RAM_BASE + CONFIG_DCACHE_RAM_SIZE; uint32_t bsp_stack_region_upper_boundary = CONFIG_DCACHE_RAM_BASE + CONFIG_DCACHE_RAM_SIZE;
uint32_t bsp_stack_region_lower_boundary = bsp_stack_region_upper_boundary - max_bsp_stack_region_size; uint32_t bsp_stack_region_lower_boundary = bsp_stack_region_upper_boundary - max_bsp_stack_region_size;
void * lower_stack_region_boundary = (void*)(bsp_stack_region_lower_boundary - max_ap_stack_region_size); void *lower_stack_region_boundary = (void *)(bsp_stack_region_lower_boundary - max_ap_stack_region_size);
if (((void*)(sysinfo + 1)) > lower_stack_region_boundary) if (((void*)(sysinfo + 1)) > lower_stack_region_boundary)
printk(BIOS_WARNING, printk(BIOS_WARNING,
"sysinfo extends into stack region (sysinfo range: [%p,%p] lower stack region boundary: %p)\n", "sysinfo extends into stack region (sysinfo range: [%p,%p] lower stack region boundary: %p)\n",
@ -825,7 +825,7 @@ static void AMD_SetupPSIVID_d(u32 platform_type, u8 node)
* *
* Returns the offset of the link register. * Returns the offset of the link register.
*/ */
static BOOL AMD_CpuFindCapability(u8 node, u8 cap_count, u8 * offset) static BOOL AMD_CpuFindCapability(u8 node, u8 cap_count, u8 *offset)
{ {
u32 reg; u32 reg;
u32 val; u32 val;

View File

@ -28,7 +28,7 @@ void asmlinkage early_all_cores(void)
amd_initmmio(); amd_initmmio();
} }
void * asmlinkage romstage_main(unsigned long bist) void *asmlinkage romstage_main(unsigned long bist)
{ {
int s3resume = 0; int s3resume = 0;
u8 initial_apic_id = cpuid_ebx(1) >> 24; u8 initial_apic_id = cpuid_ebx(1) >> 24;
@ -45,7 +45,7 @@ void * asmlinkage romstage_main(unsigned long bist)
stack_top += HIGH_ROMSTAGE_STACK_SIZE; stack_top += HIGH_ROMSTAGE_STACK_SIZE;
printk(BIOS_DEBUG, "Move CAR stack.\n"); printk(BIOS_DEBUG, "Move CAR stack.\n");
return (void*)stack_top; return (void *)stack_top;
} }
void asmlinkage romstage_after_car(void) void asmlinkage romstage_after_car(void)

View File

@ -42,7 +42,7 @@ static inline void set_global_turbo_state(int state)
} }
#endif #endif
static const char * const turbo_state_desc[] = { static const char *const turbo_state_desc[] = {
[TURBO_UNKNOWN] = "unknown", [TURBO_UNKNOWN] = "unknown",
[TURBO_UNAVAILABLE] = "unavailable", [TURBO_UNAVAILABLE] = "unavailable",
[TURBO_DISABLED] = "available but hidden", [TURBO_DISABLED] = "available but hidden",

View File

@ -61,7 +61,7 @@ static ucode_validity nano_ucode_is_valid(const nano_ucode_header *ucode)
* Two's complement done over the entire file, including the header */ * Two's complement done over the entire file, including the header */
int i; int i;
u32 check = 0; u32 check = 0;
u32 *raw = (void*) ucode; u32 *raw = (void *) ucode;
for (i = 0; i < ((ucode->total_size) >> 2); i++) { for (i = 0; i < ((ucode->total_size) >> 2); i++) {
check += raw[i]; check += raw[i];
} }