From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 883E41A8C1E; Tue, 18 Jun 2024 12:41:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718714462; cv=none; b=HYpedv7JSf9pt0wx9QNu88kYsXhypBGNg7XcNwpt6w2RTo2AFcg+bAerALDji6Uuafa3GfmyoWoDz/0xNwLU8Fyd0LpXhyNWjwZOrDuYTTHxAzNxtES4pf5P3kmypIrKz5Gy+9GBfpYXre2AQSAutzBWZNgZFwQfbXwVaPDybSk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718714462; c=relaxed/simple; bh=RS9U/3BUr1Q86veiwVYktTTSLMNsseftXRF1uo2D5Yc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=hHLlICCs4ZVYTQvkZRCE/kau2Cu6pnhdHQ9eZbXkcmkT2lXuPtwTslDlVXP7cmEKuhvvkeGV99AHYXawR53B/zJjxah5gLxqLdzUJq7ranWP9/cQUeoPlL3/b2YLRskl69DgRMUmHWv3KY/H2ATph80fCEC4feF1frV4tYrbdNE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q7MgVkks; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q7MgVkks" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04A95C32786; Tue, 18 Jun 2024 12:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718714462; bh=RS9U/3BUr1Q86veiwVYktTTSLMNsseftXRF1uo2D5Yc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q7MgVkksvI4ZDm3BHfoQ2lXHefr3+glHWg2jhhoJ+a1BuQ79zAA2b6zt4g/cU5sZj QZiVhPfxG92QEyagn0KPRJfpFjNWpTR9BAORH7VCmIVgkumHiPFsbMJXIIJDrY7ri6 3dltyPZSpNo13GLWfwYu92AumLxJGpNIugl835NOJWZqprG8eMNNe6VuYhvOmzQRwN UQvJAgiJYspcaFEmoRbpICb1fF/GQYMyf4jBqasE+G/U2uEYwW3ns4vksxsnY9Bopq iWAQ42jCdGTvgkJ6w0VFjv9NsExZhIspQg+UChNcL+wFKG4qXzFwn87A9tjghZUu5P FcvCselz6jVfg== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Michael Ellerman , Muhammad Usama Anjum , Shuah Khan , Sasha Levin , shuah@kernel.org, ilpo.jarvinen@linux.intel.com, maciej.wieczor-retman@intel.com, linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 6.1 20/29] selftests/openat2: Fix build warnings on ppc64 Date: Tue, 18 Jun 2024 08:39:46 -0400 Message-ID: <20240618124018.3303162-20-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240618124018.3303162-1-sashal@kernel.org> References: <20240618124018.3303162-1-sashal@kernel.org> 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 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.94 Content-Transfer-Encoding: 8bit From: Michael Ellerman [ Upstream commit 84b6df4c49a1cc2854a16937acd5fd3e6315d083 ] 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 Reviewed-by: Muhammad Usama Anjum Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- 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 7fb902099de45..f9d2b0ec77564 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 -- 2.43.0