Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp941434lqb; Fri, 24 May 2024 21:33:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2RkzjLXWM/AVN+CzhIQfW6KcDM5OjWWNBnR8wfE2LByUnjaWOaz/rbi/cuKuLvH7Bq80BBH+4qmByGvWGd/Yzg8QHQFxtXPaORIGJHQ== X-Google-Smtp-Source: AGHT+IGh4/Z64aewqNhMAsYdc/FdiXATeWzXcT1OIM2cMKKfg0Gclac91iz1yRDoER5DkeRY9Mq/ X-Received: by 2002:a17:907:9511:b0:a58:ea85:9114 with SMTP id a640c23a62f3a-a6264f01867mr216282266b.50.1716611592721; Fri, 24 May 2024 21:33:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716611592; cv=pass; d=google.com; s=arc-20160816; b=xRs7FXW3vMMENMAG1XbV7hk0dWUkJ+3oz1QUPCFUEGR72ELMc/f6YJ4VcOhKagQ1Aa My2EvCfVBdtS8vUH0P23HSzajN98jTkVAUm49URS8/3xcM/usIZJAicJFDzM72XFifZJ 120TJLI97jMgBWUdXKezoI+z5DrGnquOfdDzryQKVLWkqI0PbpFEGpGypPCNSNHkeE8I fCYNRQkSUPynbm7GDZ+CbWHaOMG9kVdciaCzZXWTxSlsaP2Mvgng4G/sgQuiYACKY0QJ pdrfADgt7WRX3c3PhDQhinHDaxajuhPj/3wV4AB1yzBhyyFuS3pVLPWz5NjlRFxuQYMH aFqQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:cc:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=v5mjQYm0GxNoDuJmfvQFJ4VkT2T6pq/WDeveddh7R7c=; fh=CbA+nP4i3u/yjP/wZCKaRRO1IpKH18x55wLJ8KDa0Wk=; b=nVZf2oFUYw/6G8zQg0KzYp8JwQRZ6EyVGNP5qvgsmyrHOB2cnVuol9DRtj5WiW2zqs oXoOJecBgpQ6ArhY4t42IH4j5ktHqM+Ou8yPbm14KC5eRlvstIa13BzYo4ljPHpMfmGD dusnUG9XIbwAHqW0fjffbP5lozAbv75zx+zpMHA3cXvJyVqS0+EW3OpMoE3Aw4PsBdqT GqKW/SzSGReUQmyN9f5XM+Oxmj/sI2QguWfCx5V4sswQe/AWtT9++WWxRsVmeAdlSgQY x2aNtYXHcUd7oOlGPoYDwYEMcQKrgyT15n51UhPMUF5WLvY1jPxNbuePBMyEZYB16EN6 WEjg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="LQUHY/SU"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-189279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc36b5fsi145158966b.318.2024.05.24.21.33.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 21:33:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="LQUHY/SU"; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-189279-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189279-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 74EF71F21A37 for ; Sat, 25 May 2024 04:33:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3F87C8F72; Sat, 25 May 2024 04:33:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="LQUHY/SU" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 D8E90BE4B; Sat, 25 May 2024 04:33:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716611585; cv=none; b=R7jApHwhmQij685z+QJVl/MN4VPbwd8F5lnJtFSPvMaSUMR4x9WukjhHbHzixly26TQo/HsCHHbHEXHZTIUG2yAaNal0LyJxAVP/LIKN6tQCxqwu4QzpIVpws8TeuEiipqRZDXfptsCTCZfaxRRwkqfJShwyz+z50VVpAv7c9Xg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716611585; c=relaxed/simple; bh=VdZ3ZkVDoMmOUPpYGpxwg0tdv3KvlTxSUGRQXFANGLA=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=kjw7+weMJ6UindqGgQm/YtGdRPQ6pu87e5C/xI5akqwx4Oe3IbFAGLT1ZTfohEIfuAaG9lLF6mDY3wAGdagD2SCoG4s6VMPXnSWQGHmD2NTxVQJo/rEnQeEY1jkkSyMDCDW26BnXt5A07oLyyEyvoUjDvP2M7fbuiQazXKdCxSo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=LQUHY/SU; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1716611582; bh=VdZ3ZkVDoMmOUPpYGpxwg0tdv3KvlTxSUGRQXFANGLA=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=LQUHY/SUh+v6SkttUeAbv2lyIGF2c8PC82u9hZ0d34n1qUhEYyuTfWcLusrsk87eV TgumHvVVRCQeL8glSF0geZSTOCmAs/eyqNgimJFMk/ngjv5IbPqH5UbsDCQINgoZAM gvtVf8odHwfozFmtIJaKICOtf+XfvfAnqg8P2//MSGd7Dpm9x9lxTohUayB8et8NxM z678v0i2n2PH9okYSneaqB0F2Zv5QHYScxj3e87HnuaXNdW1HyWGqbkkydSBk+qn44 DA5Ckk2sQTkc+do0VPX9RJgcZZHwQuC06At3IIGrZtDHXTK1CiRGyFP+NpCiSsHXRo UKh8ROJfEJLvw== Received: from [100.113.15.66] (ec2-34-240-57-77.eu-west-1.compute.amazonaws.com [34.240.57.77]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id A827637820A4; Sat, 25 May 2024 04:33:00 +0000 (UTC) Message-ID: Date: Fri, 24 May 2024 21:32:46 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, akpm@linux-foundation.org, linux-mm@kvack.org Subject: Re: [PATCH] selftests/mm: Fix build warnings on ppc64 To: Michael Ellerman , linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org References: <20240521030219.57439-1-mpe@ellerman.id.au> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: <20240521030219.57439-1-mpe@ellerman.id.au> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 5/20/24 8:02 PM, Michael Ellerman wrote: > 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 -- BR, Muhammad Usama Anjum