Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6512698ybi; Wed, 5 Jun 2019 02:03:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqwJALpNY1gqLO3FUgAgZMtKnkl02e+1f3iX0829JO34CgQe6qy+dfyLZwexofTL2C0zNAZ1 X-Received: by 2002:a17:902:ac81:: with SMTP id h1mr36674241plr.129.1559725435609; Wed, 05 Jun 2019 02:03:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559725435; cv=none; d=google.com; s=arc-20160816; b=pNHKzR1JIxUyaVPfHy15zlVYAvq+9A/jXs4EwLU8rxVudS1H4Mftd+ywruiVmFq+/7 ZlzuNY7kiN7HWlaTzMh54RZ/4zUwHde6Q5i5n7skuNO3o3Bk2ywBkO2cTGsvzj6q/8BU 0hDI8CW9GLTQLHnpgybjtw43kc64JbbVBq1FZ/Grccc/i9T1m1hgu0Wj48DEoGLKLyAR czOir5uVKPHp5uqWg+x3TlBaWuDDLiTTIKjDqKh2DZ0XKI6ISzOEDsoFhHCJHL7nBR5M f+HJt0XFeXfaazyOj7/uZi/KfVUJ4p9rIoaNVxUOm+puIXJ70CW06rNY54iP7cjnA3PV OFAw== 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:dkim-signature:dkim-filter; bh=4heQMOeUYxMT3vJUuhyF+RiSNQYhKDyB7w/dctvl+6E=; b=XT9RLSf/3TmnVfLCu3zSAu0n3MOnC7u61gQlu+coezAHZ9G4FqiA6vk9ot1Tx/2Ccv dmDLq4pJSklMF1Jw8ZTgZtFmey3D2dtcPTD61HMcoDBgYd/+c2Qg+jwdcGCUgcgrsKNO TkRZT9k3G9Q7uB+O5iWSpItdd7TVci3IWYMVxK579Z0tSQKisZMoY5JYq8reEPalTFvM ejKsKzb/zEsMiQBDD/AFPcshpMAQ7/LHf9lrHGWGGhsKI9PLtXgwGiZwSdB09y6i8PEE mAYXR0sqTl9VTzUpZKV83nV/8P5HYxIVjQ5m26XrY1pD0p8A/YQ5dUdVEeS1fuPsVxXf uO+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=SeI7bF0L; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si26603555pgb.109.2019.06.05.02.03.37; Wed, 05 Jun 2019 02:03:55 -0700 (PDT) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=SeI7bF0L; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726930AbfFEJCB (ORCPT + 99 others); Wed, 5 Jun 2019 05:02:01 -0400 Received: from conssluserg-02.nifty.com ([210.131.2.81]:33750 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726690AbfFEJCA (ORCPT ); Wed, 5 Jun 2019 05:02:00 -0400 Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) (authenticated) by conssluserg-02.nifty.com with ESMTP id x5591lT9005012 for ; Wed, 5 Jun 2019 18:01:47 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com x5591lT9005012 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1559725310; bh=4heQMOeUYxMT3vJUuhyF+RiSNQYhKDyB7w/dctvl+6E=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=SeI7bF0L1HMB9F7KCilotuNHnv6pAioBe2+XH9Wot6g3YTSYtxcXsgGs9wTnofC7F 6X82w/+oQEUy/Pw9qRwu425DyqOkivFKHjcmREbVm5h4r4uHFMVqCH6fn0brIwQZ1s TcRUCieJT+TcxLo557uJHEFg4ZLxi0KChwSxPMc9522Jquf0Rn8shMN8/Pq454faGc 5PpP0oj43dLvVfzYn2z2s7cUBDoYTq3ULOyqQdXezk2cI/iujdYj0s6LeXuaqmRijV 9qoGOFEFHPMx3eDyddYtimoLAHMBjitMuFmkoS3WjYHUSRarVtQE4YcEXZQma1vFpo BKzGifODKgDZA== X-Nifty-SrcIP: [209.85.217.41] Received: by mail-vs1-f41.google.com with SMTP id d128so15227850vsc.10 for ; Wed, 05 Jun 2019 02:01:47 -0700 (PDT) X-Gm-Message-State: APjAAAWVOUhk2kXtGlWUyxH1IMv6kKW32Tz7AKmJf7sgqRYZK3S51dEk YcHidyxDmUcRqeXAe1nKqPuMhlSUojbxPw7h+P4= X-Received: by 2002:a67:7fcc:: with SMTP id a195mr443645vsd.181.1559725306637; Wed, 05 Jun 2019 02:01:46 -0700 (PDT) MIME-Version: 1.0 References: <20190527083412.26651-1-yamada.masahiro@socionext.com> <20190605073406.geesp3rbrxajmac6@mbp> In-Reply-To: <20190605073406.geesp3rbrxajmac6@mbp> From: Masahiro Yamada Date: Wed, 5 Jun 2019 18:01:10 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/2] Allow assembly code to use BIT(), GENMASK(), etc. and clean-up arm64 header To: Catalin Marinas Cc: linux-arm-kernel , Will Deacon , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 5, 2019 at 4:36 PM Catalin Marinas wrote: > > On Mon, May 27, 2019 at 05:34:10PM +0900, Masahiro Yamada wrote: > > Some in-kernel headers use _BITUL() instead of BIT(). > > > > arch/arm64/include/asm/sysreg.h > > arch/s390/include/asm/*.h > > > > I think the reason is because BIT() is currently not available > > in assembly. It hard-codes 1UL, which is not available in assembly. > [...] > > Masahiro Yamada (2): > > linux/bits.h: make BIT(), GENMASK(), and friends available in assembly > > arm64: replace _BITUL() with BIT() > > > > arch/arm64/include/asm/sysreg.h | 82 ++++++++++++++++----------------- > > include/linux/bits.h | 17 ++++--- > > I'm not sure it's worth the hassle. It's nice to have the same BIT macro > but a quick grep shows arc, arm64, s390 and x86 using _BITUL. Maybe a > tree-wide clean-up would be more appropriate. I am happy to clean-up the others in the next development cycle once 1/2 lands in the mainline. Since there is no subsystem that takes care of include/linux/bits.h, I just asked Will to pick up both. I planed per-arch patch submission to reduce the possibility of merge conflict. If you guys are not willing to pick up them, is it better to send treewide conversion to Andrew? -- Best Regards Masahiro Yamada