summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-07 12:18:53 -0800
committerLee Leahy <leroy.p.leahy@intel.com>2017-03-09 17:18:42 +0100
commit708fc274b54dfd13fb83edae17cea9ead0a0f2be (patch)
tree12c20ab96d4dedcdb0224d37168d4f893513180b
parentbb4ae07417c9b3be1af500a62514a2d42467cfb0 (diff)
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>
-rw-r--r--src/include/bootstate.h4
-rw-r--r--src/include/cbmem.h2
-rw-r--r--src/include/cpu/amd/sc520.h2
-rw-r--r--src/include/cpu/x86/mtrr.h12
-rw-r--r--src/include/device/dram/ddr3.h4
-rw-r--r--src/include/device/i2c.h2
-rw-r--r--src/include/memrange.h28
-rw-r--r--src/include/rmodule.h2
-rw-r--r--src/include/thread.h4
-rw-r--r--src/include/timer.h6
-rw-r--r--src/include/tpm_lite/tlcl.h6
11 files changed, 36 insertions, 36 deletions
diff --git a/src/include/bootstate.h b/src/include/bootstate.h
index 8f2f8b8f71..679633cfa3 100644
--- a/src/include/bootstate.h
+++ b/src/include/bootstate.h
@@ -157,9 +157,9 @@ struct boot_state_callback {
* 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 c13fe925ad..71e44d384d 100644
--- a/src/include/cbmem.h
+++ b/src/include/cbmem.h
@@ -52,7 +52,7 @@ struct cbmem_entry;
/* 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 c79e99efac..53a62b5880 100644
--- a/src/include/cpu/amd/sc520.h
+++ b/src/include/cpu/amd/sc520.h
@@ -151,7 +151,7 @@ struct gptimers {
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 fb8474a19d..539c366c21 100644
--- a/src/include/cpu/x86/mtrr.h
+++ b/src/include/cpu/x86/mtrr.h
@@ -100,9 +100,9 @@ static inline unsigned int fms(unsigned int x)
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 @@ static inline unsigned int fls(unsigned int x)
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 bc9fca7495..ee20ba793a 100644
--- a/src/include/device/dram/ddr3.h
+++ b/src/include/device/dram/ddr3.h
@@ -204,8 +204,8 @@ int spd_decode_ddr3(dimm_attr * dimm, spd_raw_data spd_data);
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 6316748b85..b3a5ccadd5 100644
--- a/src/include/device/i2c.h
+++ b/src/include/device/i2c.h
@@ -100,7 +100,7 @@ static inline int i2c_read_raw(unsigned int bus, uint8_t chip, uint8_t *data,
* [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 759f8f5152..bf6b8e47e5 100644
--- a/src/include/memrange.h
+++ b/src/include/memrange.h
@@ -73,7 +73,7 @@ static inline unsigned long range_entry_tag(const struct range_entry *r)
}
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 @@ static inline void range_entry_update_tag(struct range_entry *r,
/* 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 @@ void memranges_teardown(struct memranges *ranges);
* 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 @@ void memranges_add_resources(struct memranges *ranges,
* 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 c5de9c3fa7..2511537561 100644
--- a/src/include/rmodule.h
+++ b/src/include/rmodule.h
@@ -45,7 +45,7 @@ int rmodule_load_alignment(const struct rmodule *m);
* 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 681ccdd9c7..25594a8de4 100644
--- a/src/include/thread.h
+++ b/src/include/thread.h
@@ -47,7 +47,7 @@ int thread_run(void (*func)(void *), void *arg);
* 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 @@ 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);
+ 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 0105e32320..6b7baaf9fd 100644
--- a/src/include/timer.h
+++ b/src/include/timer.h
@@ -86,7 +86,7 @@ static inline void mono_time_add_msecs(struct mono_time *mt, long ms)
/* 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 @@ static inline int mono_time_cmp(const struct mono_time *t1,
/* 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 95bae77f42..9c277a9293 100644
--- a/src/include/tpm_lite/tlcl.h
+++ b/src/include/tpm_lite/tlcl.h
@@ -28,7 +28,7 @@ uint32_t tlcl_lib_init(void);
* 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 @@ uint32_t tlcl_set_deactivated(uint8_t flag);
* 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 @@ uint32_t tlcl_lock_nv_write(uint32_t index);
* 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.