From patchwork Mon Apr 26 07:48:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: sujiaxun X-Patchwork-Id: 1470215 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.linux.it (client-ip=213.254.12.146; helo=picard.linux.it; envelope-from=ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it; receiver=) Received: from picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4FTH823yH5z9sW7 for ; Mon, 26 Apr 2021 17:48:33 +1000 (AEST) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id 9F7EF3C66ED for ; Mon, 26 Apr 2021 09:48:31 +0200 (CEST) X-Original-To: ltp@lists.linux.it Delivered-To: ltp@picard.linux.it Received: from in-2.smtp.seeweb.it (in-2.smtp.seeweb.it [IPv6:2001:4b78:1:20::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id 4A7213C2197 for ; Mon, 26 Apr 2021 09:48:27 +0200 (CEST) Received: from lucky1.263xmail.com (lucky1.263xmail.com [211.157.147.132]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by in-2.smtp.seeweb.it (Postfix) with ESMTPS id 83C19600A25 for ; Mon, 26 Apr 2021 09:48:24 +0200 (CEST) Received: from localhost (unknown [192.168.167.235]) by lucky1.263xmail.com (Postfix) with ESMTP id 1B336F33AE for ; Mon, 26 Apr 2021 15:48:22 +0800 (CST) X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-ADDR-CHECKED4: 1 X-ANTISPAM-LEVEL: 2 X-ABS-CHECKED: 0 Received: from localhost.localdomain (unknown [58.240.82.166]) by smtp.263.net (postfix) whith ESMTP id P2750T140648996910848S1619423296649684_; Mon, 26 Apr 2021 15:48:22 +0800 (CST) X-IP-DOMAINF: 1 X-UNIQUE-TAG: X-RL-SENDER: sujiaxun@uniontech.com X-SENDER: sujiaxun@uniontech.com X-LOGIN-NAME: sujiaxun@uniontech.com X-FST-TO: ltp@lists.linux.it X-RCPT-COUNT: 2 X-SENDER-IP: 58.240.82.166 X-ATTACHMENT-NUM: 0 X-System-Flag: 0 From: sujiaxun To: ltp@lists.linux.it Date: Mon, 26 Apr 2021 15:48:12 +0800 Message-Id: <20210426074812.27798-1-sujiaxun@uniontech.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-2.smtp.seeweb.it X-Virus-Status: Clean X-Spam-Status: No, score=0.0 required=7.0 tests=SPF_HELO_NONE,SPF_PASS autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on in-2.smtp.seeweb.it Subject: [LTP] [PATCH] Fix the 64-bit macro definition of mips architecture X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sujiaxun Errors-To: ltp-bounces+incoming=patchwork.ozlabs.org@lists.linux.it Sender: "ltp" The mips architecture gcc does not have a built-in __arch64__, you can also use "__BITS_PER_LONG == 64" Signed-off-by: sujiaxun Acked-by: Viresh Kumar --- include/lapi/msgbuf.h | 2 +- include/lapi/sembuf.h | 2 +- include/lapi/shmbuf.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) -- 2.20.1 diff --git a/include/lapi/msgbuf.h b/include/lapi/msgbuf.h index f3277270d..873902e95 100644 --- a/include/lapi/msgbuf.h +++ b/include/lapi/msgbuf.h @@ -17,7 +17,7 @@ #if defined(__mips__) #define HAVE_MSQID64_DS -#if defined(__arch64__) +#if __BITS_PER_LONG == 64 /* * The msqid64_ds structure for the MIPS architecture. * Note extra padding because this structure is passed back and forth diff --git a/include/lapi/sembuf.h b/include/lapi/sembuf.h index 4ef0483a0..66579d294 100644 --- a/include/lapi/sembuf.h +++ b/include/lapi/sembuf.h @@ -24,7 +24,7 @@ * Pad space is left for 2 miscellaneous 64-bit values on mips64, * but used for the upper 32 bit of the time values on mips32. */ -#if defined(__arch64__) +#if __BITS_PER_LONG == 64 struct semid64_ds { struct ipc64_perm sem_perm; /* permissions .. see ipc.h */ long sem_otime; /* last semop time */ diff --git a/include/lapi/shmbuf.h b/include/lapi/shmbuf.h index 28ee33620..ad71d9431 100644 --- a/include/lapi/shmbuf.h +++ b/include/lapi/shmbuf.h @@ -27,7 +27,7 @@ * data structure when moving to 64-bit time_t. */ -#if defined(__arch64__) +#if __BITS_PER_LONG == 64 struct shmid64_ds { struct ipc64_perm shm_perm; /* operation perms */ size_t shm_segsz; /* size of segment (bytes) */