From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932109AbcGGWUV (ORCPT ); Thu, 7 Jul 2016 18:20:21 -0400 Received: from mail-lf0-f46.google.com ([209.85.215.46]:33953 "EHLO mail-lf0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751926AbcGGWUN (ORCPT ); Thu, 7 Jul 2016 18:20:13 -0400 Date: Fri, 8 Jul 2016 01:20:08 +0300 From: Alexey Dobriyan To: akpm@linux-foundation.org, peterz@infradead.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] make WRITE_ONCE return void Message-ID: <20160707222008.GE31678@p183.telecom.by> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Currently WRITE_ONCE is used as if it returns void. Let's codify this before somebody tries to be smarter than necessary. Signed-off-by: Alexey Dobriyan --- include/linux/compiler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -301,7 +301,7 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s union { typeof(x) __val; char __c[1]; } __u = \ { .__val = (__force typeof(x)) (val) }; \ __write_once_size(&(x), __u.__c, sizeof(x)); \ - __u.__val; \ + (void)0; \ }) /**