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 7CCD435A3AD; Mon, 4 May 2026 14:11:42 +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=1777903902; cv=none; b=GFNs9OSI/zelhMcvyvuZmfnX7Zvoy10akyh5vW3EdBRWUIG0tUST8OwfgIjk7xmOpxCK7OFhgXVNSS0/ZKpWLXRgibCslkb2de+uKGWiq73zZv3jOCmuZ4uiWTRNp+zEx85LWj5aIq/ssPdlJwF0wgQ1VFeqauuC1Ers6HWixFg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777903902; c=relaxed/simple; bh=Bftd/IfLujV6WFyFwU2DtMPmwYFBWZA/uBlX/qJBjDg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ucd103PGHxXD5gK+uEXTh/cl75qb7tHXre1jh4NQhait4Zji2unJNkULZfe7XWpvoj9ZDgRAjXpdGMPehN8X3Ec3oYJQXYw9epC93mYQBz27I5OOwnHOEeyzVwgSSeGd6G/ZtMMXScWzC1K1pEY6t7TCmE2E3vPKO0UXSHzwF1w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=BPfxkMcj; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="BPfxkMcj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 13ADFC2BCC4; Mon, 4 May 2026 14:11:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777903902; bh=Bftd/IfLujV6WFyFwU2DtMPmwYFBWZA/uBlX/qJBjDg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BPfxkMcjIOniqnlnZSegyv3aSYGUEVCRz2FH3WQOD9h1hMQvj9tS1s6yjLGrqvEGc 8eNNXaieqfZrNJGU+BlcDFcCR/OwThJ/OsvGbdSFKrXfq+zzAchgxAgGNi+VZmzilL F+SX8iPQopPEqGMMrI6z70+amx2+dcUln1CvBiOw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?G=C3=BCnther=20Noack?= , kernel test robot , =?UTF-8?q?G=C3=BCnther=20Noack?= , =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= Subject: [PATCH 6.18 089/275] selftests/landlock: Fix format warning for __u64 in net_test Date: Mon, 4 May 2026 15:50:29 +0200 Message-ID: <20260504135146.228305006@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260504135142.929052779@linuxfoundation.org> References: <20260504135142.929052779@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mickaël Salaün commit a060ac0b8c3345639f5f4a01e2c435d34adf7e3d upstream. On architectures where __u64 is unsigned long (e.g. powerpc64), using %llx to format a __u64 triggers a -Wformat warning because %llx expects unsigned long long. Cast the argument to unsigned long long. Cc: Günther Noack Cc: stable@vger.kernel.org Fixes: a549d055a22e ("selftests/landlock: Add network tests") Reported-by: kernel test robot Closes: https://lore.kernel.org/r/202604020206.62zgOTeP-lkp@intel.com/ Reviewed-by: Günther Noack Link: https://lore.kernel.org/r/20260402192608.1458252-6-mic@digikod.net Signed-off-by: Mickaël Salaün Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/landlock/net_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/landlock/net_test.c +++ b/tools/testing/selftests/landlock/net_test.c @@ -1344,7 +1344,7 @@ TEST_F(mini, network_access_rights) &net_port, 0)) { TH_LOG("Failed to add rule with access 0x%llx: %s", - access, strerror(errno)); + (unsigned long long)access, strerror(errno)); } } EXPECT_EQ(0, close(ruleset_fd));