Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3363237rwl; Tue, 27 Dec 2022 08:05:54 -0800 (PST) X-Google-Smtp-Source: AMrXdXs0jV+EgEZPDXY1wjITMUZbI77ciYYUpMM4dDmjTKA/r/wsKActVj0NgKTGtaGqJ+rx0gti X-Received: by 2002:a05:6402:2072:b0:487:6d4a:444c with SMTP id bd18-20020a056402207200b004876d4a444cmr1592226edb.28.1672157153915; Tue, 27 Dec 2022 08:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672157153; cv=none; d=google.com; s=arc-20160816; b=fT/1IeUcyR2AaHbzh+oe5iiIspda0etJ93kQuE3tjeqeh2BYKf9SphLz8v9lRJVbpM rdHRqG4H/FIzQw/M+KqPbmLpH/Qmyb1/tnXX93YNNJzlT+Aw16J0xPhhyG2gYc3GHK/s 42wh3y568YuH8ZAImhh6/oGOmHlkfgXemDvF/0nmqaA7fncmXJdX7EbQ7huBlERJ7/UO 2wiV11UhJiJuAeeW87TNPZDLlZiJb9HCe1Hhwwub/2MhIxkOp0yVN1DM7MeafvoNVrxL 7DPoIS8MKdAe20KTvtJT9yKvdMyZVYXi5QfbGH4Yx5glZEJ4PWjuM2IIZcOAPfaMjq7Z llwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:dkim-signature :from; bh=qXT+ska+Zfa3soNP6cWAAS3KADLdcrsw/rXZk+nP/O4=; b=qfrrhyZm/QcLUp+XkqGMTNd0zWvt+8l3BQ2BZ6cYu4bXCIq+mIjzbijynttE5zJWGJ du0o55XiG8ZVpdGm0/5FjDyCaU4Mr1ms3/XBSAEdZr3oCw1Ceuw4j4dTgf2D37II0CJO dWmw9TthQEFoQzaBnit1s2hMiifO7El8lH8rNePcyBUd0XWGYvyR6sISwcIfQqQlXu/u j8u3i2E04VRN/lK1j4nUGMBOaPMw8HGrUmSFK8beGH6sItQDy/ndes+3OIzM+lZzV3Af FBSonVBR1Z+VhZhwzt3JpQZq7TtHmYxOXZzR8kq8cLpCY3cwgS1qTKF923XY48ZBY/Nm gzyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=bGIKGHdI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z43-20020a509e2e000000b00468514cea79si11267260ede.204.2022.12.27.08.05.38; Tue, 27 Dec 2022 08:05:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@weissschuh.net header.s=mail header.b=bGIKGHdI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231972AbiL0QDH (ORCPT + 66 others); Tue, 27 Dec 2022 11:03:07 -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: 8bit 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= X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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ßschuh --- 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 char *str, int unset) return found ? 0 : -1; } -const struct option check_options[] = { +static const struct option check_options[] = { 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 fa45044e3863..2a108e648b7a 100644 --- a/tools/objtool/include/objtool/builtin.h +++ b/tools/objtool/include/objtool/builtin.h @@ -7,8 +7,6 @@ #include -extern const struct option check_options[]; - struct opts { /* actions: */ bool dump_orc; -- 2.39.0