Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4007446pxb; Fri, 11 Feb 2022 12:48:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxni6kCCrX40k211TWwm3LFIZQCB9WXuA6xu4jaISoe7YFTMW1xBMu5CTeBuoWxqWmXIo3X X-Received: by 2002:a05:6402:42cc:: with SMTP id i12mr3836366edc.220.1644612507076; Fri, 11 Feb 2022 12:48:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644612507; cv=none; d=google.com; s=arc-20160816; b=BZ4kn4mjTVkbroR+GXWLT4/c5w2e28g/Uh8bARm2Zr4tCbjsx81Lhti/2/8GsbjUHh 2vg6QbCkFqp9IrJfRu9ri/xZTBwwZNIBsWjPY/sOVukHEC5HrfFtFrBjO12rySN8fuT8 x6OnVo4WhLSPY0hd8R/NyUpfg3rhgr1NLlAsHfyQf+rXdnUnhBYCsK+8bkwKMGEP1isa Pjti3vboZtu0y8g08HDJVfd75aDAIT+MZyirN2cTZP5EewgncXHJg6szGsHl6O9BRL7w AJXa0V7qfrH1lT8fBhD0P3Zw09V++HyYl0kDGYcGVMshH9r5RxfOOWH9jmI8v86y8dHE LLvg== 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=1f5nHZJ9uVD6/I7NM/ovxfltUAK5E77rKDDs7ab4Xic=; b=rwTPa83BOl7R+x9x0Rq7kZsFRUnGTXrZxzfZhKuf3rh/gYv1MhjKIS47GOI2zJa2Jp prNkF0iRri2eA+X4rZGkjk3RJ3OEm3xYoaitVFYorfR+LlXUrnsqKcQHlmUTEVfFYqtp SVZR60qV5qd7FYV1xct6lXUbmsxRKf3Bm566WBAfG1epm9jeQnfMN/eAEvQ9cbV0azCb /Q+5V7p73+9uVZbg2KH+5wdIb+h4Zy3RLTVJi+mgoJz/ZDQ4/7N6IrtuOVaONpd3y2F5 HsCpfY4pzZpfywrXCPXGSMisbJwH6J5AvTngAfwy8IsjdqWxWJdqhyBj4UbbxTYcXUmw FFgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=hdu4UcvL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h22si9463844ede.436.2022.02.11.12.48.01; Fri, 11 Feb 2022 12:48:27 -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=@google.com header.s=20210112 header.b=hdu4UcvL; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352067AbiBKRYq (ORCPT + 99 others); Fri, 11 Feb 2022 12:24:46 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:43458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232559AbiBKRYo (ORCPT ); Fri, 11 Feb 2022 12:24:44 -0500 Received: from mail-yb1-xb29.google.com (mail-yb1-xb29.google.com [IPv6:2607:f8b0:4864:20::b29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C13CEB for ; Fri, 11 Feb 2022 09:24:43 -0800 (PST) Received: by mail-yb1-xb29.google.com with SMTP id v186so27030827ybg.1 for ; Fri, 11 Feb 2022 09:24:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1f5nHZJ9uVD6/I7NM/ovxfltUAK5E77rKDDs7ab4Xic=; b=hdu4UcvLhoPoj1+nnYpidzG5ybt+SATEc36EIA2F0rim60MDWLZbsC80UkLLFmgXby 6I7VzLYSiW5Hapfkc4bxg/0zMn3VeyGHa9/SvKDExmKANfuJfsNd6je7gRTcEAM/wO2E 5k/ztc0BzeVqRc/H/3YbHOxS3vgNm34Mbjg/TDoA/kaFo5G8eyLRjuaGUtF9h0KcMX9m fEuLqzzSDlJ0RCRESc6rqHoVWILYakTV0dwZXWrP4312DRfINDk2pgn0Fu7FKQ3rF7x0 25wJIFy+QCKBFG07xvaYmccVexj7YtoX+pqqDBPrxZ6At0yiOQT+AwCoJmqV3vTfAtPA QcMA== 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=1f5nHZJ9uVD6/I7NM/ovxfltUAK5E77rKDDs7ab4Xic=; b=YEbduahd9FyhJoRvc5NYTjPjeNyjrsrUqnXciyXuGsAFaLQHNyGHD/kVdJ6p+vuOYl GyyWoz1mWUC/HvDq7yxmTeu6fNUxtfc1ZS1/rrnMO9RCh+V6r56Z22j1/IyhTJenFIYD WAJieFIPMVGqflwUmAz0h726jVqJSSxwQBETuhiy9gP5htX2smKw2d8WsfOO79r8aWvC 8c4brSRYsP+N+oVXEyytZ+T7L/dOoCKm6V58sLSXf0IQlnSRypRk1xfKl7cWyxnDujTF gsVN8Yp/T3/8adS8pz+/Z7Nl+h0BLQD0xkELMKCTWuJpQ4HQ5gGzzPFSJjACNwozzHCK CtIA== X-Gm-Message-State: AOAM532yBHZtJVJFTEqfKXOl3ONM816d2bENcfU/hTmRSxnFbCqn19uB JwvM4uhM37Z9zCRBq36hQINPVBuvCr1WkqiqwJgKAg== X-Received: by 2002:a25:8885:: with SMTP id d5mr2268605ybl.383.1644600281921; Fri, 11 Feb 2022 09:24:41 -0800 (PST) MIME-Version: 1.0 References: <20220211164026.409225-1-ribalda@chromium.org> In-Reply-To: <20220211164026.409225-1-ribalda@chromium.org> From: Eric Dumazet Date: Fri, 11 Feb 2022 09:24:30 -0800 Message-ID: Subject: Re: [PATCH] net: Fix build when CONFIG_INET is not enabled To: Ricardo Ribalda Cc: "David S. Miller" , Jakub Kicinski , Hideaki YOSHIFUJI , David Ahern , netdev , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 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