Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: stmmac: Unexport stmmac_rx_offset() from stmmac.h

stmmac_rx_offset() is referenced in stmmac_main.c only,
let's move it to stmmac_main.c.

Drop the inline keyword by the way, it is better to let the compiler
to decide.

Compile tested only.
No functional change intended.

Signed-off-by: Furong Xu <0x1207@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250107075448.4039925-1-0x1207@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>

authored by

Furong Xu and committed by
Paolo Abeni
e62de010 b11bff90

+8 -8
-8
drivers/net/ethernet/stmicro/stmmac/stmmac.h
··· 416 416 return !!priv->xdp_prog; 417 417 } 418 418 419 - static inline unsigned int stmmac_rx_offset(struct stmmac_priv *priv) 420 - { 421 - if (stmmac_xdp_is_enabled(priv)) 422 - return XDP_PACKET_HEADROOM; 423 - 424 - return 0; 425 - } 426 - 427 419 void stmmac_disable_rx_queue(struct stmmac_priv *priv, u32 queue); 428 420 void stmmac_enable_rx_queue(struct stmmac_priv *priv, u32 queue); 429 421 void stmmac_disable_tx_queue(struct stmmac_priv *priv, u32 queue);
+8
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
··· 1315 1315 stmmac_display_tx_rings(priv, dma_conf); 1316 1316 } 1317 1317 1318 + static unsigned int stmmac_rx_offset(struct stmmac_priv *priv) 1319 + { 1320 + if (stmmac_xdp_is_enabled(priv)) 1321 + return XDP_PACKET_HEADROOM; 1322 + 1323 + return 0; 1324 + } 1325 + 1318 1326 static int stmmac_set_bfsize(int mtu, int bufsize) 1319 1327 { 1320 1328 int ret = bufsize;