Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1426385imu; Wed, 9 Jan 2019 18:38:14 -0800 (PST) X-Google-Smtp-Source: ALg8bN5f6p3PhXl8kkYanYRJyQK93SdGLrL/u+mfwxwxqZSa876xk69z7HtJa+Rliisucjj5/PPb X-Received: by 2002:a62:1212:: with SMTP id a18mr8703178pfj.217.1547087893940; Wed, 09 Jan 2019 18:38:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547087893; cv=none; d=google.com; s=arc-20160816; b=d/rzESjUy0TpsEF6KPD3esbfE20+NhkkmM10dpL6mq83jq9NP1vYNI3JlABrwOp8FU 5RMogOLiexwJ9K3Da+zwJtbeiToj/J/Ui7lV6//eqCn9C14k3eQlZoUoWB7T3iw1366G ac6y5zMnIEZEgwYnv37f8FYUSaEavkNxyR04o9wvdG7Zod2WoUm9BHy3u4gXPto2hwkT dEnaRqv53ptsJj6KEnxQKrDCPwRGNwySY/oP9KC3t4WnYINNHQS9m10bf6ZdHraZUMtm tf/mWSPbsz1BQebYCIWthjgatR66VfKykcMRza+Ft08KNDdudxppyKLVx3klJGRAK38q 9t5g== 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=l0bXTYWeefhm5PurN38bTlASmLbtGhMzFFnRkOrwcPw=; b=XnpSCOAF7RQ1QP91loSoBKDkcCQ8pA7Dg2qc7rUEgDjpT9zi71GB3eByuWb+WokseY 0UV7OXRlp4CbJbnZmV9x7lE4IdLW9LzbMDlP7if3GGm/IgAn9KKuqgQHsMk1imtuqaHK FFej8uXAR59f/Vo7RJhk+xeFLAgKWDg1Pc+K+XkMilOw4xtOXbZeFSXVYqHNIXLNj/Vf yzhO65yJnVYF2us+DqBAlvZdul/w1JI++icvvrXYtPlZS9LIkF1Vvqe3f+wM103q9wFp crFodSMZV0FrikB8sOgbA8mOF+SLqHUd3sVqOyP5tDwJc3BbK2JI73iIAOS8DZV6bDmk z2AQ== 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 m187si17288963pfm.51.2019.01.09.18.37.57; Wed, 09 Jan 2019 18:38:13 -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 S1726955AbfAJCgs (ORCPT + 99 others); Wed, 9 Jan 2019 21:36:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48412 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbfAJCgs (ORCPT ); Wed, 9 Jan 2019 21:36:48 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 376549B288; Thu, 10 Jan 2019 02:36:46 +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 BF2D42921F; Thu, 10 Jan 2019 02:36:41 +0000 (UTC) Date: Wed, 9 Jan 2019 21:36:41 -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: <20190109213543-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.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 10 Jan 2019 02:36:48 +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. BTW why linux-next? shouldn't this go into 5.0 and stable? It's a bugfix after all. > 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