The primitive vmci_q_set_pointer() relies on atomic*_set() being of type 'void', but this is a non-portable implementation detail.
Reported-by: Mark Rutland <mark.rutl...@arm.com> Signed-off-by: Andrea Parri <andrea.pa...@amarulasolutions.com> Cc: Arnd Bergmann <a...@arndb.de> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Jorgen Hansen <jhan...@vmware.com> Cc: Peter Zijlstra <pet...@infradead.org> Cc: Will Deacon <will.dea...@arm.com> Cc: Mark Rutland <mark.rutl...@arm.com> Cc: "Paul E. McKenney" <paul...@linux.ibm.com> --- include/linux/vmw_vmci_defs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/vmw_vmci_defs.h b/include/linux/vmw_vmci_defs.h index 0c06178e4985b..eb593868e2e9e 100644 --- a/include/linux/vmw_vmci_defs.h +++ b/include/linux/vmw_vmci_defs.h @@ -759,9 +759,9 @@ static inline void vmci_q_set_pointer(atomic64_t *var, u64 new_val) { #if defined(CONFIG_X86_32) - return atomic_set((atomic_t *)var, (u32)new_val); + atomic_set((atomic_t *)var, (u32)new_val); #else - return atomic64_set(var, new_val); + atomic64_set(var, new_val); #endif } -- 2.7.4