From patchwork Tue Apr 11 06:31:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Qing Zhang X-Patchwork-Id: 13207076 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 59296C7619A for ; Tue, 11 Apr 2023 06:31:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229910AbjDKGbt (ORCPT ); Tue, 11 Apr 2023 02:31:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229873AbjDKGbt (ORCPT ); Tue, 11 Apr 2023 02:31:49 -0400 Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id F021F1BCA; Mon, 10 Apr 2023 23:31:46 -0700 (PDT) Received: from loongson.cn (unknown [113.200.148.30]) by gateway (Coremail) with SMTP id _____8AxYczR_jRkkgMaAA--.40259S3; Tue, 11 Apr 2023 14:31:45 +0800 (CST) Received: from localhost.localdomain (unknown [113.200.148.30]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxHL7R_jRkwg4eAA--.32207S2; Tue, 11 Apr 2023 14:31:45 +0800 (CST) From: Qing Zhang To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Huacai Chen Subject: [PATCH] Mips: Fix _CONST64_(x) as unsigned Date: Tue, 11 Apr 2023 14:31:44 +0800 Message-Id: <20230411063144.3119-1-zhangqing@loongson.cn> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxHL7R_jRkwg4eAA--.32207S2 X-CM-SenderInfo: x2kd0wptlqwqxorr0wx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UUU= Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org Addresses should all be of unsigned type to avoid unnecessary conversions. Signed-off-by: Qing Zhang --- arch/mips/include/asm/addrspace.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/include/asm/addrspace.h b/arch/mips/include/asm/addrspace.h index 59a48c60a065..75d36115a25e 100644 --- a/arch/mips/include/asm/addrspace.h +++ b/arch/mips/include/asm/addrspace.h @@ -25,9 +25,9 @@ #define _ATYPE32_ int #define _ATYPE64_ __s64 #ifdef CONFIG_64BIT -#define _CONST64_(x) x ## L +#define _CONST64_(x) x ## UL #else -#define _CONST64_(x) x ## LL +#define _CONST64_(x) x ## ULL #endif #endif