Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp17769ybt; Tue, 30 Jun 2020 13:54:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyVOlnPh170p+tealVdnHiGLeAPccIhL2enxPw2AJuTu+05PwSvMpWcQBDSgzucM1kcaNjl X-Received: by 2002:a17:906:2cd5:: with SMTP id r21mr19209145ejr.20.1593550140375; Tue, 30 Jun 2020 13:49:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593550140; cv=none; d=google.com; s=arc-20160816; b=BdAPzyqd3Q7UzkNuACDCkRHMVVv2QLCQJmwg1EY8xLA7wStXp7hNR1uCxrMxTkqcBj RRjKtRwoMzl32kPIU9WhAVmGtVuAnkOr3qF1zwBpE2zJnmbMmvlU3THldJFzdoK4aq/X FHzgDROX7N4mrRBMKidlIYoaP36k7l/mWEC1FNDI6HsjcwURYZtR5AEqR5mm+e5Kxmpm rqqww5/QHamFt/PrpqudQEnijS6G6OduHa+NYNb8YImogXq+cuoOuNwP7HPo+VUEklvw Dhju0mk7VYcFMwsgrv3mRVhbJdIr2U9/xm5XAHPX5rrb9Jty9/EyqBdIOOeahr80m2eV P97Q== 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=/2kPnBDJcjY0GNnNiI2iPt4lUG4hzqUdeMc9wMMDm4c=; b=NZe3YAiomcPOadI5aSL3jmHu6SD221nUni++TaZuWHZGysEhdLW9o6UssmyOncaNGv s6HpSBldF5pYJrlF8ZYhFfRFajhzl9IeSTx8ySol4/7MGd/oGtSK1V0WAydWt3e5Zq4v 58/HD8iCrHu6u7WSt+TK6zYQ1xeQDH65fTpLKhH7n6oZFJZh94kCrv16CzXxwAYynJfE wSIgk4S8OIKQCqcR35QaJ8fIo5wNbjCUrYkol5yNynDUbR/IdA3q6cEbo3+cDpH2VGu4 V2jFGdhn0g8s9JRYPttrc26kQXmY9c14Gi/Z40ZUILwEKjg7ilbH0PqVvc45VwZIDlba b3GA== 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 dp17si3099882ejc.285.2020.06.30.13.48.37; Tue, 30 Jun 2020 13:49:00 -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 S1726700AbgF3TLw (ORCPT + 99 others); Tue, 30 Jun 2020 15:11:52 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:52685 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbgF3TLv (ORCPT ); Tue, 30 Jun 2020 15:11:51 -0400 Received: from mail-qv1-f49.google.com ([209.85.219.49]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPSA (Nemesis) id 1MauFB-1jDymc2bnf-00cU4W; Tue, 30 Jun 2020 21:11:49 +0200 Received: by mail-qv1-f49.google.com with SMTP id e3so3479829qvo.10; Tue, 30 Jun 2020 12:11:49 -0700 (PDT) X-Gm-Message-State: AOAM532tWlQGGtiLhBMJs2XEsARZS2BVbCoeRzEIL1e5ypc4cfTz7vDu t/w4RhvExJnp4KMu8Mt/1P7ZURTpacmGBOKR3Fk= X-Received: by 2002:a05:6214:846:: with SMTP id dg6mr20327019qvb.210.1593544308407; Tue, 30 Jun 2020 12:11:48 -0700 (PDT) MIME-Version: 1.0 References: <20200630173734.14057-1-will@kernel.org> <20200630173734.14057-3-will@kernel.org> In-Reply-To: <20200630173734.14057-3-will@kernel.org> From: Arnd Bergmann Date: Tue, 30 Jun 2020 21:11:32 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 02/18] compiler.h: Split {READ,WRITE}_ONCE definitions out into rwonce.h 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:LnFDDIjRuXDckRiBaZGfmiG7HaTrrU39Wjww08d3sBPpTh0bBiC R18dhZQINNcBZ60ocsHkZQTFVn5tMd7QDCWiaBczDXRBCaIJYO2+OSoII+r0REMFq66/K1L JrRxCeJARV3JI27LVClu+VT9mpBekIzD1BccLbfV033oyigdtOGqzvrUfNDxQzH6vHslkIw lzDlRev00L4nSdR0SKE1g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:C8esC7patGM=:rsYR3CSmcrTZb51jltms7E po6GEFUweLiWLa6MnwKz6jP1OvSdinAWuRgL4RxGqEjTcIUqnIZtM9zZ8N5rlkYImj2FVoD1u DmCgeGWYe8RYHp8F2FOvsw44SD4KEEU2CuYPn1z7ob4JIC0iN5g3NPGAmdS6pbfgq9rPTCmfr G/ddu0SYVF1xX7fhdgkpxA1H8GpGJabJYFMXu/2NDCUk3LSaAjkkVuh5/L1kUgQmv8LiQoHqq 2LfkIooHR3zbPRDj6VvPw5z748NrIo8ZIsnYlKql+I8FTl6FYhemIZ8sDbwz5LqWbRod/u3F5 1IBJyjRgeC/7ISLQSSJZRX/yARVVmpMNPMyoPGUohK7Pnb3bFP6md/u7B/nXn2qyhht1NxC1w vE0vWzuFbRK9JzEAEIszGHDOX+QEMG8xDtPDAqyFpdSySWcgrJ9+NTCZoluVO7sO3ZibJTAwv /ymcT4QaME2TufvzqfhIDfSPjbniAZXLl6vvaOr0scExlP216N/eIU1bsZ7oxLppWcnZjzQ1d tD8BklSxYbvCyMjPl6WjHjA9cBNlYTVR6qyjQjVT4dQ1/0SFDLYXKzDglb9WPTw4vzRx9Iw97 fZlVMA6tVeZm2ruZWTWpDlDUzrbWk4kKVtI/Lub0lUpE9T/3vfGKWlpRxPRIXZrY+HDJADtr9 Tbb27S5WPrZJwTUTzEMLtrUz9gilecIsnLmYJI/L4SudOR1NnU2/AsdX0bB5spWf8HZ0SJCZc JlYtUxUKOk19jiVdO7wf+DXqGJ6VPrhajSLSZn4Vcvhfx+cDR8dlfCBU02D91pglFtBgNIkPX T3c54PQc87+m0oiZtyuWd4k7cPYZQrgc2yd7vllilybPnTROJ4= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 30, 2020 at 7:37 PM Will Deacon wrote: > > In preparation for allowing architectures to define their own > implementation of the READ_ONCE() macro, move the generic > {READ,WRITE}_ONCE() definitions out of the unwieldy 'linux/compiler.h' > file and into a new 'rwonce.h' header under 'asm-generic'. > > Acked-by: Paul E. McKenney > Signed-off-by: Will Deacon > --- > include/asm-generic/Kbuild | 1 + > include/asm-generic/rwonce.h | 91 ++++++++++++++++++++++++++++++++++++ > include/linux/compiler.h | 83 +------------------------------- Very nice, this has the added benefit of allowing us to stop including asm/barrier.h once linux/compiler.h gets changed to not include asm/rwonce.h. The asm/barrier.h header has a circular dependency, pulling in linux/compiler.h itself. Arnd