Skip to content

Commit

Permalink
x86: suppress sparse returning void warnings
Browse files Browse the repository at this point in the history
include/asm/paravirt.h:1404:2: warning: returning void-valued expression
include/asm/paravirt.h:1414:2: warning: returning void-valued expression

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Harvey Harrison authored and Ingo Molnar committed Jul 18, 2008
1 parent 2fb5e1e commit 3217256
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/asm-x86/paravirt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1401,7 +1401,7 @@ static inline int __raw_spin_is_contended(struct raw_spinlock *lock)

static __always_inline void __raw_spin_lock(struct raw_spinlock *lock)
{
return PVOP_VCALL1(pv_lock_ops.spin_lock, lock);
PVOP_VCALL1(pv_lock_ops.spin_lock, lock);
}

static __always_inline int __raw_spin_trylock(struct raw_spinlock *lock)
Expand All @@ -1411,7 +1411,7 @@ static __always_inline int __raw_spin_trylock(struct raw_spinlock *lock)

static __always_inline void __raw_spin_unlock(struct raw_spinlock *lock)
{
return PVOP_VCALL1(pv_lock_ops.spin_unlock, lock);
PVOP_VCALL1(pv_lock_ops.spin_unlock, lock);
}

#endif
Expand Down

0 comments on commit 3217256

Please sign in to comment.