Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp941360lqb; Fri, 24 May 2024 21:32:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVC+DUNGADFZQ4oTSwakpbsK4onW830zK3/uc4yu7BNz++aDfzPnZF09hPJHEpaLweOOsPGVa+9mBNQ7//dKqMrkUuij72OAo5OxzAR4Q== X-Google-Smtp-Source: AGHT+IFxs+hheLdCGgvBOvpZYYCq0PL52HIcFPav2Egkv10fEh/W2oWR1to6b0Mnj0Xs8KpwnfLv X-Received: by 2002:a17:906:2b55:b0:a5a:5bc9:55c5 with SMTP id a640c23a62f3a-a62642d8126mr225245666b.18.1716611576544; Fri, 24 May 2024 21:32:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716611576; cv=pass; d=google.com; s=arc-20160816; b=q7tAolw8HI9fYEhfYLiXNGsL2xImLzDRe9OtgNCs7iM6eXgxaCohIgQI4cD0D3I3Rv 64qiEttFs4L+Z7QnPDox7DtIiXWNbkqYTSJFefwlQwBQZXFwfE0mEU3zyxwcIQpVDdUa 2E4OiF9YRBGz+WC00NKZb6RxSSWRf0S+aLkvsF3+0J+D0Bt0d2MfTVGqOenf4KeLE6si 90KsItmJkmYvyOC7pkioaTXbpcKn16qoaHdRrzGP7d3Nk7NCtnvY1jGntqypkU2s9rwO vNn/lpZHuZxK01u4s04hXYkRfK+4YjlZjOble8Q0tNRW6fpV99lwGNDkGu4BU4J5T4uZ Qu2g== 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=fvF9D/RGCm2+vqH+hd/OuPd2+SFSHQ2t6e8Zfhm99qQ=; fh=ZQu59JxnPa0D7FdtI0LPt7gqb5nCzt5xQW3S1XS8NBg=; b=aKV+DHB0W4cdIbQisShnH4laTLh5l1jUhuMdV4EcdSp7pTT90ZUIaMG9dmTBJgO/Ft g0W7gs7Gk4i29JzZFY9CZLtDlwB5giFIM5aneBVruq24Yd90OVfmrC0gs9hvg+XWtRcp bcP9cj18p1wkZMgK8iQaoPg1tmhLcOQWD1KcKog1JwN75sj2ks6S+En4lhwqUGB4Vd4j ZEcCseddfUGsITkvR7ZxugrrjVqwRKvJ26lxjNy6e+DGmOOyuz55X8PMtcQwO+kWByES yxWsKaGnDBMA7CFiSbnbhtpYNSFcrEFDSP7iDh5pMyOKeuIVc+GASVeQlh5TrAdrBubX y4xw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=uLGOzZwJ; 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-189278-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189278-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. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cc3802esi141897166b.481.2024.05.24.21.32.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 May 2024 21:32:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189278-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=uLGOzZwJ; 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-189278-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189278-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 444981F2196F for ; Sat, 25 May 2024 04:32:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6C56D8F72; Sat, 25 May 2024 04:32:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="uLGOzZwJ" 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 40DCB4691; Sat, 25 May 2024 04:32:48 +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=1716611569; cv=none; b=ZzBlo/i8hekd7YW8DGT6eKEP3KzYPZih8XTVQRYqjz/Dvysu9+o27fbtYn3CmdEOQsFU8483z3qLTsO5aLDF/+Lffv+TpdWdgaYNT/iOw/2U09i9YsT0Y2czEh4/hL9fGizpyARC5MSZTGKkims3+hXH66bJngZ0fDLHhEKA9wA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716611569; c=relaxed/simple; bh=mla9/6MWVvFTkGR018Hqe//h65qdGPgHc26QyuTvYVI=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=l3DOlee1sXrW+d86fzRaOjIyYOdf7EOEjkhLLYDSfYVgAcrQS5NbcXR0NKORZryVkOnVa0AlnxRRue4KfnQy/OH+9Mp16Utjf5+8qMfe7vwcWTUjNv9W0GaeY0mdmfRvu434mr0IZ9JGi14fDKaWOtsJINs7QMRj9v/HPDwv8L0= 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=uLGOzZwJ; 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=1716611566; bh=mla9/6MWVvFTkGR018Hqe//h65qdGPgHc26QyuTvYVI=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=uLGOzZwJziYYaReuCZP41kdo/7KY1AqmQoffffhNZ/c2oeTog0OBD+2U+2gUDVeJp LJTvzHVnCC2Sk9zwokxKWpWGvNUdNXak+uVoD8XHA1SAL5Fgg9DKJeSVXkgWQgRfKW wJiGULnndLJTwK+lnU2hOXwCbNKGYWW/KBgldCiwY/NnJw8waTDDT2WLKXIRjXcqQO S1M17y5E0rErqYsRHKZhOueljqWywQkLO8ygo99IlJFqBCbV4I8W3o3bCqgJwUjaLs P7BQll0ZUDwY3wjmKob60wfKa1zexxjA+9401Gm2ue4eLd7woAH86b8/aCFspSkGCy FChlupYiiFs9w== 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 34D483782085; Sat, 25 May 2024 04:32:45 +0000 (UTC) Message-ID: <94964224-1796-4610-a42d-3aacb4d47341@collabora.com> Date: Fri, 24 May 2024 21:32:30 -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 Subject: Re: [PATCH] selftests/openat2: Fix build warnings on ppc64 To: Michael Ellerman , linux-kselftest@vger.kernel.org, skhan@linuxfoundation.org References: <20240521030325.58095-1-mpe@ellerman.id.au> Content-Language: en-US From: Muhammad Usama Anjum In-Reply-To: <20240521030325.58095-1-mpe@ellerman.id.au> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I was looking at if we can add this flag for ppc64 for all selftests somewhere. But there isn't any suitable place other than in KHDR_INCLUDES. But there is a series already trying to add _GNU_SOURCE to it. Once that gets accepted, we may add this flag there by removing the definitions from individual files. But until then the current solution seems fine: Reviewed-by: Muhammad Usama Anjum On 5/20/24 8:03 PM, Michael Ellerman wrote: > Fix warnings like: > > openat2_test.c: In function ‘test_openat2_flags’: > openat2_test.c:303:73: warning: format ‘%llX’ expects argument of type > ‘long long unsigned int’, but argument 5 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/openat2/openat2_test.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/selftests/openat2/openat2_test.c b/tools/testing/selftests/openat2/openat2_test.c > index 9024754530b2..5790ab446527 100644 > --- a/tools/testing/selftests/openat2/openat2_test.c > +++ b/tools/testing/selftests/openat2/openat2_test.c > @@ -5,6 +5,7 @@ > */ > > #define _GNU_SOURCE > +#define __SANE_USERSPACE_TYPES__ // Use ll64 > #include > #include > #include -- BR, Muhammad Usama Anjum