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 X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03CD2C433E0 for ; Tue, 26 Jan 2021 20:39:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C77DF22B3B for ; Tue, 26 Jan 2021 20:39:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727955AbhAZFJT (ORCPT ); Tue, 26 Jan 2021 00:09:19 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:57888 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728665AbhAYNTV (ORCPT ); Mon, 25 Jan 2021 08:19:21 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1l41lL-002X9J-MK; Mon, 25 Jan 2021 14:18:35 +0100 Date: Mon, 25 Jan 2021 14:18:35 +0100 From: Andrew Lunn To: Arnd Bergmann Cc: "David S. Miller" , Jakub Kicinski , Marek Vasut , Arnd Bergmann , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] [5.8 regression] net: ks8851: fix link error Message-ID: References: <20210125121937.3900988-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210125121937.3900988-1-arnd@kernel.org> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Mon, Jan 25, 2021 at 01:19:20PM +0100, Arnd Bergmann wrote: > From: Arnd Bergmann > > An object file cannot be built for both loadable module and built-in > use at the same time: > > arm-linux-gnueabi-ld: drivers/net/ethernet/micrel/ks8851_common.o: in function `ks8851_probe_common': > ks8851_common.c:(.text+0xf80): undefined reference to `__this_module' > > Change the ks8851_common code to be a standalone module instead, > and use Makefile logic to ensure this is built-in if at least one > of its two users is. > > Fixes: 797047f875b5 ("net: ks8851: Implement Parallel bus operations") > Signed-off-by: Arnd Bergmann Reviewed-by: Andrew Lunn Andrew