From patchwork Tue May 21 03:02:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Ellerman X-Patchwork-Id: 13668846 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 907EDC25B79 for ; Tue, 21 May 2024 03:02:32 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 2F6846B00A0; Mon, 20 May 2024 23:02:32 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2A67A6B00A1; Mon, 20 May 2024 23:02:32 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 120A06B00A2; Mon, 20 May 2024 23:02:32 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id E5EF06B00A0 for ; Mon, 20 May 2024 23:02:31 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 418EB160E0C for ; Tue, 21 May 2024 03:02:31 +0000 (UTC) X-FDA: 82140904902.05.74D606B Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by imf01.hostedemail.com (Postfix) with ESMTP id EAA9D40002 for ; Tue, 21 May 2024 03:02:28 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=ellerman.id.au header.s=201909 header.b=fX8m3HcC; spf=pass (imf01.hostedemail.com: domain of michael@ellerman.id.au designates 150.107.74.76 as permitted sender) smtp.mailfrom=michael@ellerman.id.au; dmarc=none ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716260549; a=rsa-sha256; cv=none; b=4XsEYThBhNnyoy1tNcRDS4jKzGm8lmaT6mM0uQhUzWI3xiVasMBU8YU5JncnHXW+sXb9ab MUy+saQaknVRwWyrTZ4ErahhgkdtKKOthTvDTwQqF7EN9LTiC3FxmpdgiQy40cBQmZCPSo tN5kCC3wDHsvIiKIbCPMzp3wI0umVmE= ARC-Authentication-Results: i=1; imf01.hostedemail.com; dkim=pass header.d=ellerman.id.au header.s=201909 header.b=fX8m3HcC; spf=pass (imf01.hostedemail.com: domain of michael@ellerman.id.au designates 150.107.74.76 as permitted sender) smtp.mailfrom=michael@ellerman.id.au; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716260549; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=aZ8eL+an0k4EGUGhJYQuS679Qpvr/5jI+zIpE3s7TKM=; b=qpJhUGz1LXfW2WQaITgB1jCbXVUfaC5wrOy9Q92g8bJ8kynbyUbh+6PK7XZSRMl77mYusI wXUYG65aCB1J3GBVMvGklE/6VxV0gEk4COsiKpXVddxQGE4tFvv8uVP6B1IFMR6XsRFZvG 177YMpNpkAFF9QTTbw2+aOh5GF+e7MU= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1716260545; bh=aZ8eL+an0k4EGUGhJYQuS679Qpvr/5jI+zIpE3s7TKM=; h=From:To:Cc:Subject:Date:From; b=fX8m3HcCBadlJFZVLLv4f/oG6DuCW581DUDftxw/5iZbT/ZzaUnPDTes22hq3B5RF kDdM+FmBEsPArKY05nywjsUhfd3BK5b9i0YU13cFmyyX0NUkJtWFGZFNTod00s1ct5 bvBHu+zNrr346znIlfplZq97wjUN/CwpafLsnoSriZtDKoTQXQtUuPVULM8IXbHCG5 ZXQFn3eW4uo+tvYyGH0on3q4gJ1mPmkguAWI6ueKfJyEqOJfQnOyNs0gLtk5XeF0LV p3PqmBEF901A/zVNYTK/unMIvL4NBhK4XGUf7jJOPu74AOR6OlQnyBDQd0BIqjQ4Vd CkisghALVDOmw== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4VjzkS71Ghz4wc3; Tue, 21 May 2024 13:02:24 +1000 (AEST) From: Michael Ellerman To: , Cc: , , , Subject: [PATCH] selftests/mm: Fix build warnings on ppc64 Date: Tue, 21 May 2024 13:02:19 +1000 Message-ID: <20240521030219.57439-1-mpe@ellerman.id.au> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-Rspamd-Queue-Id: EAA9D40002 X-Rspam-User: X-Rspamd-Server: rspam12 X-Stat-Signature: 5b7sqm9c1nzwtcnaxo8scuap38naki64 X-HE-Tag: 1716260548-324943 X-HE-Meta: U2FsdGVkX1+D5tt4vr2HtcDyNxN3BJ7DsCPF3YVgakhwyNEGpE9mxf60DuzNnO0y/CLodacUoe6UaPYodj0+fbaZBMlwr7FiHr70GO+yRDVVov7jeR7jkKptJJNKXb5ChwqbiBaEkSkf/20XM6I64hUxsWmE4zSeE+HWx6GfqZDYd8YzPI34THr2rqzLk5xEmxaRhBi1+BnXcUjAnyQNPdD8KTgpfFiMGWqGqoG7SGYxxqak8ieaTqu9LWoXEgoGvO3sp3zC9q7dsFnD288knX3HSLQ9RsG+Bqi7FymSLyGdUJgpujh8oa2rUhK0fpeIo7c/pPIaqr+S3mnfFbTbQOr0e68OC1w/jdT/MezTHDIbnWtezB00SBzVHj257EwbsQMF6/vNL+lGN+Q7dckpus7HpCwArPBkoMB0I5A0FEN+ufm/WpWSnrKvtL5RC5v5n4bIwNLrR0Sz17RFcceeOTTPCTYz1PbhWO23++IGbqtDpbjzxzxgiJuilCXi4cQTAoOTdqoJVAgZsOTDke0yj3PEPL7avpHEnNUI7pQO8qJLzodj9ztun5FgaNxrLZyQCySShsnaRtsjdyhlRc32FWI/x6hPJbidr8Zct5CK0ID86h0ok+tQBlYWWso9o4t4H51ZAi84YOlaAAXE9r0Oem3SGzlct1tpBvF8fwIrEr6w+bhIipKvT1hICqcIcePRhTgKaP0LSu+2Egz2K2WeKezSKuHZfzlzLTD467IIt9KXhXcjrmNtMw/Y6McU9J8B9LHTP2Jwu0nTsF2/x8/JQUbxyNIcHxx3jvBQdYJUxM0yi3ya84GGZLYIDigAVmCUXbuC3aVqKieeiPEtwf4KIVSH+dqR5t20/9AFrFfVHkVZJlmHYcUfJy3MVrs17Dl60eqhgr3+hZcUBzf/p5Cxitgl0bv4cQbMenYzQ/OLotVazagTAZgdFZQ62lwWygcHzTC4giYXu3u8amntd0w gQgfN7QR XgqotCjooLcVqyNSHXOa0uFXSQlJcMUutlWC9MQRYWcxQgpsZ3mYfltO2s/L7lB7ZwiXfwHdWJzui5vFQYgMG/khXePDiKElX8++Tww6812GeLq+6rnnyIJ1HY2eyJi/52+H3XC6zMA7KOVXshtPuT1qkON45NlRCucyOCIv6aUZrukwIfapi0aZFgovV/nZPi83flD+GtBEWH3dAv4+rvdPMMilxWswjrHbZEHK35icYrwVzKbwl7DJO0I6inn2HAMMroPB6Ah5Apl7y5NCmEtHlof0oQ4I96RJSjPFICPm7WJTx8jdpe8fUdNTltmSbvaC93BvETUmEWgJwJj02FRJRAw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Fix warnings like: In file included from uffd-unit-tests.c:8: uffd-unit-tests.c: In function ‘uffd_poison_handle_fault’: uffd-common.h:45:33: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘__u64’ {aka ‘long unsigned int’} [-Wformat=] By switching to unsigned long long for u64 for ppc64 builds. Signed-off-by: Michael Ellerman Reviewed-by: Muhammad Usama Anjum --- tools/testing/selftests/mm/gup_test.c | 1 + tools/testing/selftests/mm/uffd-common.h | 1 + 2 files changed, 2 insertions(+) diff --git a/tools/testing/selftests/mm/gup_test.c b/tools/testing/selftests/mm/gup_test.c index bd335cf9bc0e..bdeaac67ff9a 100644 --- a/tools/testing/selftests/mm/gup_test.c +++ b/tools/testing/selftests/mm/gup_test.c @@ -1,3 +1,4 @@ +#define __SANE_USERSPACE_TYPES__ // Use ll64 #include #include #include diff --git a/tools/testing/selftests/mm/uffd-common.h b/tools/testing/selftests/mm/uffd-common.h index cc5629c3d2aa..a70ae10b5f62 100644 --- a/tools/testing/selftests/mm/uffd-common.h +++ b/tools/testing/selftests/mm/uffd-common.h @@ -8,6 +8,7 @@ #define __UFFD_COMMON_H__ #define _GNU_SOURCE +#define __SANE_USERSPACE_TYPES__ // Use ll64 #include #include #include