From nobody Tue Sep 16 23:46:23 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 913F7C10F1B for ; Tue, 27 Dec 2022 16:03:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232016AbiL0QDI (ORCPT ); Tue, 27 Dec 2022 11:03:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231575AbiL0QCv (ORCPT ); Tue, 27 Dec 2022 11:02:51 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B9991D73 for ; Tue, 27 Dec 2022 08:02:49 -0800 (PST) From: Thomas =?utf-8?q?Wei=C3=9Fschuh?= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1672156966; bh=s5ecXOvEehEk53y4y2OsKyfg1cQWJRf01QzJ+Hcl4rk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=bGIKGHdIZ/KqixZJ7Q5PHiVT7CjHcdMVbIheTEv+Mv16FdEi59VKqdEqVRutatzZX owjZJgDOzaBYLsH/rkR3ptyxR2QtPbdfp4v7o0Zuq36H4wJHDs4SoyAiry+EDq4okl oMP2i8+QIgJUvkdUWkNZZC7WBAkvXPrf1xB/inR4= Date: Tue, 27 Dec 2022 16:00:58 +0000 Subject: [PATCH v2 2/8] objtool: make struct check_options static MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20221216-objtool-memory-v2-2-17968f85a464@weissschuh.net> References: <20221216-objtool-memory-v2-0-17968f85a464@weissschuh.net> In-Reply-To: <20221216-objtool-memory-v2-0-17968f85a464@weissschuh.net> To: Josh Poimboeuf , Peter Zijlstra Cc: linux-kernel@vger.kernel.org, Thomas =?utf-8?q?Wei=C3=9Fschuh?= X-Mailer: b4 0.11.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1672156865; l=1353; i=linux@weissschuh.net; s=20221212; h=from:subject:message-id; bh=s5ecXOvEehEk53y4y2OsKyfg1cQWJRf01QzJ+Hcl4rk=; b=h6yH1/xaYHrNAEVhKJ/pU5PXmhFBqfDVr6QKS8oRm+oyYvouX6nXqdoGXJ0rf3+iCugXF1ms329M 0xIG269CD2SSQp5lQY4O91LF7o7iMBHHTRULpI014EJsmQVcwdRs X-Developer-Key: i=linux@weissschuh.net; a=ed25519; pk=KcycQgFPX2wGR5azS7RhpBqedglOZVgRPfdFSPB1LNw= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It is not used outside of builtin-check.c. Also remove the unused declaration from builtin.h . Signed-off-by: Thomas Wei=C3=9Fschuh --- tools/objtool/builtin-check.c | 2 +- tools/objtool/include/objtool/builtin.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/tools/objtool/builtin-check.c b/tools/objtool/builtin-check.c index a4f39407bf59..7c175198d09f 100644 --- a/tools/objtool/builtin-check.c +++ b/tools/objtool/builtin-check.c @@ -65,7 +65,7 @@ static int parse_hacks(const struct option *opt, const ch= ar *str, int unset) return found ? 0 : -1; } =20 -const struct option check_options[] =3D { +static const struct option check_options[] =3D { OPT_GROUP("Actions:"), OPT_CALLBACK_OPTARG('h', "hacks", NULL, NULL, "jump_label,noinstr,skylake= ", "patch toolchain bugs/limitations", parse_hacks), OPT_BOOLEAN('i', "ibt", &opts.ibt, "validate and annotate IBT"), diff --git a/tools/objtool/include/objtool/builtin.h b/tools/objtool/includ= e/objtool/builtin.h index fa45044e3863..2a108e648b7a 100644 --- a/tools/objtool/include/objtool/builtin.h +++ b/tools/objtool/include/objtool/builtin.h @@ -7,8 +7,6 @@ =20 #include =20 -extern const struct option check_options[]; - struct opts { /* actions: */ bool dump_orc; --=20 2.39.0