Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp813254imu; Wed, 9 Jan 2019 06:52:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN4YBl4eoiMbXWoMpiJCL2UAsYGPRZDSLvUuNQbFSgZDS8MpfSiGHgD4sTV5R2yb1B3ufQDk X-Received: by 2002:a63:4926:: with SMTP id w38mr5422418pga.353.1547045543738; Wed, 09 Jan 2019 06:52:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547045543; cv=none; d=google.com; s=arc-20160816; b=AvLs8t083mUavR4/02lHqL+cZYejD2ODzm8FGjnQUsmtqy3S5I/yZGoUO1LrTk8co1 6UqWqPLEnUw7W7uQWJEKttMup9XD5ohVsI7j6gsNFO4NPd7P98DmEYON8tT+XLxc0/ky np1ILUcbs6/LMJsdszZpG6lZb2n66WKksq2APEdEU+xUeD6fi3bvGWYxW9monoPcR28L gyDj8Rh30RZv9l3CKhAe3lNdmR1rxeHCM2Yi72tVNtjnktleNUQxNorbns12dJ3DaerV WEt8crdB7Od6xpDW4+j8LqFx6PGpKJqDq8BzhSz2yW62sz6wk+6xj6/MJD5UcEnnFH14 lMcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=MeEkOk8TpQqGKcpNxHreH4XdDCaI2H4NmQhFTmngjOA=; b=ND2RMZrWYr45SRQNdoGbrhD0YdxWMqyUteNt8YAgJ7mbyx89se7ket16zOOv4B/f0q zLtFUCFUHF94rytfn/YYvn2A+/cn9bV4FPZNJ3zqOLxtCuco55EHkSCOfeaWMRVYkaEk JDYc5EYF1G7iowUzAgU1bIQ35NMUIKyPkjpx/QBM8l+Y71slL8x3JijVImUhJI8BFig4 7zZoOXpVn+ZkEkQFMyoIeZrO6jZdLxbw3P4A7ME1S+V2SqGMJ27cC5NMguKTvPvo5NN8 379fvjCC8HYNlskOLZrllgSPwwb05BARtOclr7IKtcPCSc4GaMIJ3Ek2bCSRiSFvHyEU Eu3w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cc17si50066909plb.265.2019.01.09.06.52.08; Wed, 09 Jan 2019 06:52:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732122AbfAIOuY (ORCPT + 99 others); Wed, 9 Jan 2019 09:50:24 -0500 Received: from mx1.redhat.com ([209.132.183.28]:59508 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732083AbfAIOuS (ORCPT ); Wed, 9 Jan 2019 09:50:18 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 827E3CD263; Wed, 9 Jan 2019 14:50:17 +0000 (UTC) Received: from redhat.com (ovpn-123-72.rdu2.redhat.com [10.10.123.72]) by smtp.corp.redhat.com (Postfix) with SMTP id 63AF23DA7; Wed, 9 Jan 2019 14:50:12 +0000 (UTC) Date: Wed, 9 Jan 2019 09:50:11 -0500 From: "Michael S. Tsirkin" To: Miguel Ojeda Cc: Nick Desaulniers , LKML , Jason Wang , Alan Stern , Andrea Parri , Will Deacon , Peter Zijlstra , Boqun Feng , Nicholas Piggin , David Howells , Jade Alglave , Luc Maranget , "Paul E. McKenney" , Akira Yokosawa , Daniel Lustig , linux-arch@vger.kernel.org, Network Development , virtualization@lists.linux-foundation.org, Eli Friedman , Joe Perches , Linus Torvalds , Luc Van Oostenryck , linux-sparse@vger.kernel.org, Eric Christopher Subject: Re: [PATCH RFC 1/4] include/linux/compiler*.h: fix OPTIMIZER_HIDE_VAR Message-ID: <20190109094959-mutt-send-email-mst@kernel.org> References: <20190102205715.14054-1-mst@redhat.com> <20190102205715.14054-2-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Wed, 09 Jan 2019 14:50:18 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 09, 2019 at 11:35:52AM +0100, Miguel Ojeda wrote: > On Tue, Jan 8, 2019 at 6:44 PM Nick Desaulniers wrote: > > > > Also for more context, see: > > commit 7829fb09a2b4 ("lib: make memzero_explicit more robust against > > dead store elimination") > > By the way, shouldn't that barrier_data() be directly in compiler.h > too, since it is for both gcc & clang? > > > Reviewed-by: Nick Desaulniers > > > > + Miguel > > Miguel, would you mind taking this into your compiler-attributes tree? > > Sure, at least we get quickly some linux-next time. > > Note it would be nice to separate the patch into two (one for the > comments, another for OPTIMIZER_HIDE_VAR), and also possibly another > for barrier_data(). > > Cheers, > Miguel Okay, I will try. -- MST