Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp2829048lqo; Mon, 20 May 2024 20:02:57 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW8MrU6GY9GMOBosbyd4t1PrPqx7qI8+XRD84e2J1e+IpuO5D+XJGEFPt8sMhS46Jw4IZAEcniMGDNsOcuWXXcsxOEZpiaAQ9V7T2CZZg== X-Google-Smtp-Source: AGHT+IGzpKOnzEIGT5DInlm2TtN1EQ8GaKfBAO92i/Ru0ZpFdM4AbYcbzfeFM2bhsTWkhcU+v1qj X-Received: by 2002:a17:903:11c4:b0:1eb:73c2:6b4a with SMTP id d9443c01a7336-1ef43c0cb17mr377452835ad.8.1716260576949; Mon, 20 May 2024 20:02:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716260576; cv=pass; d=google.com; s=arc-20160816; b=br58hVw1BdIdz/zRe7DeZcoTPsQSsSIOJvtSIrRtlboswfM3nCfce7ttu/KtKbgjt+ mpsAZRO/JhPbiCiAsGyKR+1RZi5jBDLbYjxqAF29SYmQM1ndeifvxUCXBOZl6I6j9rUA W1K5YUgMS2XQypeibXBeBOm6LJ3LbPb8RvIjWqrw+7dcAvhYQL0f8vO/s+jUYLRMpFdo jD+P2qM8Ns7Hadp1uqPR+y+xo5WeeYbfjhiLXpU+Oen0wZfNxEVJbLs32QTG254F7v3w TeLdkOSJoONF3zSpwN043aT7KEkSleL1gKeMu2gZ3BZ0WeuexdEXUT3qOmDgIE//4bQ6 xNUg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=aZ8eL+an0k4EGUGhJYQuS679Qpvr/5jI+zIpE3s7TKM=; fh=hyBULCYJt0QVoqhT9oyy+h5XDj2IHXt9fGr9sx+zAg4=; b=MU6BOITno+iNyw20laCcfu1hwOSVGoLsYDJdvngZyxpfDtKV0gtDB1qJDynC9FyysX hcDlhS4ULz7kPvaBKJfJeNvBfhUKuGxQyBWPS3Y7ouG0T7BQR3qXSo+33BQUHVozzChR 69UHpkUa9EIb7rKQLvdGj89DjzkcZH8ei4kCFUGAyiefTwxU0oB2BJcZDPH1oYlloAaC hM1kV6Xxuh7x6m5GQ5Pj1KI/cddoCSclqHqAqXKaL5DxXvnsONf157CNjtgv20qGni9u kQ9s1dL0Qjtiyzj1PMpAOQIOcNXs/Cio6L3AEAv5iNQ16SBu7SdO+jeBD2n8zbm519pg 2GQQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=fX8m3HcC; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-184409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184409-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c03701csi230020925ad.333.2024.05.20.20.02.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 20:02:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-184409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=fX8m3HcC; arc=pass (i=1 spf=pass spfdomain=ellerman.id.au dkim=pass dkdomain=ellerman.id.au); spf=pass (google.com: domain of linux-kernel+bounces-184409-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-184409-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 2161028296A for ; Tue, 21 May 2024 03:02:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 951751CD3B; Tue, 21 May 2024 03:02:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b="fX8m3HcC" Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A646B1CD29; Tue, 21 May 2024 03:02:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=150.107.74.76 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716260548; cv=none; b=W+hLtBUpcOM+E8e0rmKAo6iw/TO1svgRtkFPJn8gMqpqRn17hR9fwD9lepM5wlfW6JrlvzOO8TpGxTiDC7ecI2y3JDsDfe5n4W2BJMxZGLALxQBWLRn8e22jAxIE+B4R56fXtXUofoMbkt9MJMbg0qoyEAaylrFJJENsWQDkZCI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716260548; c=relaxed/simple; bh=aBdDyPij/sIp+apfuyJJk1GdgzcvWFUBKtS1yYYBAVY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=Rwf75+30O3M1WXRjaU7+qKIlSt6cQ+KPhewE2x8ou/KChaGuMt8PgnIppeCV4+XyyMbFGjP3+n6ASkGJcHHDyifebfcG2biykU2tJK98sjSJ13LsAOMqMsl0Wkf9uFS+P8TLKutCaeZ/9u+yYKqF/14otjvkaR92ufwkl/UgPtM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au; spf=pass smtp.mailfrom=ellerman.id.au; dkim=pass (2048-bit key) header.d=ellerman.id.au header.i=@ellerman.id.au header.b=fX8m3HcC; arc=none smtp.client-ip=150.107.74.76 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ellerman.id.au Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ellerman.id.au 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- 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 -- 2.45.1