]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: stmmac: xgmac: use const char arrays for string constants
authorSimon Horman <horms@kernel.org>
Tue, 6 Aug 2024 10:52:01 +0000 (11:52 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2024 11:07:57 +0000 (12:07 +0100)
commit36fb51479e3c1112013f60f01e3b9725f8f9baf7
tree592713d1ff11fd1c15d9af552251f2863b194644
parent2524d6c28bdcb114372e86354c88d2e47eb1019d
net: stmmac: xgmac: use const char arrays for string constants

Jiri Slaby advises me that the preferred mechanism for declaring
string constants is static char arrays, so use that here.

This mostly reverts
commit 1692b9775e74 ("net: stmmac: xgmac: use #define for string constants")

That commit was a fix for
commit 46eba193d04f ("net: stmmac: xgmac: fix handling of DPP safety error for DMA channels").
The fix being replacing const char * with #defines in order to address
compilation failures observed on GCC 6 through 10.

Compile tested only.
No functional change intended.

Suggested-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/netdev/485dbc5a-a04b-40c2-9481-955eaa5ce2e2@kernel.org/
Signed-off-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c