Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp3215536rwl; Tue, 27 Dec 2022 06:06:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXvbR3Df2Nqlp/MfmYHZhF+Yoi9iIYT4f9X0dCzafWl+Tu7QWnpIwX+SKfnRRbAWh4XKo0f1 X-Received: by 2002:a05:6402:25c6:b0:46c:d2a3:76b3 with SMTP id x6-20020a05640225c600b0046cd2a376b3mr20216115edb.14.1672149977569; Tue, 27 Dec 2022 06:06:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672149977; cv=none; d=google.com; s=arc-20160816; b=cmjPtz0j/otul3H4TJWU4c1/fxLGeVXXxsRDq9MEqsUMv/MahEiVKisdBs/tnzttDM AYPsaGwwrsDkGc4JHuI5Dx5GxP6THYG/C/6ImbOAeuVnYTsO7BRuwQR2PiEhoMajhTih lbrdlTz8j9XcM4q+IsRmp51oQJxo3mLnEthiHhrDKQFKmf9sg7DiL+QpGsXIf9CQAJ2G QtwwrXqg3Y+cKPpB46NwjkKkBQYz2lzyQ6X5haprnID7RznDcPM6AsWrpANEUmQN2GnA CYUouTl04cHYOv04BHJPL/pXjisVXB3MWuVmlbZDpxC9pS6GYbB7hTseiiys/vRiXiJd FRjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=i7pAa6GrsUMa9aMR3tkmNbY+p2zZDCAQG5QANHco4Hs=; b=hyAfni+gowD4jotsbMVThuKA8jSO0tvhnmUmXIHdDDLO/5gcHKP6m5wTFVLCK3TE/B LuKJS5bpneaR6DWwVHJ2yC6vybrF+2u4hPYJ71OMuT8mOqjah9Y24TEirDlcFps0yQhl leFC6kMLkA/O2D8BTOrgUhrUWF2f143ng06p4lkS7Xv9HZ+/3lmpPlAI76rIbvJPgS80 eEyU1Z0NcfhOA2paBKkMccWtml7rnI/eoMB5O+4fadjN1ipqGY5LhlWgYW78YrO/UcAt 3jwCrG6cTP0Ofx/YpFJbR4AFZeUSJhCheBNf+LWAQwVZg0mZyddm/UIk9/zqMDC3hV26 62yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@heitbaum.com header.s=google header.b=N2TIZYSV; 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 s5-20020a056402520500b004677d91cdeasi12661197edd.244.2022.12.27.06.06.02; Tue, 27 Dec 2022 06:06:17 -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=pass header.i=@heitbaum.com header.s=google header.b=N2TIZYSV; 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 S230092AbiL0NrZ (ORCPT + 66 others); Tue, 27 Dec 2022 08:47:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231221AbiL0NrY (ORCPT ); Tue, 27 Dec 2022 08:47:24 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5CE4B867 for ; Tue, 27 Dec 2022 05:47:21 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id b2so13272833pld.7 for ; Tue, 27 Dec 2022 05:47:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heitbaum.com; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=i7pAa6GrsUMa9aMR3tkmNbY+p2zZDCAQG5QANHco4Hs=; b=N2TIZYSVv/smePKAhsiOvYTxPgDB69wMf0p2OBwSSVHkvmWIqbaXM5VXmiG/XoNNoq TXuB68OHweM9bgZPxjz1U+HPPPOYzweoko9YTONHTru/HxYw+rpx36eTy//Fgi4p2INB sZwSYilto7oU2uEDAi3yD7ydDQCIqajhUq6kw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=i7pAa6GrsUMa9aMR3tkmNbY+p2zZDCAQG5QANHco4Hs=; b=LAWPTMe0eX9ZHMWcOIQ84VAwlLtJIzHF13b4SYbikU02hXj7jo0rsrqW/1m8fVqujW TwjX+ahnneHLdi9PdZL01MNM/Pl8Ws0Jfrw5OPut4bWvUigapjPFkSFWVOK9IUyBC5BQ e6z7/QlhA1APNyy8mvWDY15uhl+O62P1H+1X1GFZmM4hx4Zc13fdDtjXsteT5iaOVrx5 Dd8m2xs50eeGQMoP6Lt68PEtZFBx5cP1/3MDkOz1zqZ+NI3R48qw+QDSgllX3c6Vrqpj YyDxZMsT4fn/viLXEDOqp3I6lngCQGUXrwJHKK2pC2HQf4Jpf8uk2HwDCMxGlRQN3dAo co/Q== X-Gm-Message-State: AFqh2kpaQIdtd6oj7LH9pZfQBlaLsyd4dA+ne5i0xNE1IVQBsH+jQM8o Pq1xOrEFsTC31ykG0PK3yrzPxw== X-Received: by 2002:a17:902:e74d:b0:189:6d2f:4bcd with SMTP id p13-20020a170902e74d00b001896d2f4bcdmr30429794plf.0.1672148841140; Tue, 27 Dec 2022 05:47:21 -0800 (PST) Received: from 19b382bb30c4 (lma3293270.lnk.telstra.net. [60.231.90.117]) by smtp.gmail.com with ESMTPSA id 2-20020a170902c20200b00190f5e3bcd9sm9166096pll.23.2022.12.27.05.47.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Dec 2022 05:47:20 -0800 (PST) Date: Tue, 27 Dec 2022 13:47:06 +0000 From: Rudi Heitbaum To: Pedro Tammela Cc: netdev@vger.kernel.org, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com, jiri@resnulli.us, kuniyu@amazon.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next v6 0/4] net/sched: retpoline wrappers for tc Message-ID: <20221227134706.GA344240@19b382bb30c4> References: <20221206135513.1904815-1-pctammela@mojatatu.com> <20221227083317.GA1025927@82a1e6c4c19b> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Tue, Dec 27, 2022 at 09:24:22AM -0300, Pedro Tammela wrote: > On 27/12/2022 05:33, Rudi Heitbaum wrote: > > Hi Pedro, > > > > Compiling kernel 6.2-rc1 fails on x86_64 when CONFIG_NET_CLS or > > CONFIG_NET_CLS_ACT is not set, when CONFIG_RETPOLINE=y is set. ... > Hi Rudi, > > Thanks for the report. > Could you try the following patch? > > diff --git a/include/net/tc_wrapper.h b/include/net/tc_wrapper.h > index ceed2fc089ff..d323fffb839a 100644 > --- a/include/net/tc_wrapper.h > +++ b/include/net/tc_wrapper.h > @@ -216,6 +216,8 @@ static inline int tc_classify(struct sk_buff *skb, const > struct tcf_proto *tp, > return tp->classify(skb, tp, res); > } > > +#endif /* CONFIG_NET_CLS */ > + > static inline void tc_wrapper_init(void) > { > #ifdef CONFIG_X86 > @@ -224,8 +226,6 @@ static inline void tc_wrapper_init(void) > #endif > } > > -#endif /* CONFIG_NET_CLS */ > - > #else > > #define TC_INDIRECT_SCOPE static Hi Pedro, I had to adjust it slightly to apply cleanly. But works correctly with my .config now. Thanks Rudi Tested-by: Rudi Heitbaum diff --git a/include/net/tc_wrapper.h b/include/net/tc_wrapper.h index ceed2fc089ff..d323fffb839a 100644 --- a/include/net/tc_wrapper.h +++ b/include/net/tc_wrapper.h @@ -216,6 +216,8 @@ return tp->classify(skb, tp, res); } +#endif /* CONFIG_NET_CLS */ + static inline void tc_wrapper_init(void) { #ifdef CONFIG_X86 @@ -224,8 +226,6 @@ #endif } -#endif /* CONFIG_NET_CLS */ - #else #define TC_INDIRECT_SCOPE static