Message ID | 20230612124024.520720-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2564889vqr; Mon, 12 Jun 2023 05:56:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4yr9GNhzT3u6qh+zPbTcOXtESS28e8cBaNshHLPi1cGmcSsyzCzsEXuPWPmu+yBlt7SKGj X-Received: by 2002:a05:6a00:807:b0:656:e7a2:5362 with SMTP id m7-20020a056a00080700b00656e7a25362mr11155602pfk.16.1686574617426; Mon, 12 Jun 2023 05:56:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686574617; cv=none; d=google.com; s=arc-20160816; b=a6bh8flA3gNh9lgyRAKqDov7LDp+lHKJlD4S1k3vT6Rap1q0S7iSrsUVIGaYBrqEfu Bpm3ynubQFeTWQCmzNdnQ4/mXV0qR6chhoW0X+BNsaLqVFQOvgD6GwaHRpj/ZjNu98fO 5etiAQqK5bzHP05dKb66DJM5S8UYHXDgC5XMl/e/YvxIiWCBd/XwEfSHDNl7MTaqIMFG 5gFi1KSKKvn2KElEkafPnI96SLAGm3NVNOPXgnhRTaxBtDPGAwNyWvmdzH0BhA53hlBn mRj6ohHk8mNccmJLRkuVQt5P6RSDMnywtBluV7sKCtc3U83ix/dIe23TZqK8Eed2KhSr UBhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=3OyA8ZCHK8ayP0xi7o+WAPtyNUTdzh7GUwXdTa5L/Ig=; b=azvRR2A7gwPHwr1d56HHq0yXj02UDs6PxJ1o+F8NY1iKP+QXA9tMxutT+ozh/xURxs rVn4NwXAXQMNJIMS5B+GBocf70unNSK7DacUbPk4ZMfKfP935ZP1v73GKpd80/0e9r3a HkLqQIm3SP2tkrZSk70aAvfzI6V+zHLCOkCm5oADkyaFLn7nUmsntT4pYcgFUqzppPYV rSIQj5bCvCG1DllgSnBuG8YIAj3gn0KjUgskmkVdBvs5ad7wXHgY9mxyGsuDYtfReghb O5vfg4j/tK0WEg2bOSsHS+aRSuGjtYyHdBK+o/rzSn1GHQ1SMDkZUY0tneaVwl4yGx9P edIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EvyNJE8Q; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l72-20020a63914b000000b0053ef518d7ffsi7121752pge.303.2023.06.12.05.56.44; Mon, 12 Jun 2023 05:56:57 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=EvyNJE8Q; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235127AbjFLMkk (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 12 Jun 2023 08:40:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233493AbjFLMkf (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 12 Jun 2023 08:40:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC0B3E4E; Mon, 12 Jun 2023 05:40:34 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4B3E361DDA; Mon, 12 Jun 2023 12:40:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6F0C6C4339B; Mon, 12 Jun 2023 12:40:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686573633; bh=A6bGNMNMde5NDVbabkyRI7fOdxDo5P2/Hp6ldKTKw+g=; h=From:To:Cc:Subject:Date:From; b=EvyNJE8QHXsqnkhPDN0RwUjIaTgp50gmyRxBVXf78l7CffpCTYKedAHHytcqiEFsh j3J8OpAlJ0rqweuexIStvLasjC61KfEqCivJV1deUQxWH4d6vU9FfMQsGotkM6WeXq GaGy4eUmWQHvccN9egFravTdCPWpgX9tkH6oFHtwu6E7PPvwmvq8dmCqzYjNAygXi3 ze5uxupfm2+jOLyzwZTA7+0DpK4tyVFlFQ5x9GsjScUlYS7l+qpd3u3ILrU3xvzkB9 ZBh0v9R1Q/ZJVaSIYyHhMPOKYU6omGdWArmq+VTOsymKV0iSvUgOxcJipCekMPhTNS 2VoZ74c/fV6pQ== From: Arnd Bergmann <arnd@kernel.org> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: Grygorii Strashko <grygorii.strashko@ti.com>, linux-omap@vger.kernel.org, Vignesh Raghavendra <vigneshr@ti.com>, Nishanth Menon <nm@ti.com>, Tero Kristo <kristo@kernel.org>, Arnd Bergmann <arnd@arndb.de>, Randy Dunlap <rdunlap@infradead.org>, Mao Wenan <maowenan@huawei.com>, Andrew Lunn <andrew@lunn.ch>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/3] net: ethernet: ti-cpsw: select CONFIG_GENERIC_ALLOCATOR Date: Mon, 12 Jun 2023 14:40:04 +0200 Message-Id: <20230612124024.520720-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1768501665697478288?= X-GMAIL-MSGID: =?utf-8?q?1768501665697478288?= |
Series |
[1/3] net: ethernet: ti-cpsw: select CONFIG_GENERIC_ALLOCATOR
|
|
Commit Message
Arnd Bergmann
June 12, 2023, 12:40 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> The dependency was lost for both cpsw and davinci-emac, but only added back for the emac driver, so a cpsw-only build can still fail: x86_64-linux-ld: vmlinux.o: in function `cpdma_desc_pool_destroy': davinci_cpdma.c:(.text+0xd9fb97): undefined reference to `gen_pool_size' x86_64-linux-ld: davinci_cpdma.c:(.text+0xd9fba8): undefined reference to `gen_pool_avail' x86_64-linux-ld: vmlinux.o: in function `cpdma_desc_pool_create': davinci_cpdma.c:(.text+0xd9fd21): undefined reference to `devm_gen_pool_create' x86_64-linux-ld: davinci_cpdma.c:(.text+0xd9fe15): undefined reference to `gen_pool_add_owner' x86_64-linux-ld: vmlinux.o: in function `__cpdma_chan_free': davinci_cpdma.c:(.text+0xd9ffde): undefined reference to `gen_pool_free_owner' x86_64-linux-ld: vmlinux.o: in function `cpdma_chan_submit_si': davinci_cpdma.c:(.text+0xda039e): undefined reference to `gen_pool_alloc_algo_owner' x86_64-linux-ld: davinci_cpdma.c:(.text+0xda064f): undefined reference to `gen_pool_free_owner' x86_64-linux-ld: vmlinux.o: in function `cpdma_check_free_tx_desc': Fixes: b2ef81dcdf383 ("net: ethernet: ti: Add dependency for TI_DAVINCI_EMAC") Fixes: 99f6297182729 ("net: ethernet: ti: cpsw: drop TI_DAVINCI_CPDMA config option") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/net/ethernet/ti/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/drivers/net/ethernet/ti/Kconfig b/drivers/net/ethernet/ti/Kconfig index fce06663e1e11..18b2160a96260 100644 --- a/drivers/net/ethernet/ti/Kconfig +++ b/drivers/net/ethernet/ti/Kconfig @@ -51,6 +51,7 @@ config TI_CPSW tristate "TI CPSW Switch Support" depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST depends on TI_CPTS || !TI_CPTS + select GENERIC_ALLOCATOR select TI_DAVINCI_MDIO select MFD_SYSCON select PAGE_POOL @@ -67,6 +68,7 @@ config TI_CPSW_SWITCHDEV depends on ARCH_DAVINCI || ARCH_OMAP2PLUS || COMPILE_TEST depends on NET_SWITCHDEV depends on TI_CPTS || !TI_CPTS + select GENERIC_ALLOCATOR select PAGE_POOL select TI_DAVINCI_MDIO select MFD_SYSCON