]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: systemport: Remove unused txchk accessors
authorFlorian Fainelli <florian.fainelli@broadcom.com>
Mon, 21 Oct 2024 17:49:34 +0000 (10:49 -0700)
committerJakub Kicinski <kuba@kernel.org>
Mon, 28 Oct 2024 22:54:37 +0000 (15:54 -0700)
commit890bde75a2360d80712f394a31982fbd93fa0891
treee09f11f4b36d16a23cf80dea0d76dab5bf3ea67c
parent47e99f30730c0167cd32c9a2fd4a74f0a024cb2b
net: systemport: Remove unused txchk accessors

Vladimir reported the following warning with clang-16 and W=1:

warning: unused function 'txchk_readl' [-Wunused-function]
BCM_SYSPORT_IO_MACRO(txchk, SYS_PORT_TXCHK_OFFSET);
note: expanded from macro 'BCM_SYSPORT_IO_MACRO'

warning: unused function 'txchk_writel' [-Wunused-function]
note: expanded from macro 'BCM_SYSPORT_IO_MACRO'

warning: unused function 'tbuf_readl' [-Wunused-function]
BCM_SYSPORT_IO_MACRO(tbuf, SYS_PORT_TBUF_OFFSET);
note: expanded from macro 'BCM_SYSPORT_IO_MACRO'

warning: unused function 'tbuf_writel' [-Wunused-function]
note: expanded from macro 'BCM_SYSPORT_IO_MACRO'

The TXCHK and RBUF blocks are not being accessed, remove the IO macros
used to access those blocks. No functional impact.

Reported-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241021174935.57658-2-florian.fainelli@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bcmsysport.c