Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp613795pxh; Tue, 9 Nov 2021 16:11:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpKb7dwrpqFQVIJwtYsrd5cCmfFcz8IXe2w5gZ9050B45xi1rvgCdkqrNMdRtY5AaNlas1 X-Received: by 2002:a02:22c8:: with SMTP id o191mr8794008jao.31.1636503104974; Tue, 09 Nov 2021 16:11:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636503104; cv=none; d=google.com; s=arc-20160816; b=jOuW30Jg+E70aP9zZtJYnp8AaCMjApdj2KCIFHr9jrBfgL9ckuHcU1+HseP0UpFNJr ZZ2+K+9nXp6vpnFNvdQ//KPgqMwBt6mNPjcoP2/ZY9EIw/kKLK4HpKKRJ3O189Fh2rbu jDcI/iLZU/D2yehpEJ+0A8uAJMOWOp7zD74KuRLQlEUVK+F9yy+IObSDT2OYgPvzMb8O KH78dedWQF08SHdyKsPNh8BlFfXxoSaRQbBFPtI7lkU8cUzCg5ZHXEb3g7exPFZ2fioH kF501Cy0eq0KZmnUY2FbbI47kXT3nTBoSuf1mhkn+7TCn/6unrlqQDotm3WHwrfqbHKy plbQ== 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=oCDUefM5oc1pTaSVPsqfq8VDRqVjc8fVTjdoYr50Dr4=; b=svx5wuPuuG58dOBpQa8fWUw7Zks+AAvQe4ycM1Oy2++hlaI7VumVpTUGC4qKlwMxyl 4Mahfqf1jCEgmhbSJTgWyI6T5F4VolQ+9SDzo/jyGwRYISI6c20z8ABn0btCBH6rG7Nx 9GuUChDr/1+NI/mDRWv5ORrOMBrVqeM6LWcUxp+fSH/bO7cZnYao2ZXz+GRqEM4Wc3Ul 4woVZaW/M2d6nq64oyWZ9r2ryYWVJzuQ7lEN6DbixVAclUAjuYQTyPnNRg4Wq5JdSlsc qqMaSaKdzTZZkVlE9ETCgXeZrjRT0cw67cOTyoTzlzOu5f9GtdN26w2WHjTjIrPqLUkS uOXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RG+NTcaV; 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=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f1si14036237jaq.26.2021.11.09.16.11.32; Tue, 09 Nov 2021 16:11:44 -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=@gmail.com header.s=20210112 header.b=RG+NTcaV; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242154AbhKISST (ORCPT + 97 others); Tue, 9 Nov 2021 13:18:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52338 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241573AbhKISSJ (ORCPT ); Tue, 9 Nov 2021 13:18:09 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 085DFC061764; Tue, 9 Nov 2021 10:15:23 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id g14so105575edz.2; Tue, 09 Nov 2021 10:15:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=oCDUefM5oc1pTaSVPsqfq8VDRqVjc8fVTjdoYr50Dr4=; b=RG+NTcaV6DKkj5ZBxrf7TMRqtQJIdxgoiZ1ooSQPLmlEaoP3nXX+F3f1HnGOplAPRc Ov1QVJGi7sUXUpdhA34iE3XLho83KSve36oPeTqdI02lhmCImyKggExX9NCx0TneA9zg 9AYOScNPzH6ExJtFzkq0Osudf1ROrs/WTst0C59tiXkd3W0WzMX1Mojpnv4NyIwAUV5u MNkoCyK+EpdTRes5ErGOio+DdJvnCDKa7R3wVIrxU2voZ58HlOraaDuZMzgU8Ax8P2uX bqsHX3rkSsx3PzBu7xgNgEczjqxPu2i3818JJRGnBhVSf+Bz68o8gSEzM65kW2OZCO/3 CqNg== 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=oCDUefM5oc1pTaSVPsqfq8VDRqVjc8fVTjdoYr50Dr4=; b=AhAny73CTsXzP0iPdS0e0VQOkn0a2ECyFX/GMUTQUdJmo8BZ0SYYrePnSjPyjNaXMZ UZpMCt23p0hI0AKtTL93jqKlSAvsvpeSwu3h9E6AyynFXo8+0wzH1/ysJ/mJjhiIw2rf mCB/phIEa7ry7HAQwr4GhlloLqnkOrjqjWiGgaKvxrtrGSXrw7hGweexVa2kgqfOGII5 m3KVcitHi9EWSOH79Ujna7ueaksHUKiQ8r9bArhTQY0on/eYj2zHHHAK6Rs93ul8bkQn CnNpzMGjcRejqVZs05Q0rZSlQ0kZY1eRl0ZKotRLGtuIGbNFftd5PUiidsmzxnZH0wpH oVGg== X-Gm-Message-State: AOAM532LfzLek2FLMfIXZs/sE0haxYFLe/vkDesbDT35HNEVB9B/jbmU gOUHXslH1Bq+bnCRothPafRpj4NlKOw5i9yx9fYbrsZjczU= X-Received: by 2002:a50:d50c:: with SMTP id u12mr12602049edi.118.1636481721571; Tue, 09 Nov 2021 10:15:21 -0800 (PST) MIME-Version: 1.0 References: <20211109095013.27829-1-martin.kaistra@linutronix.de> <20211109095013.27829-3-martin.kaistra@linutronix.de> In-Reply-To: From: Vladimir Oltean Date: Tue, 9 Nov 2021 20:15:10 +0200 Message-ID: Subject: Re: [PATCH v2 2/7] net: dsa: b53: Move struct b53_device to include/linux/dsa/b53.h To: Florian Fainelli Cc: Martin Kaistra , 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 9 Nov 2021 at 20:11, Florian Fainelli wrote: > > On 11/9/21 10:05 AM, Florian Fainelli wrote: > > On 11/9/21 1:50 AM, Martin Kaistra wrote: > >> In order to access the b53 structs from net/dsa/tag_brcm.c move the > >> definitions from drivers/net/dsa/b53/b53_priv.h to the new file > >> include/linux/dsa/b53.h. > >> > >> Signed-off-by: Martin Kaistra > >> --- > >> drivers/net/dsa/b53/b53_priv.h | 90 +---------------------------- > >> include/linux/dsa/b53.h | 100 +++++++++++++++++++++++++++++++++ > >> 2 files changed, 101 insertions(+), 89 deletions(-) > >> create mode 100644 include/linux/dsa/b53.h > > > > All you really access is the b53_port_hwtstamp structure within the > > tagger, so please make it the only structure exposed to net/dsa/tag_brcm.c. > > You do access b53_dev in the TX part, still, I would like to find a more > elegant solution to exposing everything here, can you create a > b53_timecounter_cyc2time() function that is exported to modules but does > not require exposing the b53_device to net/dsa/tag_brcm.c? > -- > Florian Switch drivers can't export symbols to tagging protocol drivers, remember? https://lore.kernel.org/netdev/20210908220834.d7gmtnwrorhharna@skbuf/