From mboxrd@z Thu Jan 1 00:00:00 1970 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 6B08AEB64DC for ; Mon, 26 Jun 2023 18:24:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231837AbjFZSYI (ORCPT ); Mon, 26 Jun 2023 14:24:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231843AbjFZSXx (ORCPT ); Mon, 26 Jun 2023 14:23:53 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10E132137 for ; Mon, 26 Jun 2023 11:23:25 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 301B160F6D for ; Mon, 26 Jun 2023 18:23:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3799CC433CA; Mon, 26 Jun 2023 18:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1687803800; bh=7GvhKF1iSDbHO+OCyxzAUWOgKaaTaZ+MHS1+Pk9HtO0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Al4xpExS0lMuDW8VM7wUZoGrAZyR1Wp3EwerqKwujQsJV+3x6KTLuvh2EqGGx2Jxq 7JmLMpvVEbuZNCGpR5a8C+VUuSUQxB6K+JHMXgGnnOHSfhp14ACslr0xGaHjH+pbbS 9lbjQrg5h0yNzmgIm0lSUpJCKaM2g/rc9SXB6tXE= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Min-Hua Chen , Pedro Tammela , "David S. Miller" , Sasha Levin Subject: [PATCH 6.3 180/199] net: sched: wrap tc_skip_wrapper with CONFIG_RETPOLINE Date: Mon, 26 Jun 2023 20:11:26 +0200 Message-ID: <20230626180813.655617170@linuxfoundation.org> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230626180805.643662628@linuxfoundation.org> References: <20230626180805.643662628@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Min-Hua Chen [ Upstream commit 8cde87b007dad2e461015ff70352af56ceb02c75 ] This patch fixes the following sparse warning: net/sched/sch_api.c:2305:1: sparse: warning: symbol 'tc_skip_wrapper' was not declared. Should it be static? No functional change intended. Signed-off-by: Min-Hua Chen Acked-by: Pedro Tammela Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- net/sched/sch_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c index 3f7311529cc00..34c90c9c2fcad 100644 --- a/net/sched/sch_api.c +++ b/net/sched/sch_api.c @@ -2324,7 +2324,9 @@ static struct pernet_operations psched_net_ops = { .exit = psched_net_exit, }; +#if IS_ENABLED(CONFIG_RETPOLINE) DEFINE_STATIC_KEY_FALSE(tc_skip_wrapper); +#endif static int __init pktsched_init(void) { -- 2.39.2