Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796160137; b=NNwYLzTbewgOMSROf2vIwe0pJ/cAUMhkx6s0r3zWaPscQWMkIlX3UqdY6cQgUU2hF8i6 9fO02Ina+2SnBtBZs2Xk6RM7HXuQ61R7oGirnh63LlTZusM933n3ZVUFJqLAsyLAVzA0+ RWlgPLhU9RJC9msC0qEMtQSAJq8DWpnYCJDpZpsKVEMAq0C47OsyrmBTEcXTnkArha3ke KisCvc48KCeqaaa7TrTPAObF1u451UK+1DvsHRDav32fsX/BRaxdCmI3gcu2T1/Jhs88J 4qrfqu2GnZ2qGJC6ATo/sbxrZacIMdQKmoVnFMDEPer7BIWSPVC9BP3+lOy96ofecpw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796160137; h=Received:DKIM-Signature:Subject:From:To:Cc:Date:Message-ID: In-Reply-To:References:X-sashiko-severity:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=RHHaAdXFcsgOFTNfI95Bbwe3D8kXffAh42QJbZzmCsk=; b=bav6cdA9uApv2T1C29Ww4TYuXDQrVL6s1vpMJ0mHisAiCdqMpSqfc2E8F9Ww2IDfN365 LeWzThXmMj2IbSnezWC7OtxoM+DIb/7v1H5IEDMctmmqgWMCUcuoGpWwnu1NIrlaTtySh J/Df+VRflgt/HCoMCHWqYtJmG5fN/w2KGfxrcYaUj99aAf5Hw4hpuxcAe8dQSQzI4T4rn GX7QPiBXlfI8Im6FBfBsa9V3ypbNZsfQzEkMTxMb5CwSJuEsaibgqSTJxb2D4/7tqkI5h +BOYO+3rKLXs+BzgLvtjDOf0dMoS4QWM7RbFrGOi8EgbpjLWDIpmIxNNZ2Acp2JjBIg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ch80z4v4; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9E59E606A331; Tue, 1 Dec 2026 21:22:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Ch80z4v4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 34D601F000C1; Tue, 1 Dec 2026 21:22:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796160137; bh=RHHaAdXFcsgOFTNfI95Bbwe3D8kXffAh42QJbZzmCsk=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=Ch80z4v4aH96g4/fgmiySv3KWxLSILfnndkf/OL/WbnjSdW9w1ThzLEDoFdVdSldF HTy+bEgeX7df0AoNbRophsmp+I8DIBPBedt/EU7W4FE4NYlp9mkwY7FZY3rtOWg8A7 RsswpMhmwBhTzXVhJVusGCb0C/bo/wlWlrhte6J1wEoRww/D/aVkYek3mWOlw89yc5 qPe6isrX/pwncikWKMHFks7Ni4JKGwf0P9NGlWAnEKMu2zIQVJkASr90onQkR3/fnR D0+m8ck0MSh67mLfLWmoLyxmlaCmEaobLtt8FayerAkGe5Jb0O6yOnGG/RjVtHwG8y 6OuONdrlyROlg== Subject: Re: [PATCH net-next v17 09/15] net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D From: netdev-bot+sashiko@kernel.org To: namiltd@yahoo.com Cc: linusw@kernel.org, andrew@lunn.ch, olteanv@gmail.com, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, linux@armlinux.org.uk, luizluca@gmail.com, maxime.chevallier@bootlin.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, alvin.sipraga@analog.com, gusfmora@gmail.com, kuncy7@gmail.com, fabianotassotti@gmail.com, gabonpivovich@gmail.com, contact@c127.dev, o.rempel@pengutronix.de Date: Tue, 01 Dec 2026 21:22:15 +0000 Message-ID: <179616013577.3146.15822768854048249694@kernel.org> In-Reply-To: References: X-sashiko-severity: Low Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Thank you for your contribution! Sashiko AI review found more severe issue(s) in other patches of this series. This mail is only an FYI, in case you want to address the nit picks below when you respin. Low priority / nit picks for your consideration: - [Low] The commit message of "net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D" gives the wrong reason for the linkage of the… -- net: dsa: realtek: rtl8365mb: use raw VID for PVID on family D This commit adds family D versions of the PVID helpers. On family D the PVID is a raw 12-bit VID in a per-port register, so these helpers do not use the VLAN MC table. It also clears the family D PVID registers in rtl8365mb_vlan_setup() through a new vlan_port_reset_pvid hook. > Nothing points to the new functions until the family D info is added > together with the chip table entry in the last patch. Until then they are > not static and are declared in rtl8365mb_vlan.h, so that the build does > not warn about unused functions. [Severity: Low] This isn't a bug, but is the reason given here accurate? The helpers are defined in rtl8365mb_vlan.c: rtl8365mb_d_vlan_port_get_pvid() rtl8365mb_d_vlan_port_reset_pvid() rtl8365mb_d_vlan_pvid_port_set() rtl8365mb_d_vlan_pvid_port_clear() The struct rtl8365mb_family_info tables that point to them are in rtl8365mb_main.c. Those references cross files, so the helpers must be non-static and declared in rtl8365mb_vlan.h for the driver to link. That holds whether or not anything uses them yet. The family C helpers already work this way: drivers/net/dsa/realtek/rtl8365mb_main.c:rtl8365mb_family_c .vlan_port_get_pvid = rtl8365mb_c_vlan_port_get_pvid, .vlan_port_reset_pvid = rtl8365mb_c_vlan_port_reset_pvid, .vlan_pvid_port_set = rtl8365mb_c_vlan_pvid_port_set, .vlan_pvid_port_clear = rtl8365mb_c_vlan_pvid_port_clear, The series ends with "net: dsa: realtek: rtl8365mb: add support for RTL8367S-VB". After that patch, rtl8365mb_family_d in rtl8365mb_main.c points to the rtl8365mb_d_* helpers in the same way. The helpers are still non-static and still declared in rtl8365mb_vlan.h. The "Until then" wording suggests the arrangement is temporary and that the helpers will become static later. Could the commit message say instead that the helpers are declared in rtl8365mb_vlan.h because the family info tables in rtl8365mb_main.c reference them? -- Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/236d002f-5ca5-4f12-bf5b-0ed6442e5c9a%40yahoo.com