From patchwork Mon Oct 21 08:27:58 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Masami Hiramatsu (Google)" X-Patchwork-Id: 11201527 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 942E113B1 for ; Mon, 21 Oct 2019 08:28:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6E157214AE for ; Mon, 21 Oct 2019 08:28:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571646485; bh=n5MLYFVGXTsz0eJT/BbgubhoVR4OoLwDL9aQS6TH6/k=; h=From:To:Cc:Subject:Date:List-ID:From; b=uIGe9Eb3FwwcndzgwP+HX9B0jgqdN7pfGidQiuu6hg7D+viKAdbWkNEO28ohL+GbG wVTiecW6uROg22P/fo66dYMuaP6S0oAdKcCVFZl8jfpuQBUTBD1V8XFsSZtBAYf6nU hcKckJG046KSfjDvYtfHR8GwpG6QawCydM9I9vz8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727609AbfJUI2F (ORCPT ); Mon, 21 Oct 2019 04:28:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:53562 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727406AbfJUI2E (ORCPT ); Mon, 21 Oct 2019 04:28:04 -0400 Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 784992064A; Mon, 21 Oct 2019 08:28:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1571646484; bh=n5MLYFVGXTsz0eJT/BbgubhoVR4OoLwDL9aQS6TH6/k=; h=From:To:Cc:Subject:Date:From; b=ujILqfvhvwAIzJg2ksFKx0u7AufpjCiLCCaMfXi6uSMOaNSaLwOF0UzsTsZjQqhJ4 O7p9YzTZIwIB+7Ie+XoJn3m+r2gol61Q7fhcU3eTxBVG91NcAhZzOTr6rA6zbAFSAO bQIhcfTKUF3xT7xR91cMuvnqpdvpxQe1jfYL+S/Q= From: Masami Hiramatsu To: Shuah Khan Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, jaswinder.singh@linaro.org, Alexey Dobriyan , Anshuman Khandual , "Aneesh Kumar K . V" , Eric Dumazet , "David S . Miller" , Willem de Bruijn , Emilio =?utf-8?b?TMOzcGV6?= Subject: [BUGFIX PATCH v2 0/5] selftests: Fixes for 32bit arch Date: Mon, 21 Oct 2019 17:27:58 +0900 Message-Id: <157164647813.17692.3834082082658965225.stgit@devnote2> X-Mailer: git-send-email 2.20.1 User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Sender: linux-kselftest-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.org Hi, Here are the 2nd version of kselftest fixes some on 32bit arch (e.g. arm). In this version, I updated [1/5] to make va_max 1GB instead of 3GB, according to Alexey's comment. When I built the ksefltest on arm, I hit some 32bit related warnings. Here are the patches to fix those issues. - [1/5] va_max was set 2^32 even on 32bit arch. This can make va_max == 0 and always fail. Make it 3GB on 32bit. - [2/5] Some VM tests requires 64bit user space, which should not run on 32bit arch. - [3/5] For counting the size of large file, we should use size_t instead of unsinged long. - [4/5] Gcc warns printf format for size_t and int64_t on 32bit arch. Use %llu and cast it. - [5/5] Gcc warns __u64 and pointer type castings. It should once translated to unsigned long. Thank you, --- Masami Hiramatsu (5): selftests: proc: Make va_max 1GB on 32bit arch selftests: vm: Build/Run 64bit tests only on 64bit arch selftests: net: Use size_t and ssize_t for counting file size selftests: net: Fix printf format warnings on arm selftests: sync: Fix cast warnings on arm tools/testing/selftests/net/so_txtime.c | 4 ++-- tools/testing/selftests/net/tcp_mmap.c | 8 ++++---- tools/testing/selftests/net/udpgso.c | 3 ++- tools/testing/selftests/net/udpgso_bench_tx.c | 3 ++- .../selftests/proc/proc-self-map-files-002.c | 11 ++++++++++- tools/testing/selftests/sync/sync.c | 6 +++--- tools/testing/selftests/vm/Makefile | 5 +++++ tools/testing/selftests/vm/run_vmtests | 10 ++++++++++ 8 files changed, 38 insertions(+), 12 deletions(-) -- Masami Hiramatsu (Linaro)