Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4037187pxb; Fri, 11 Feb 2022 13:37:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJyW+zwMsozPIaGPpiHbwPGs9tHzSYt5yRW2vJ7pNAvt9kgqxL6XVoEb6QQVJTIZA6dubG2y X-Received: by 2002:a05:6402:5212:: with SMTP id s18mr4031079edd.379.1644615421931; Fri, 11 Feb 2022 13:37:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644615421; cv=none; d=google.com; s=arc-20160816; b=vnO/lhtVb1JslLEOW6sQluLUZMn3bEsYD4g0N8Tl9lkOKkmiwH92dakZfTiExR7kaE 0aQiyoPejDOQGjd0IE0ruPSWwAE0TI3VnwpEIvGACY3xF3dFHZ9xTrwMGyl6yFSHtTDv Fs41e60O5Dcq8wLQ8xWTA4JXotRvoFyvcoPqesZjLZrdFN0iRucDOiPbTjHgE47wl2W0 QlIFnCHnHZrN9Z7lj73mz09UD7qVIAleRLDcehrbhCPd+DODoIgs+LkGNFa/iHsruv4+ tNKZBzHXQC5D2pVMb5Tsy8K/LRTZ+LU8Vm0NA9fxfZBCaX7QzAbrMZI11saYyZRQmrav Ym4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=AluQhblsYxVB6MXmZPefwr1gRPxgWLvjtu1enYqV/OM=; b=GUXZ7ixWRFc069+f7c9OUIKhq/CVxM8F63I5H7wyMhb6zANVJa3Dg1+UBlWXrEPe0Z yl9Is0PjwvxA69LmdlWOqWTqduHm5wlTr1mPgg/tG4XNOd2OQibkN6OAlgvouyEbJTMd 1kbLwZ/SZlRDIK+xZWps0ov16O2W2UIPyhQtD86kBNHs4Z1jlpx/MXtPTvFqRb1mpN1Z 4LLHmOD235xqS55pI/FmQkQ8/uWPiKp4glqf17ZR0mjkmccC7x8TK07OrRuKTaf9kFNb tTK5nIWkThgYaono33HK+nZxHrKEUkX6omj7tD7alFnmSAymARmHqvcHoRsILoaITml1 K1jQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=AweMfrL2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t20si466434edw.366.2022.02.11.13.36.37; Fri, 11 Feb 2022 13:37:01 -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=@chromium.org header.s=google header.b=AweMfrL2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352965AbiBKToK (ORCPT + 99 others); Fri, 11 Feb 2022 14:44:10 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:56290 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232686AbiBKToI (ORCPT ); Fri, 11 Feb 2022 14:44:08 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F270038F for ; Fri, 11 Feb 2022 11:44:06 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id qk11so4633900ejb.2 for ; Fri, 11 Feb 2022 11:44:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=AluQhblsYxVB6MXmZPefwr1gRPxgWLvjtu1enYqV/OM=; b=AweMfrL2L+mSok1hCUX9TP752KsO1feW1ZVW/nKLTq0WDqUigTqbIAcm9lXGFuMLoR He6+EjLcu5miMXc4MNxgl50SMX9Bt19Vp0HWXsYqTNOQuyYa7rQr11sZh6CCnHg9w2lt WjwRXewgAPQxOT3VAh+8zkRUBcfKgWZyZmNuM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=AluQhblsYxVB6MXmZPefwr1gRPxgWLvjtu1enYqV/OM=; b=sz1wwiHPSxZmR54EIbQKzTTwXHYSFOdskln0BZlkj6QTAlFJ5teZIqWAMH/sSVJ0Wk /r4oqqTx/ZsPTGN8nI2wAGdhiG8gnXZbVOsMKYq84DqcKz5aA/vjKJhTHIXFL0aaBaeD 4enMoZMy9kxmCwqUopQLN1A0Tb23wX2QkuM2hkmG7IbU6AKJbzB2QnBxsDIWOU5l/iID VIPzsSJJVkUg1gDFx2d2ycK/pXGwgCi/aJDoUKx3ZLe+kvJ8O4R0fG0AcTBwiu9Ni5AA 2rCu2+0wIEdJ40lFgCdxrlpad0/v/U3cR+FNwmCZKgUeJFJqUSi7zWLoMX3dAltpw0Qh fngQ== X-Gm-Message-State: AOAM533VdOYT899siJcdaMPf+5i3hrDONo+BHU4f45IDeJZ0FqyMlo+n 3xKx2PBF6rCBbJd7Ujx1Rstz9bEb2plKVp8+ X-Received: by 2002:a17:907:a428:: with SMTP id sg40mr2750680ejc.128.1644608645449; Fri, 11 Feb 2022 11:44:05 -0800 (PST) Received: from mail-ej1-f50.google.com (mail-ej1-f50.google.com. [209.85.218.50]) by smtp.gmail.com with ESMTPSA id z4sm8148703ejd.39.2022.02.11.11.44.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 11 Feb 2022 11:44:04 -0800 (PST) Received: by mail-ej1-f50.google.com with SMTP id p15so24986641ejc.7 for ; Fri, 11 Feb 2022 11:44:04 -0800 (PST) X-Received: by 2002:a17:906:15ca:: with SMTP id l10mr2791084ejd.435.1644608644279; Fri, 11 Feb 2022 11:44:04 -0800 (PST) MIME-Version: 1.0 References: <20220211164026.409225-1-ribalda@chromium.org> In-Reply-To: From: Ricardo Ribalda Date: Fri, 11 Feb 2022 20:43:53 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] net: Fix build when CONFIG_INET is not enabled To: Eric Dumazet Cc: "David S. Miller" , Jakub Kicinski , Hideaki YOSHIFUJI , David Ahern , netdev , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Eric I failed to find that patch. I only searched in linus/master. Please ignore mine. Thanks. On Fri, 11 Feb 2022 at 18:24, Eric Dumazet wrote: > > On Fri, Feb 11, 2022 at 8:40 AM Ricardo Ribalda wrote: > > > > If the kernel is configured with CONFIG_NET, but without CONFIG_INET we > > get the following error when building: > > > > sock.c:(.text+0x4c17): undefined reference to `__sk_defer_free_flush' > > > > Lets move __sk_defer_free_flush to sock.c > > > > deja vu ? > > commit 48cec899e357cfb92d022a9c0df6bbe72a7f6951 > Author: Gal Pressman > Date: Thu Jan 20 14:34:40 2022 +0200 > > tcp: Add a stub for sk_defer_free_flush() > > When compiling the kernel with CONFIG_INET disabled, the > sk_defer_free_flush() should be defined as a nop. > > This resolves the following compilation error: > ld: net/core/sock.o: in function `sk_defer_free_flush': > ./include/net/tcp.h:1378: undefined reference to `__sk_defer_free_flush' > > Fixes: 79074a72d335 ("net: Flush deferred skb free on socket destroy") > Reported-by: kernel test robot > Reviewed-by: Tariq Toukan > Signed-off-by: Gal Pressman > Reviewed-by: Eric Dumazet > Link: https://lore.kernel.org/r/20220120123440.9088-1-gal@nvidia.com > Signed-off-by: Jakub Kicinski -- Ricardo Ribalda