diff options
author | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-08 16:34:12 -0800 |
---|---|---|
committer | Lee Leahy <leroy.p.leahy@intel.com> | 2017-03-09 17:24:17 +0100 |
commit | 75b859978a6b1901301f4ee0b53de84d3d83bd0a (patch) | |
tree | 1598ea4583355b52a86c71c471993e700b2f1ef2 /src/lib/thread.c | |
parent | eaee1d8a5f6a5a70f7bdf10825e047c0529d5157 (diff) | |
download | coreboot-75b859978a6b1901301f4ee0b53de84d3d83bd0a.tar.xz |
src/lib: Add "int" following "unsigned"
Fix the following warning detected by checkpatch.pl:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
The remaining 37 warnings in gcov-io.c and libgcov.c are all false
positives generated by checkpatch detecting a symbol or function name
ending in _unsigned.
TEST=Build and run on Galileo Gen2
Change-Id: I9f1b71993caca8b3eb3f643525534a937d365ab3
Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com>
Reviewed-on: https://review.coreboot.org/18695
Tested-by: build bot (Jenkins)
Reviewed-by: Philippe Mathieu-Daudé <philippe.mathieu.daude@gmail.com>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/lib/thread.c')
-rw-r--r-- | src/lib/thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/thread.c b/src/lib/thread.c index 75d0cfc0e7..c2504823b9 100644 --- a/src/lib/thread.c +++ b/src/lib/thread.c @@ -228,7 +228,7 @@ static void idle_thread_init(void) /* Don't inline this function so the timeout_callback won't have its storage * space on the stack cleaned up before the call to schedule(). */ static int __attribute__((noinline)) -thread_yield_timed_callback(struct timeout_callback *tocb, unsigned microsecs) +thread_yield_timed_callback(struct timeout_callback *tocb, unsigned int microsecs) { tocb->priv = current_thread(); tocb->callback = thread_resume_from_timeout; @@ -337,7 +337,7 @@ int thread_run_until(void (*func)(void *), void *arg, return 0; } -int thread_yield_microseconds(unsigned microsecs) +int thread_yield_microseconds(unsigned int microsecs) { struct thread *current; struct timeout_callback tocb; |