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 6A1F5C636CC for ; Sat, 4 Feb 2023 10:17:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233097AbjBDKRz (ORCPT ); Sat, 4 Feb 2023 05:17:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233379AbjBDKRY (ORCPT ); Sat, 4 Feb 2023 05:17:24 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AF9F6EAFD; Sat, 4 Feb 2023 02:17:14 -0800 (PST) Date: Sat, 04 Feb 2023 10:17:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1675505832; 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: in-reply-to:in-reply-to:references:references; bh=teelTh+iKlGzQQ4AB4tPE/FpJYA9DHVMjfiKfuy01vc=; b=V0a3BAjm+E3zg7sSi505dVxXHfoPLP+JC2KD54/xGTK68enc050gNPsPY262P9BJRu9djX N2x2ZVLlFdcJ4rusP39dC+ttn29r5iqOzLSYS/e96Jlr2mS9gDa3yHfiJ/H21P3B3v4ffU uSTUyz3gjGa1chc5MFX5JSv4zvJKZptdMYBg0ZjLu14m8NknZzmJFlOZnNFqRXp1kqaHfV Qfr2GpzEJroFgBPJEQAy/9Sq87puzXkEhG8ESBE1LThn7sU1Av82pv2+euGsT2wx0kKWWL ki7ouGhzv6cVfV+gWYuYDG3uHYhMRIHQzVJRM3vD3ucS5dxzDC/8UnQo8pkcbA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1675505832; 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: in-reply-to:in-reply-to:references:references; bh=teelTh+iKlGzQQ4AB4tPE/FpJYA9DHVMjfiKfuy01vc=; b=A3pzcxqGbGKxGwRKxh4Cdgn+Ouec3pOJGBSWWSEFoJ6NRvdKkyiwuoBS/JbVN6wMAsn8PQ KtXF/dzHhsINTSBA== From: tip-bot2 for Thomas =?utf-8?q?Wei=C3=9Fschuh?= Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] objtool: Make struct check_options static Cc: linux@weissschuh.net, Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20221216-objtool-memory-v2-2-17968f85a464@weissschuh.net> References: <20221216-objtool-memory-v2-2-17968f85a464@weissschuh.net> MIME-Version: 1.0 Message-ID: <167550583192.4906.13829880413446846923.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the objtool/core branch of tip: Commit-ID: cfd66e81799f4a2fdc6447fa99bdb1871f45ff08 Gitweb: https://git.kernel.org/tip/cfd66e81799f4a2fdc6447fa99bdb1871f4= 5ff08 Author: Thomas Wei=C3=9Fschuh AuthorDate: Tue, 27 Dec 2022 16:00:58=20 Committer: Josh Poimboeuf CommitterDate: Wed, 01 Feb 2023 09:15:23 -08:00 objtool: Make struct check_options static It is not used outside of builtin-check.c. Also remove the unused declaration from builtin.h . Signed-off-by: Thomas Wei=C3=9Fschuh Link: https://lore.kernel.org/r/20221216-objtool-memory-v2-2-17968f85a464@wei= ssschuh.net Signed-off-by: Josh Poimboeuf --- 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 a4f3940..7c17519 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 char= *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/include/= objtool/builtin.h index fa45044..2a108e6 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;