Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp417354pxh; Tue, 9 Nov 2021 12:50:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrXS8ry/pX/lBU5BGZMhfQzdHqfTauaBdtGrarkDP5hlPgy3QxRzjdaC8FZB4/tUFocdac X-Received: by 2002:a05:6402:350e:: with SMTP id b14mr14088689edd.271.1636491001451; Tue, 09 Nov 2021 12:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636491001; cv=none; d=google.com; s=arc-20160816; b=QYpgCtjEP6m22/XGf2o0mlSYRZU7ndUC3UpdtP4+LE3i/qN6vYrYiVnjVCF1SMc4Cs yKjO+wu8LX50rR1OzYt0d5ZJYsqftzF5LWpPOO863l+7C6CmorclGOy8KH1Z9zvVoEZa 7X20boEKFUGGvTzb46SUOCkTismisCzFXY7hmeP18POrEDnHAu8S86+CqQIIDHTYyEFP 4Uq/1veuZG8vkNWmbcjyotM8YQHdSMs/slMTQm5CF/X0yaa2VV4xWDwu2tQgVDC9D6D6 Oak0kbeqdgNW25lGzHev3GW4Hif+tLAFbPxeWv/h4C/wJUn7x3dfA+8Ua6vlF/TUQMfO K5Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:dkim-signature:message-id; bh=zVR7Mogf6s4EwqQxKfIE82QSXL5TJMC/vQqFb693/O4=; b=HK2Fi7pe2U68GQ4ImXNyW20u+ymOi+sXSBw7Fo9JB2t3KuRxEM9+Zbfx9N2+7lHX8L 9dW7MLmtT8Oz8dQBn6ZTagmh8rfhybWS7mAwAWit0BLBpUbax4h1rw0xHeGVJT8GNHkv hVlOEKomshS0JCDF6DemrSt5/eVN4DD2Bt5D8WirwtxITMMSQ39O7sYifWJxX1hVe43i 6dG1lpnyHNQBcYcXBOi1NPVSOTpmBPGccgmZp0O+NIEWwbngziIPWD0fmG8zLXRXeKPm +vBJZwCHQVepR72X821MxhcXKA2IaGGAEWcJ3u8HBcYplWhyua5rTTWS89E9I/0VkVCt LFuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=qGuoJ+5p; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="voG/2TOP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si43379433edf.532.2021.11.09.12.49.32; Tue, 09 Nov 2021 12:50:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=qGuoJ+5p; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="voG/2TOP"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245598AbhKILPt (ORCPT + 99 others); Tue, 9 Nov 2021 06:15:49 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:35482 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243520AbhKILPt (ORCPT ); Tue, 9 Nov 2021 06:15:49 -0500 Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1636456382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zVR7Mogf6s4EwqQxKfIE82QSXL5TJMC/vQqFb693/O4=; b=qGuoJ+5pmCdeQh02LYXsR7oCVd8SAKCypNkp5nhK8jdRAHWbADV8Xm1afg7o9Z7p+o9Ay/ NkGFrAOlN+4pP7rGC6G3iVhJ/UAEUJTGQP+VxpQ2WLvE+GxbJSOfk54Mq1piSqOAUb/GTu CavsQDsf/0kRRGykIPZC51lrEoXStF5ah54UhfaPgwSDfOzgg55BW1z45IqzbNGfugP56L mAiHIbfeoDJR31h8posD8vfcaHG4a1YanntVKW0Mo9CdG79OWFgxBFCw2WJwHSibLv8tX3 S6R+URdXKPsyR9bsR63U3gqwnmYvMrIkrJeMHxFk6FU2YqhBVycqtejp1HxBAw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1636456382; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zVR7Mogf6s4EwqQxKfIE82QSXL5TJMC/vQqFb693/O4=; b=voG/2TOPVzcQCUcZkDtkWSgD8DLM/QcpUs5o5WShQizun9r2Tp7VpUlamDkscgZZq2hEY4 mERSfMT/RENvm5Aw== Date: Tue, 9 Nov 2021 12:13:01 +0100 MIME-Version: 1.0 Subject: Re: [PATCH v2 0/7] Add PTP support for BCM53128 switch Content-Language: de-DE To: Vladimir Oltean Cc: Florian Fainelli , Andrew Lunn , Vivien Didelot , Richard Cochran , "David S. Miller" , Jakub Kicinski , John Stultz , Thomas Gleixner , Stephen Boyd , Russell King , Marc Kleine-Budde , linux-kernel@vger.kernel.org, netdev@vger.kernel.org References: <20211109095013.27829-1-martin.kaistra@linutronix.de> <20211109103936.2wjvvwhihhfqjfot@skbuf> From: Martin Kaistra In-Reply-To: <20211109103936.2wjvvwhihhfqjfot@skbuf> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am 09.11.21 um 11:39 schrieb Vladimir Oltean: > On Tue, Nov 09, 2021 at 10:50:02AM +0100, Martin Kaistra wrote: >> Ideally, for the B53=m case, I would have liked to include the PTP >> support in the b53_module itself, however I couldn't find a way to do >> that without renaming either the common source file or the module, which >> I didn't want to do. >> >> Instead, b53_ptp will be allowed as a loadable module, but only if >> b53_common is also a module, otherwise it will be built-in. > > Does this not work? > > obj-$(CONFIG_B53) += b53_common.o > > ifdef CONFIG_B53_PTP > b53_common-objs += b53_ptp.o > endif > > (haven't tried though) > I get: arm-linux-gnueabihf-ld -EL -r -o drivers/net/dsa/b53/b53_common.o drivers/net/dsa/b53/b53_ptp.o and ERROR: modpost: "b53_switch_register" [drivers/net/dsa/b53/b53_mdio.ko] undefined! ERROR: modpost: "b53_switch_alloc" [drivers/net/dsa/b53/b53_mdio.ko] undefined! ERROR: modpost: "b53_switch_register" [drivers/net/dsa/b53/b53_spi.ko] undefined! ERROR: modpost: "b53_switch_alloc" [drivers/net/dsa/b53/b53_spi.ko] undefined! It seems to me, that b53_common.c does not get included at all.