Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5191675pxv; Wed, 28 Jul 2021 05:30:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoKftRSe/wzibdhWtulqF7C6GAvosxVFZxAM8ULzPq099XIh7m9d2SctV+zE2o52OcprD2 X-Received: by 2002:a6b:7114:: with SMTP id q20mr23480547iog.71.1627475414260; Wed, 28 Jul 2021 05:30:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627475414; cv=none; d=google.com; s=arc-20160816; b=A8gb1ppmMlS6oA5tEMKc3+20fYm/BX964tg+i1TJEQiFYrZ67leemvDSROcHSHzscy 1d8y4cX6Gghz/kVgs7VJxiF1JzWbAAT6SibrfPcr01Znr5ReUrT32VO3gsNfGRTvNbnD VzlIfUR86c0yEgW5+fQjihw5gDPJxaXxmDUop7duWjh8lwjCLkY9r4XbOeakKzdaqcAA ZGRhLmNCtAfON4Lj33PM4JSKDOl7kLOhbYDCUBzGiuKDBCBCRyG9XwnoX2aXycw8BR/R TLOEgNOwaQnPxc4LTOCMdmbFPtMipk4dNowrNc7rr1z61KKrpJZIjd54dqoYGd9owGRZ Qikw== 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=iMVVT/JpExkoC0nTaaQgTQw1UaoJr3lEiegBBgAqe9A=; b=i7b6Z7Jzl1K1NTg19cn06OwFxNGZXzvQf6vLOpdvE8espeplWlN8FZ6QzuxJtxiPu1 OfQSGv+e4DdexdyNIBy6LwcLWv3I/vIFlauXPevISKOeIgJRlb3H/T/0FHfvp7hgHfF/ EWam0XGQrLYpSEKSkysDc428FmPuseEcGiv9e4LgFggUEb4+/zYDKLQuXoDos25cP1zH 1bLwAO64eq/0Q+3+Nd96CzuKR5sd8mE+RBN/nqohKaln8fpDi8wwdQaiE/gTBOVgPCw1 3nUOxZcBlbOieKjG3ATL7zJ9IW66bAeQVAQBi5iX5MCdjslRuF5ICxNmm+YAanmX4YD9 4PNg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z12si6662095iln.160.2021.07.28.05.30.02; Wed, 28 Jul 2021 05:30:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236039AbhG1M3S (ORCPT + 99 others); Wed, 28 Jul 2021 08:29:18 -0400 Received: from out30-57.freemail.mail.aliyun.com ([115.124.30.57]:53206 "EHLO out30-57.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234838AbhG1M3I (ORCPT ); Wed, 28 Jul 2021 08:29:08 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R801e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=baolin.wang@linux.alibaba.com;NM=1;PH=DS;RN=4;SR=0;TI=SMTPD_---0UhFXizk_1627475345; Received: from localhost(mailfrom:baolin.wang@linux.alibaba.com fp:SMTPD_---0UhFXizk_1627475345) by smtp.aliyun-inc.com(127.0.0.1); Wed, 28 Jul 2021 20:29:05 +0800 From: Baolin Wang To: shuah@kernel.org Cc: baolin.wang@linux.alibaba.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests: openat2: Fix testing failure for O_LARGEFILE flag Date: Wed, 28 Jul 2021 20:29:00 +0800 Message-Id: <1627475340-128057-1-git-send-email-baolin.wang@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When running the openat2 test suite on ARM64 platform, we got below failure, since the definition of the O_LARGEFILE is different on ARM64. So we can set the correct O_LARGEFILE definition on ARM64 to fix this issue. Signed-off-by: Baolin Wang --- tools/testing/selftests/openat2/openat2_test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/testing/selftests/openat2/openat2_test.c b/tools/testing/selftests/openat2/openat2_test.c index d7ec1e7..1bddbe9 100644 --- a/tools/testing/selftests/openat2/openat2_test.c +++ b/tools/testing/selftests/openat2/openat2_test.c @@ -22,7 +22,11 @@ * XXX: This is wrong on {mips, parisc, powerpc, sparc}. */ #undef O_LARGEFILE +#ifdef __aarch64__ +#define O_LARGEFILE 0x20000 +#else #define O_LARGEFILE 0x8000 +#endif struct open_how_ext { struct open_how inner; -- 1.8.3.1