Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10995802rwd; Thu, 22 Jun 2023 07:30:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6WXOvOTyH7TThni/TquU4Vm/WC6z3aED86oCW7OoxQ4ifP3pYHg4Nb2Gfp9z8zsv21sCkn X-Received: by 2002:a05:6808:1706:b0:3a0:5e17:4311 with SMTP id bc6-20020a056808170600b003a05e174311mr1984266oib.5.1687444214830; Thu, 22 Jun 2023 07:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687444214; cv=none; d=google.com; s=arc-20160816; b=ZF4CBxcQ//uAY6G6x66oOqYkSTs02BlfaxwrVsLYSSt9UWMvEWBqgGmK3EC/aU9rVN 2jOXeQbbOsteVW5NMsrdfVGfSe32ZTPN4RNLYvNtqbvVyZz54VZ7FK/KONQE5PWMUNN6 oek1F+F7Bv1bJONZFNANZfHcumnP5Ov3vfDlIXXiszFNofdLs/1Ojk3+3KYXfYv01Sp5 kWhUkdkOiIX13vD13p0KayrPmp5swbbOz3xG/A3bLMkiW0Qg5PAVBvPtFkIP3Nd8HJhf DDktUeQd5BmAXMNLYcOoAr9WXM8GLYxGmT9lSrgcwEgsMtyM6tqe0hFBN072HMvk7V+J yFCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=17ROMJ1GIJ8ijujrwt52NMYKkh2qRu9wt3g9pTd44yQ=; b=bCHiHyfL+iHh6DcLnA4cHmmQ81225jkYYnbK6V9oF9BOlEn/S30Lw3PlkPJJVwQFgL OXR33frDJK+Ws1fw4iT8mJCYWpZ20aIKNbA+TqMA+mJIkZmaPhndf4rLtX5Wv1PdX/2Y /XbboJnukXLZUWDr8UKxKhrtCsYMyY3US8jrjL93MFSYlfbUx4FYrk6/9FbHP4wyoMrp zYCO0cFD3Bp1k3r5+i4P+/2LfT2a675kLsUC6moQP3OHReAPhVNSwy+yawJru+tDYizY k/yDUxT87YFWJiVMJ0QVAzZJd/F5LaB74yvSr3RNpLGQoNuqQ6jnWQET3DhlKTp7+dIu w7Aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a656944000000b00553b9b18884si6779814pgq.585.2023.06.22.07.30.00; Thu, 22 Jun 2023 07:30:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231486AbjFVONu (ORCPT + 99 others); Thu, 22 Jun 2023 10:13:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58650 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230314AbjFVONs (ORCPT ); Thu, 22 Jun 2023 10:13:48 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D13D9E2; Thu, 22 Jun 2023 07:13:43 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8Bx28YVV5Rk8XMAAA--.773S3; Thu, 22 Jun 2023 22:13:41 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxJ80TV5RkZSsCAA--.10045S2; Thu, 22 Jun 2023 22:13:40 +0800 (CST) From: Tiezhu Yang To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-riscv@lists.infradead.org, loongarch@lists.linux.dev, linux-arch@vger.kernel.org, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH v3 0/2] Unify uapi bitsperlong.h Date: Thu, 22 Jun 2023 22:13:37 +0800 Message-Id: <1687443219-11946-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8DxJ80TV5RkZSsCAA--.10045S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBj93XoW7ZF4rXFy3Kr4UKF17tr45CFX_yoW8tr15pF 93ArnxWF45CrWay3yrJa40qryUA397Gr4jgay2qry8XrWIvF1UGrsY9rs3Ca47GayUXFn5 uF9xGry5Ga1DK3XCm3ZEXasCq-sJn29KB7ZKAUJUUUU5529EdanIXcx71UUUUU7KY7ZEXa sCq-sGcSsGvfJ3Ic02F40EFcxC0VAKzVAqx4xG6I80ebIjqfuFe4nvWSU5nxnvy29KBjDU 0xBIdaVrnRJUUUk2b4IE77IF4wAFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2 IYs7xG6rWj6s0DM7CIcVAFz4kK6r106r15M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48v e4kI8wA2z4x0Y4vE2Ix0cI8IcVAFwI0_Jr0_JF4l84ACjcxK6xIIjxv20xvEc7CjxVAFwI 0_Jr0_Gr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVCY1x0267AK xVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx 1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv 67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2 Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s02 6x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43MIIYrxkI7VAKI48JMIIF0x vE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE 42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6x kF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxU7XTmDUUUU X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v3: -- Check the definition of __BITS_PER_LONG first at the beginning of uapi/asm-generic/bitsperlong.h v2: -- Check __CHAR_BIT__ and __SIZEOF_LONG__ rather than __aarch64__, __riscv, __loongarch__, thanks Ruoyao -- Update the code comment and commit message v1: -- Rebase on 6.4-rc6 -- Only unify uapi bitsperlong.h for arm64, riscv and loongarch -- Remove uapi bitsperlong.h of hexagon and microblaze in a new patch Here is the RFC patch: https://lore.kernel.org/linux-arch/1683615903-10862-1-git-send-email-yangtiezhu@loongson.cn/ Tiezhu Yang (2): asm-generic: Unify uapi bitsperlong.h for arm64, riscv and loongarch tools arch: Remove uapi bitsperlong.h of hexagon and microblaze arch/arm64/include/uapi/asm/bitsperlong.h | 24 ------------------- arch/loongarch/include/uapi/asm/bitsperlong.h | 9 -------- arch/riscv/include/uapi/asm/bitsperlong.h | 14 ----------- include/uapi/asm-generic/bitsperlong.h | 13 ++++++++++- tools/arch/arm64/include/uapi/asm/bitsperlong.h | 24 ------------------- tools/arch/hexagon/include/uapi/asm/bitsperlong.h | 27 ---------------------- .../arch/loongarch/include/uapi/asm/bitsperlong.h | 9 -------- .../arch/microblaze/include/uapi/asm/bitsperlong.h | 2 -- tools/arch/riscv/include/uapi/asm/bitsperlong.h | 14 ----------- tools/include/uapi/asm-generic/bitsperlong.h | 14 ++++++++++- tools/include/uapi/asm/bitsperlong.h | 6 ----- 11 files changed, 25 insertions(+), 131 deletions(-) delete mode 100644 arch/arm64/include/uapi/asm/bitsperlong.h delete mode 100644 arch/loongarch/include/uapi/asm/bitsperlong.h delete mode 100644 arch/riscv/include/uapi/asm/bitsperlong.h delete mode 100644 tools/arch/arm64/include/uapi/asm/bitsperlong.h delete mode 100644 tools/arch/hexagon/include/uapi/asm/bitsperlong.h delete mode 100644 tools/arch/loongarch/include/uapi/asm/bitsperlong.h delete mode 100644 tools/arch/microblaze/include/uapi/asm/bitsperlong.h delete mode 100644 tools/arch/riscv/include/uapi/asm/bitsperlong.h -- 2.1.0