From 0ca2a0654ca4b403e8a54d558bce07a862820a9d Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Mon, 6 Mar 2017 18:01:04 -0800 Subject: src/include: Fix unsigned warnings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix warning detected by checkpatch.pl: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' BRANCH=none BUG=None TEST=Build and run on Galileo Gen2 Change-Id: I23d9b4b715aa74acc387db8fb8d3c73bd5cabfaa Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/18607 Reviewed-by: Philippe Mathieu-Daudé Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel Reviewed-by: Martin Roth --- src/include/thread.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/include/thread.h') diff --git a/src/include/thread.h b/src/include/thread.h index 62f14c2c62..681ccdd9c7 100644 --- a/src/include/thread.h +++ b/src/include/thread.h @@ -50,7 +50,7 @@ int thread_run_until(void (*func)(void *), void *arg, 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 microsecs); +int thread_yield_microseconds(unsigned int microsecs); /* Allow and prevent thread cooperation on current running thread. By default * all threads are marked to be cooperative. That means a thread can yield @@ -74,7 +74,10 @@ void arch_prepare_thread(struct thread *t, #else static inline void threads_initialize(void) {} static inline int thread_run(void (*func)(void *), void *arg) { return -1; } -static inline int thread_yield_microseconds(unsigned microsecs) { return -1; } +static inline int thread_yield_microseconds(unsigned int microsecs) +{ + return -1; +} static inline void thread_cooperate(void) {} static inline void thread_prevent_coop(void) {} struct cpu_info; -- cgit v1.2.3