src/include: Indent code using tabs
Fix the following error and warning detected by checkpatch.pl:
ERROR: code indent should use tabs where possible
WARNING: please, no spaces at the start of a line
TEST=Build and run on Galileo Gen2
Change-Id: I487771b8f4d7e104457116b772cd32df5cd721a6
Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18646
Tested-by: build bot (Jenkins)
Reviewed-by: Martin Roth <martinroth@google.com>
diff --git a/src/include/bootstate.h b/src/include/bootstate.h
index 8f2f8b8..679633c 100644
--- a/src/include/bootstate.h
+++ b/src/include/bootstate.h
@@ -157,9 +157,9 @@
* individual callbacks on a given state. 0 is returned on success < 0 on
* error. */
int boot_state_sched_on_entry(struct boot_state_callback *bscb,
- boot_state_t state);
+ boot_state_t state);
int boot_state_sched_on_exit(struct boot_state_callback *bscb,
- boot_state_t state);
+ boot_state_t state);
/* Schedule an array of entries of size num. */
struct boot_state_init_entry;
void boot_state_sched_entries(struct boot_state_init_entry *entries,
diff --git a/src/include/cbmem.h b/src/include/cbmem.h
index c13fe92..71e44d3 100644
--- a/src/include/cbmem.h
+++ b/src/include/cbmem.h
@@ -52,7 +52,7 @@
/* Determine the size for CBMEM root and the small allocations */
static inline size_t cbmem_overhead_size(void)
{
- return 2 * CBMEM_ROOT_MIN_SIZE;
+ return 2 * CBMEM_ROOT_MIN_SIZE;
}
/* By default cbmem is attempted to be recovered. Returns 0 if cbmem was
diff --git a/src/include/cpu/amd/sc520.h b/src/include/cpu/amd/sc520.h
index c79e99e..53a62b5 100644
--- a/src/include/cpu/amd/sc520.h
+++ b/src/include/cpu/amd/sc520.h
@@ -151,7 +151,7 @@
struct watchdog {
unsigned short ctl;
unsigned short cntll;
- unsigned short cntlh;
+ unsigned short cntlh;
unsigned char pad[10];
};
diff --git a/src/include/cpu/x86/mtrr.h b/src/include/cpu/x86/mtrr.h
index fb8474a..539c366 100644
--- a/src/include/cpu/x86/mtrr.h
+++ b/src/include/cpu/x86/mtrr.h
@@ -100,9 +100,9 @@
int r;
__asm__("bsrl %1,%0\n\t"
- "jnz 1f\n\t"
- "movl $0,%0\n"
- "1:" : "=r" (r) : "g" (x));
+ "jnz 1f\n\t"
+ "movl $0,%0\n"
+ "1:" : "=r" (r) : "g" (x));
return r;
}
@@ -112,9 +112,9 @@
int r;
__asm__("bsfl %1,%0\n\t"
- "jnz 1f\n\t"
- "movl $32,%0\n"
- "1:" : "=r" (r) : "g" (x));
+ "jnz 1f\n\t"
+ "movl $32,%0\n"
+ "1:" : "=r" (r) : "g" (x));
return r;
}
#endif
diff --git a/src/include/device/dram/ddr3.h b/src/include/device/dram/ddr3.h
index bc9fca7..ee20ba7 100644
--- a/src/include/device/dram/ddr3.h
+++ b/src/include/device/dram/ddr3.h
@@ -204,8 +204,8 @@
int dimm_is_registered(enum spd_dimm_type type);
void dram_print_spd_ddr3(const dimm_attr * dimm);
int spd_xmp_decode_ddr3(dimm_attr * dimm,
- spd_raw_data spd,
- enum ddr3_xmp_profile profile);
+ spd_raw_data spd,
+ enum ddr3_xmp_profile profile);
/**
* \brief Read double word from specified address
diff --git a/src/include/device/i2c.h b/src/include/device/i2c.h
index 6316748..b3a5cca 100644
--- a/src/include/device/i2c.h
+++ b/src/include/device/i2c.h
@@ -100,7 +100,7 @@
* [start][slave addr][w][data][stop]
*/
static inline int i2c_write_raw(unsigned int bus, uint8_t chip, uint8_t *data,
- int len)
+ int len)
{
struct i2c_seg seg =
{ .read = 0, .chip = chip, .buf = data, .len = len };
diff --git a/src/include/memrange.h b/src/include/memrange.h
index 759f8f5..bf6b8e4 100644
--- a/src/include/memrange.h
+++ b/src/include/memrange.h
@@ -73,7 +73,7 @@
}
static inline void range_entry_update_tag(struct range_entry *r,
- unsigned long new_tag)
+ unsigned long new_tag)
{
r->tag = new_tag;
}
@@ -89,14 +89,14 @@
/* Initialize memranges structure providing an optional array of range_entry
* to use as the free list. */
void memranges_init_empty(struct memranges *ranges, struct range_entry *free,
- size_t num_free);
+ size_t num_free);
/* Initialize and fill a memranges structure according to the
* mask and match type for all memory resources. Tag each entry with the
* specified type. */
void memranges_init(struct memranges *ranges,
- unsigned long mask, unsigned long match,
- unsigned long tag);
+ unsigned long mask, unsigned long match,
+ unsigned long tag);
/* Remove and free all entries within the memranges structure. */
void memranges_teardown(struct memranges *ranges);
@@ -107,8 +107,8 @@
* memranges_add_resources(range, IORESOURCE_CACHEABLE,
* IORESROUCE_CACHEABLE, my_cacheable_tag); */
void memranges_add_resources(struct memranges *ranges,
- unsigned long mask, unsigned long match,
- unsigned long tag);
+ unsigned long mask, unsigned long match,
+ unsigned long tag);
/* Add memory resources that match with the corresponding mask and match but
* also provide filter as additional check. The filter will return non-zero
@@ -119,31 +119,31 @@
* IORESROUCE_CACHEABLE, my_cacheable_tag, filter); */
typedef int (*memrange_filter_t)(struct device *dev, struct resource *res);
void memranges_add_resources_filter(struct memranges *ranges,
- unsigned long mask, unsigned long match,
- unsigned long tag,
- memrange_filter_t filter);
+ unsigned long mask, unsigned long match,
+ unsigned long tag,
+ memrange_filter_t filter);
/* Fill all address ranges up to limit (exclusive) not covered by an entry by
* inserting new entries with the provided tag. */
void memranges_fill_holes_up_to(struct memranges *ranges,
- resource_t limit, unsigned long tag);
+ resource_t limit, unsigned long tag);
/* Create a hole in the range by deleting/modifying entries that overlap with
* the region specified by base and size. */
void memranges_create_hole(struct memranges *ranges,
- resource_t base, resource_t size);
+ resource_t base, resource_t size);
/* Insert a resource to the given memranges. All existing ranges
* covered by range specified by base and size will be removed before a
* new one is added. */
void memranges_insert(struct memranges *ranges,
- resource_t base, resource_t size, unsigned long tag);
+ resource_t base, resource_t size, unsigned long tag);
/* Update all entries with old_tag to new_tag. */
void memranges_update_tag(struct memranges *ranges, unsigned long old_tag,
- unsigned long new_tag);
+ unsigned long new_tag);
/* Returns next entry after the provided entry. NULL if r is last. */
struct range_entry *memranges_next_entry(struct memranges *ranges,
- const struct range_entry *r);
+ const struct range_entry *r);
#endif /* MEMRANGE_H_ */
diff --git a/src/include/rmodule.h b/src/include/rmodule.h
index c5de9c3..2511537 100644
--- a/src/include/rmodule.h
+++ b/src/include/rmodule.h
@@ -45,7 +45,7 @@
* load_offset is the address to load and relocate the rmodule.
* region_alignment must be a power of 2. */
int rmodule_calc_region(unsigned int region_alignment, size_t rmodule_size,
- size_t *region_size, int *load_offset);
+ size_t *region_size, int *load_offset);
/* Support for loading rmodule stages. This API is only available when
* using dynamic cbmem because it uses the dynamic cbmem API to obtain
diff --git a/src/include/thread.h b/src/include/thread.h
index 681ccdd..25594a8 100644
--- a/src/include/thread.h
+++ b/src/include/thread.h
@@ -47,7 +47,7 @@
* transitions from occurring in the (state, seq) pair of the boot state
* machine. */
int thread_run_until(void (*func)(void *), void *arg,
- boot_state_t state, boot_state_sequence_t seq);
+ boot_state_t state, boot_state_sequence_t seq);
/* Return 0 on successful yield for the given amount of time, < 0 when thread
* did not yield. */
int thread_yield_microseconds(unsigned int microsecs);
@@ -70,7 +70,7 @@
* 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);
+ void asmlinkage (*thread_entry)(void *), void *arg);
#else
static inline void threads_initialize(void) {}
static inline int thread_run(void (*func)(void *), void *arg) { return -1; }
diff --git a/src/include/timer.h b/src/include/timer.h
index 0105e32..6b7baaf 100644
--- a/src/include/timer.h
+++ b/src/include/timer.h
@@ -86,7 +86,7 @@
/* Compare two absolute times: Return -1, 0, or 1 if t1 is <, =, or > t2,
* respectively. */
static inline int mono_time_cmp(const struct mono_time *t1,
- const struct mono_time *t2)
+ const struct mono_time *t2)
{
if (t1->microseconds == t2->microseconds)
return 0;
@@ -99,14 +99,14 @@
/* Return true if t1 after t2 */
static inline int mono_time_after(const struct mono_time *t1,
- const struct mono_time *t2)
+ const struct mono_time *t2)
{
return mono_time_cmp(t1, t2) > 0;
}
/* Return true if t1 before t2. */
static inline int mono_time_before(const struct mono_time *t1,
- const struct mono_time *t2)
+ const struct mono_time *t2)
{
return mono_time_cmp(t1, t2) < 0;
}
diff --git a/src/include/tpm_lite/tlcl.h b/src/include/tpm_lite/tlcl.h
index 95bae77..9c277a9 100644
--- a/src/include/tpm_lite/tlcl.h
+++ b/src/include/tpm_lite/tlcl.h
@@ -28,7 +28,7 @@
* Perform a raw TPM request/response transaction.
*/
uint32_t tlcl_send_receive(const uint8_t *request, uint8_t *response,
- int max_length);
+ int max_length);
/* Commands */
@@ -127,7 +127,7 @@
* be NULL. The TPM error code is returned.
*/
uint32_t tlcl_get_flags(uint8_t *disable, uint8_t *deactivated,
- uint8_t *nvlocked);
+ uint8_t *nvlocked);
/**
* Set the bGlobalLock flag, which only a reboot can clear. The TPM error
@@ -144,7 +144,7 @@
* Perform a TPM_Extend.
*/
uint32_t tlcl_extend(int pcr_num, const uint8_t *in_digest,
- uint8_t *out_digest);
+ uint8_t *out_digest);
/**
* Get the entire set of permanent flags.