octeontx2-pf: Avoid typecasts by simplifying otx2_atomic64_add macro
authorSubbaraya Sundeep <sbhatta@marvell.com>
Mon, 9 Jun 2025 15:53:41 +0000 (21:23 +0530)
committerJakub Kicinski <kuba@kernel.org>
Tue, 10 Jun 2025 22:30:37 +0000 (15:30 -0700)
commitc4246f4cce05f1134fb9ea82460b5690ab6710a5
treeeea79f6ee000963e23266de7404462d03dfb9443
parentd0976b43956ee8c8bd093223df9115bfcf63dfe5
octeontx2-pf: Avoid typecasts by simplifying otx2_atomic64_add macro

Just because otx2_atomic64_add is using u64 pointer as argument
all callers has to typecast __iomem void pointers which inturn
causing sparse warnings. Fix those by changing otx2_atomic64_add
argument to void pointer.

Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Link: https://patch.msgid.link/1749484421-3607-1-git-send-email-sbhatta@marvell.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.c
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c
drivers/net/ethernet/marvell/octeontx2/nic/qos_sq.c