From patchwork Tue Mar 7 07:39:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tiezhu Yang X-Patchwork-Id: 65310 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp2298528wrd; Mon, 6 Mar 2023 23:49:05 -0800 (PST) X-Google-Smtp-Source: AK7set/KuekF50uOGuD9goM7Hv/m++uHmQ69+6AAXvxLq5FAeJH7HGfiN8Dp86c12lNcU3xB0YOr X-Received: by 2002:aa7:8bd6:0:b0:5dc:107f:2e19 with SMTP id s22-20020aa78bd6000000b005dc107f2e19mr12694109pfd.9.1678175345380; Mon, 06 Mar 2023 23:49:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678175345; cv=none; d=google.com; s=arc-20160816; b=qpJ9UNQFUkQTg+jiRGS28X4biZFdN7FBEFcZU3/wtvAbH/LFhx/2rp318VGdmq1BHN DbHVkomCOK2/ghfFRWoXsBVsF5o4Gb3OsFsqbfZRtVdITsh/svI7XXgqAEc/zHIVGevM lSozkrli45t6z1Qn9nPULf+v6OJpNZA5j96sUjs24833Jw+RhZcBmQFgCKaOl2ZB23/P /S7kfkIJvJ+t+sCgZcpqNOHdXiIs9x2zmpAaLaxjQn1WcM0mvh8pWdyoqvx91OYen+aM XlzZ0U6E4g6Rqeqa4KpwaQ1jzFZrTziBYDX0wYXr2DZEGVg6MtY+LvJ3yF0oqgHsBPkL +nHg== 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=6bhXbMdzh5FHPJWQ9GkEc9rNn0qVmpj81jRqGTiTd+c=; b=naQthYOD4cxX9ak/piq1YkGZtpeBLgpAvqRREyfaIGYLm2I3r14Jv4H3g+5QdrHblO 8+JH6AYKBDrTwqenZsI+jSwdvVz0awFK8eW8I0SJhi7swO1k4f9iOMCujvZJ+sYL362e baQVla9ZsZ28Ji4waIP1FmDxr3AIztdwIi989mQHXNo53WGAe1vvNRTHOah2OMwfd0yl LDO3k0kEKZheb4vIK2AVRj792E2paN9IItND1Pgiokd2X2lLzpsiQLur/CtOBtmUkCAJ qGzjBc7v+InVMhWcQ/sgHW8hU1SLxNxijzzF3algbgCPAIj8QY2GwlKTiDq/3bHx6jWx cQwA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a654145000000b00502ece99eb3si11009163pgp.41.2023.03.06.23.48.52; Mon, 06 Mar 2023 23:49:05 -0800 (PST) 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 S230170AbjCGHjG (ORCPT + 99 others); Tue, 7 Mar 2023 02:39:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230062AbjCGHjF (ORCPT ); Tue, 7 Mar 2023 02:39:05 -0500 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 86FD023845 for ; Mon, 6 Mar 2023 23:39:03 -0800 (PST) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8AxUU8W6gZkr0IJAA--.190S3; Tue, 07 Mar 2023 15:39:02 +0800 (CST) Received: from linux.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8DxbL4V6gZkqsBNAA--.4136S2; Tue, 07 Mar 2023 15:39:01 +0800 (CST) From: Tiezhu Yang To: Huacai Chen , WANG Xuerui Cc: loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, loongson-kernel@lists.loongnix.cn Subject: [PATCH] tools/arch/loongarch: Use __SIZEOF_LONG__ to define __BITS_PER_LONG Date: Tue, 7 Mar 2023 15:39:01 +0800 Message-Id: <1678174741-19219-1-git-send-email-yangtiezhu@loongson.cn> X-Mailer: git-send-email 2.1.0 X-CM-TRANSID: AQAAf8DxbL4V6gZkqsBNAA--.4136S2 X-CM-SenderInfo: p1dqw3xlh2x3gn0dqz5rrqw2lrqou0/ X-Coremail-Antispam: 1Uk129KBjvdXoWrtrW5Aw4xCFW3uw43uF1Dtrb_yoWDCrc_Zr 47Jw1UCr4xWF97X3y8ZrsYqr1jgay8GFnY9FnxZr13uF4Yyw48Gws7Gas2yF4q9rs0van3 XFWktr9Yk3yUtjkaLaAFLSUrUUUUbb8apTn2vfkv8UJUUUU8wcxFpf9Il3svdxBIdaVrn0 xqx4xG64xvF2IEw4CE5I8CrVC2j2Jv73VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY b7kC6x804xWl14x267AKxVWUJVW8JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0rVWrJVCq3w AFIxvE14AKwVWUXVWUAwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK021l84ACjcxK 6xIIjxv20xvE14v26r1I6r4UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26r4j6F4UM28EF7 xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Cr1j6rxdM2AI xVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12xvs2x26I8E6xACxx1l5I8CrVACY4xI64 kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1Y6r17McIj6I8E87Iv67AKxVW8JVWxJwAm 72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41l42xK82IYc2Ij64vIr41l4I8I3I 0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWU GVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI 0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0 rVWUJVWUCwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r 4UYxBIdaVFxhVjvjDU0xZFpf9x07jYSoJUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759694390769685355?= X-GMAIL-MSGID: =?utf-8?q?1759694390769685355?= Although __SIZEOF_POINTER__ is equal with _SIZEOF_LONG__ on LoongArch, it is better to use __SIZEOF_LONG__ to define __BITS_PER_LONG to keep consistent between arch/loongarch/include/uapi/asm/bitsperlong.h and tools/arch/loongarch/include/uapi/asm/bitsperlong.h. Signed-off-by: Tiezhu Yang --- tools/arch/loongarch/include/uapi/asm/bitsperlong.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/arch/loongarch/include/uapi/asm/bitsperlong.h b/tools/arch/loongarch/include/uapi/asm/bitsperlong.h index d4e32b3..00b4ba1 100644 --- a/tools/arch/loongarch/include/uapi/asm/bitsperlong.h +++ b/tools/arch/loongarch/include/uapi/asm/bitsperlong.h @@ -2,7 +2,7 @@ #ifndef __ASM_LOONGARCH_BITSPERLONG_H #define __ASM_LOONGARCH_BITSPERLONG_H -#define __BITS_PER_LONG (__SIZEOF_POINTER__ * 8) +#define __BITS_PER_LONG (__SIZEOF_LONG__ * 8) #include