Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp514217ybt; Wed, 1 Jul 2020 04:01:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhi0YReubIskwOMDO1Fjee8s4pRRp8ELQOnEQ6WPfqICn4+h+fJqOUfSlDjgq51CUS9WzB X-Received: by 2002:a17:906:2681:: with SMTP id t1mr20879799ejc.350.1593601292062; Wed, 01 Jul 2020 04:01:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593601292; cv=none; d=google.com; s=arc-20160816; b=lWx0py5790PqlFoiglMQAG4+L43UMTWFGo9Cs0MTE1i+LqGzbPUYo2e345QNOyK6eR q6CSCTThxu5XlbPZhNyalAh/50Ci8lZDV0AUnZKJSEFNKwWHhrXy7i0zi1WJejQvfYEq C9dcDsVshO/Hh5Lp9Dxdv2ZmTwttv7VE8Pce0nAqEK3k5hB+AmBkp4cmk0ub8n+dAYr8 2aDmgBVgzwF9atBU8Nn3L2aye2dBCqWBvdbcuzbuSxIG/YI9tv8g65r66+8PAmRWI0Od +7/hj2iaVTyjOcKnIQBnGAssUHbLpQqx9hOMlVxTAv+ceonFwUf+dwStq/lBhcp2w+PN WJ/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=fRXdKYlwrjr6juGt//aPmtTYIDZvg0P7P80567egKZo=; b=YScMh4cEn+z7QNtTBVolOCziJj4eKUglm7oW4UlpCnCpC8Vb+K6aoPiCWOMss+Qt9K 821hWTZcULAdh8EM+DjaTAp2oX0JAQW/taMnsDBY4TNNOyq7RPxTkNfacQDNTEsY/bkZ YpsLvHNwMaptYDbboJ8cVW12+5WtLiWeZdW7QkwTY3X+6yRldGLM3DxaK69KYzATH7Q3 pyjrb5OM1LFSYgb8W0/8UwF3xo6sxjbgNFlCxztUeXkB34nWFGSX9uz7MCHfKIFohIXW wMp6pk8VvRMvkUDMXPOJOOZSvTKdYyQ8lB6/HfLNrPAfPHQ4eSlZALZFzEtaboZIBzKE 0evw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id om22si3519842ejb.117.2020.07.01.04.01.08; Wed, 01 Jul 2020 04:01:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730182AbgGAK74 (ORCPT + 99 others); Wed, 1 Jul 2020 06:59:56 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:44263 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729952AbgGAK7y (ORCPT ); Wed, 1 Jul 2020 06:59:54 -0400 Received: from mail-qk1-f172.google.com ([209.85.222.172]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPSA (Nemesis) id 1MX00X-1jJlrc1O4f-00XNgi; Wed, 01 Jul 2020 12:59:53 +0200 Received: by mail-qk1-f172.google.com with SMTP id b185so11099342qkg.1; Wed, 01 Jul 2020 03:59:53 -0700 (PDT) X-Gm-Message-State: AOAM530Pr/UXhWxrak0xcyWKXpgviCxTN2Ym+CC6qF5QsdfyfmpMhbB7 mhKw92z5GP6pJ81JM6DVJpcoLt6vacvS37TqvC8= X-Received: by 2002:a37:9dd6:: with SMTP id g205mr25404833qke.352.1593601192134; Wed, 01 Jul 2020 03:59:52 -0700 (PDT) MIME-Version: 1.0 References: <20200630173734.14057-1-will@kernel.org> <20200630173734.14057-19-will@kernel.org> <20200701101922.GC14959@willie-the-truck> In-Reply-To: <20200701101922.GC14959@willie-the-truck> From: Arnd Bergmann Date: Wed, 1 Jul 2020 12:59:36 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 18/18] arm64: lto: Strengthen READ_ONCE() to acquire when CLANG_LTO=y To: Will Deacon Cc: "linux-kernel@vger.kernel.org" , Sami Tolvanen , Nick Desaulniers , Kees Cook , Marco Elver , "Paul E. McKenney" , Josh Triplett , Matt Turner , Ivan Kokshaysky , Richard Henderson , Peter Zijlstra , Alan Stern , "Michael S. Tsirkin" , Jason Wang , Boqun Feng , Catalin Marinas , Mark Rutland , Linux ARM , alpha , virtualization@lists.linux-foundation.org, Android Kernel Team Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:g7I2hYYZ2lCZFQ7sbdyRHfQy91HD0wtoFaGz8CBa/Dg3GlDiMEM 0cDVsVCv/r0iOiUjFafyiLdI5VLmh3fb/4xtPl3rqxU4Dq9aAR/IVIxpZ8dTcS7JK3zGJBL MG2nTNgHBZNK1wJn0HRu5jLzBpCpkelS2+hqD9/5VgKCl8oaxz3X28Hcrvwu6vhZHbCE7Ax YdMUmUdrpIWPZtf4pB2+A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:4DwWKkZ8m/I=:B55ukcCg0k7NW87sDOEGI4 ezfpNvn78XuzW/zJHkxhecufP7cmEd/Gl6VvKI96SgL/jjGAnD9G4VS7MAbL8DSd2MxlI29Jm pOgFyhsNXhAtoj7ENFbNNyXhj1XNN6d4DvI4+ZW3Yv08i8recA9aME7Vrtl0fSEnjUfCXlJ5J SYliPHA42Gx4R2DGnTELryvEoppMkIsH1ZSBFvM5pFGtyufvui+5w8k+5ELZ1W4qOJWz1NcRx /sgEwy5+TvtUTB/ZSMeTIwZ4mGVs52rW/OhwSeK+QV8Crg8yqtHFdhAGNCtoPAStpN4pctJhB se5V+o9cUGyLZFoxBO2F7eXJtk85pVY8LuTygSa5Kf5pNmwLZX/HhKbQuK21MOt9oQCGPHqwQ 4NHC7/vbLc7ss525ziNJGxYJK5ePR8VdUEoqHa47zwqKEeR8OfYWMToshuvjnQcfNLecDtxeY p+oqSuKNyjkuyLtcyETqiyYzuUrNqgxPUq3SppAG04lsYFdAAYNMyavQ1zNhpGE8OKcOxELIo enuXtU++MpzFPDHXwbx66ECu7o2SacgzWZQcQmEG4CGsH+MB3HkhpnCKMnrToEbkn2uADHHIe DdgS7Vc1cTZcR/h75pQmF8cdr2Vi+YR0EBxsL2Ke5xp8G+fLIUGjbuIMo7CwxKCfzxPoPanvP iaD6bT+eDDzvrdijwabmzRXCoV5inzrcNEZoSVK7wQA/c2X/4tVbvEGg5+meuO0Sv3fO17YH0 V0052JR0LleOOUQW0lk/D1getQWpdr7hdsBN7fvMuqlcpO/FRd4VzThCQ1G1nFwwZB8z/tvps rWlfjq+Cc3wfr1uZ/c2o7/0Tn7OzaGcEhD/ZpHjmJ9BiS/o+60= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 1, 2020 at 12:19 PM Will Deacon wrote: > On Tue, Jun 30, 2020 at 09:25:03PM +0200, Arnd Bergmann wrote: > > On Tue, Jun 30, 2020 at 7:39 PM Will Deacon wrote: > > Once we make gcc-4.9 the minimum version, > > this could be further improved to > > > > __auto_type __x = &(x); > > Is anybody working on moving to 4.9? I've seen the mails from Linus > championing it, but I thought there was a RHEL in support that people > might care about? I don't think there was a serious discussion about it so far, and we only just moved to gcc-4.8. I think moving to gnu11 (gcc-4.9 or clang) instead of gnu99 has other benefits as well, so we may well want to do it anyway when something else comes up. For __auto_type(), we could do it like #if (clang or gcc-4.9+) #define auto_typeof(x) __auto_type #else #define auto_typeof(x) typeof(x) #endif which could be used in a lot of macros. Arnd