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 38969C636CD for ; Wed, 1 Feb 2023 16:26:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232024AbjBAQ0n (ORCPT ); Wed, 1 Feb 2023 11:26:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231529AbjBAQ0i (ORCPT ); Wed, 1 Feb 2023 11:26:38 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1F4E47920F; Wed, 1 Feb 2023 08:26:35 -0800 (PST) Date: Wed, 01 Feb 2023 16:26:34 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1675268794; 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=wDgGM6u+o+EUbvjE0P6jhCCqDJjLLc/y/R8z9Oqo3nE=; b=3imXThR67z4s66ri7suGxkA76IZmEaTLZAQMKoJSle8oVu0qzmBkfA4shMnvn/ttN0VD+1 P1CBYTrw/AzBSrhfeMsV1+phL2YZlNTO3aqtwwHLpcfX8D9hK9e0nfVhtVyhJQji5JxVkr LvE3O+KkLESuEKkyx/A4GBROGjJE2risD18sGeuvOHLtvzuStQqBm3G6RZPStfMpnO0fGC mgZdI/PrWtxGBOxzIL0681irWn6h1bRaNQhhKaPMIl/tM0np/vqfZQ5H+YUi1q0kzYc2c4 pOUTgN+XNQ1NAqgjfBYYNi0BmBO8F/Ixr730o9YeHCefLeup+D6AFkgEkJzlwg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1675268794; 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=wDgGM6u+o+EUbvjE0P6jhCCqDJjLLc/y/R8z9Oqo3nE=; b=eQSSN0+rS4sFZwJSRqhWOHsopKbpGiDxDpDazghww5ao3sSGqCeKlKDHVmOZ/oU3eB38Kj fpCT12vWtTmuYIBg== 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: <167526879412.4906.12774943479033852238.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: 3b066cdf0893993dcbfabe9ac443e6ff84df6218 Gitweb: https://git.kernel.org/tip/3b066cdf0893993dcbfabe9ac443e6ff84d= f6218 Author: Thomas Wei=C3=9Fschuh AuthorDate: Tue, 27 Dec 2022 16:00:58=20 Committer: Josh Poimboeuf CommitterDate: Mon, 30 Jan 2023 16:28:18 -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;