Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp683541lqz; Sat, 30 Mar 2024 14:23:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVd+V2RrG4C1+WSjzVVp/Pkmt7WgZzTxXbd4Zu4ddtJrXX3kGx4EXWHhSVrpJOs00MvZHJND03Ga846C5QWq3Fr+MAFdwQbhSnMERRnkA== X-Google-Smtp-Source: AGHT+IEsKvajgDUMExZko7fl0HBBAN0yZTtw6i8mfaZFzcsVkUuRZrXPg6tT8VPUtfgSL38sUsOd X-Received: by 2002:a05:6358:5483:b0:181:65c9:a019 with SMTP id v3-20020a056358548300b0018165c9a019mr7086061rwe.28.1711833797133; Sat, 30 Mar 2024 14:23:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711833797; cv=pass; d=google.com; s=arc-20160816; b=oNzX0aelUHFgrX60tj7jj4JOUWJkgmwgSH6g+kPw5TIu/R826wBkUZpvxxOlRdsP26 XcJ0KFeHZ5FBhBqgwFnMrcSwUFiKRLcLuquEe64Phu+vvHGcHaGA9dNxcPFYJyRQxMz0 Ab7gW/+NJ+TGd0yxXnblR++8VtIe5502JaS/+ufw76fubDcyOpVk5KkX9W0P0rxZvd56 3iEb1bWgjYlF95/IBqpf7A0LgU3bdl/w3kiZcNo2gI06yPldn1CJtfFcQf01Po2neXXE vqffeuHGRIBS+s74e8NScIgwjrG7fmgBm7iEx/ScDrnAPron0jZJS1C5si5nFA9Cvkef Bu/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:cc:subject:to:reply-to:sender:from:dkim-signature :dkim-signature:date; bh=cO9DAoslNiaRo5wWS5uXMV/wBejmz6LP19eIIxQWH84=; fh=M0Hxw/530vVvCNERVWze0t87Lg0TTmwH0GgwdZ/HYwQ=; b=lA1EGdTyMfh2WaMRb534CvSbt3gK2X9RXixj++bkvASBLX+eQm5r9yW0Ve8VF1zQg9 uusAo0J0YqcEfaAkaLQQm30+cX/eUXgNzXxyXO84TGPHIIAoS8neNA+r9SxsjOrXW8Ab 3eazGIwutPZgdBwY8IVU5SOJ8bZbGjf8CNSgZ3XDuYgM2U1NvcJMWJ/HjWfsnyuMJRPC euQDoypVV90n+fIBUMrzYerFXOxe752bNGkELz5wgdfNbhxhq0nOlF7CgnjktAojxmq6 aGWhA7fiS+23WPp5hlGe+T0O+Y0WO+1Uo7f3xszwwQINxiuIfaXtgqQF+r5Am/vfkUq2 UOIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LoG92uf8; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-125891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id w5-20020a6556c5000000b005dc958db2fesi6004489pgs.34.2024.03.30.14.23.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 30 Mar 2024 14:23:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-125891-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=@linutronix.de header.s=2020 header.b=LoG92uf8; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-125891-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-125891-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 BE491282D12 for ; Sat, 30 Mar 2024 21:23:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 019974A99C; Sat, 30 Mar 2024 21:23:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LoG92uf8"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="7Ih3gkHa" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 7FA0A17D2; Sat, 30 Mar 2024 21:23:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711833791; cv=none; b=N60ZmogJcIrY2L6MU/GRXh8t0VDW9S1abCOo4sQlXFcD6zL8NQi4tuNRdBre1E0aZPSlGtcaHK/Dm/vagHxq1C1ZnVOJoBS79H4zJToADw/r0XmdLVxRdQH/3XF7SY2i60hEKYuX88gnJPfBg+SdUdNGTk/NfjscCJRY6BRN5GU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711833791; c=relaxed/simple; bh=kI2RgQKIy46E4/XMESMBolqMfp3inpi7STqcXxY3bTc=; h=Date:From:To:Subject:Cc:MIME-Version:Message-ID:Content-Type; b=NlPsmfyHkpTTQczfzqwZ5gghbr4Yfpvy1r9m1YwJ2VfZgh2tp/yLaSxgVolRrMwsyEA601cTAlpzXTjVCGO2T5zMSVjL01QzaeLkBRvAuGhRh5V+RoxSb52hwRuJSwqmfEGacFGdETjFydSlNgc/Ha7NTiFrQD6OLu8wSg+JP6s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=LoG92uf8; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=7Ih3gkHa; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Sat, 30 Mar 2024 21:23:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1711833787; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cO9DAoslNiaRo5wWS5uXMV/wBejmz6LP19eIIxQWH84=; b=LoG92uf8MRxCmeUIR8y99oipc+Ec0zFD01sBvcCvF4kvwqhzYticOJLJI2Imw1G5vJo48K Bhf+RiMe9EgjlzZmzkGKZ82tPKRa4isU0H5U59l7Aah0dn0cZjEbtzqXVjFssNM/ZS+gTX 75e/I4LlhP+L2LPHGaQiQw0YW7UiJy293F51HKFjcxZPZVnTZl9+nygJ/8mnoElJP8/jRe krQzC0A9e5CCsisk6s9o87MvmiS5RwCmOnay9T8/ZhxXCRdIq9GI6UnWS/2ngoR740U/xp mDIfcTPjXqgRfw0MXOVBb5pnpGmIQ5GYU7ghBmVb9aLbof0ilhnTmtYYzfXUbg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1711833787; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cO9DAoslNiaRo5wWS5uXMV/wBejmz6LP19eIIxQWH84=; b=7Ih3gkHaVxHnnSi5Qq66j9ZfM9NojoK8BpYL4FzLlJjZxysHt8r/Wxfv5+ofYJr/fZNw/e 732gzNiSePILIuAw== From: "tip-bot2 for Mikulas Patocka" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/urgent] objtool: Fix compile failure when using the x32 compiler Cc: Mikulas Patocka , Ingo Molnar , Josh Poimboeuf , linux-kernel@vger.kernel.org, x86@kernel.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171183378642.10875.5605747277159898590.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the objtool/urgent branch of tip: Commit-ID: 6205125bd326ed0153e5f9da3c4689fe60ae885a Gitweb: https://git.kernel.org/tip/6205125bd326ed0153e5f9da3c4689fe60a= e885a Author: Mikulas Patocka AuthorDate: Sat, 30 Mar 2024 20:23:08 +01:00 Committer: Ingo Molnar CommitterDate: Sat, 30 Mar 2024 22:12:37 +01:00 objtool: Fix compile failure when using the x32 compiler When compiling the v6.9-rc1 kernel with the x32 compiler, the following errors are reported. The reason is that we take an "unsigned long" variable and print it using "PRIx64" format string. In file included from check.c:16: check.c: In function =E2=80=98add_dead_ends=E2=80=99: /usr/src/git/linux-2.6/tools/objtool/include/objtool/warn.h:46:17: error: fo= rmat =E2=80=98%llx=E2=80=99 expects argument of type =E2=80=98long long unsig= ned int=E2=80=99, but argument 5 has type =E2=80=98long unsigned int=E2=80=99= [-Werror=3Dformat=3D] 46 | "%s: warning: objtool: " format "\n", \ | ^~~~~~~~~~~~~~~~~~~~~~~~ check.c:613:33: note: in expansion of macro =E2=80=98WARN=E2=80=99 613 | WARN("can't find unreachable insn at= %s+0x%" PRIx64, | ^~~~ ... Signed-off-by: Mikulas Patocka Signed-off-by: Ingo Molnar Cc: Josh Poimboeuf Cc: linux-kernel@vger.kernel.org --- tools/objtool/check.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/objtool/check.c b/tools/objtool/check.c index 0b10ad0..0a33d91 100644 --- a/tools/objtool/check.c +++ b/tools/objtool/check.c @@ -585,7 +585,7 @@ static int add_dead_ends(struct objtool_file *file) struct section *rsec; struct reloc *reloc; struct instruction *insn; - unsigned long offset; + uint64_t offset; =20 /* * Check for manually annotated dead ends.