diff mbox series

[net-next,1/2] net: dsa: remove "inline" from dsa_user_netpoll_send_skb()

Message ID 20240206112927.4134375-1-vladimir.oltean@nxp.com (mailing list archive)
State Accepted
Commit 83acbb9d0716c7f787d248ca982f4a4a895aef65
Delegated to: Netdev Maintainers
Headers show
Series [net-next,1/2] net: dsa: remove "inline" from dsa_user_netpoll_send_skb() | expand

Checks

Context Check Description
netdev/series_format success Single patches do not need cover letters
netdev/tree_selection success Clearly marked for net-next
netdev/ynl success Generated files up to date; no warnings/errors; no diff in generated;
netdev/fixes_present success Fixes tag not required for -next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 1048 this patch: 1048
netdev/build_tools success No tools touched, skip
netdev/cc_maintainers success CCed 7 of 7 maintainers
netdev/build_clang success Errors and warnings before: 1065 this patch: 1065
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 1065 this patch: 1065
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 10 lines checked
netdev/build_clang_rust success No Rust files in patch. Skipping build
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 1 now: 0
netdev/contest success net-next-2024-02-09--00-00 (tests: 687)

Commit Message

Vladimir Oltean Feb. 6, 2024, 11:29 a.m. UTC
The convention is to not use "inline" functions in C files, and let the
compiler decide whether to inline or not.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
---
 net/dsa/user.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Simon Horman Feb. 8, 2024, 10:29 a.m. UTC | #1
On Tue, Feb 06, 2024 at 01:29:26PM +0200, Vladimir Oltean wrote:
> The convention is to not use "inline" functions in C files, and let the
> compiler decide whether to inline or not.
> 
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>

Reviewed-by: Simon Horman <horms@kernel.org>
patchwork-bot+netdevbpf@kernel.org Feb. 9, 2024, 3:11 a.m. UTC | #2
Hello:

This series was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Tue,  6 Feb 2024 13:29:26 +0200 you wrote:
> The convention is to not use "inline" functions in C files, and let the
> compiler decide whether to inline or not.
> 
> Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
> ---
>  net/dsa/user.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Here is the summary with links:
  - [net-next,1/2] net: dsa: remove "inline" from dsa_user_netpoll_send_skb()
    https://git.kernel.org/netdev/net-next/c/83acbb9d0716
  - [net-next,2/2] net: dsa: tag_sja1105: remove "inline" keyword
    https://git.kernel.org/netdev/net-next/c/36f75f74dc07

You are awesome, thank you!
diff mbox series

Patch

diff --git a/net/dsa/user.c b/net/dsa/user.c
index ba2e53b5e16a..5d666dfb317d 100644
--- a/net/dsa/user.c
+++ b/net/dsa/user.c
@@ -875,8 +875,8 @@  static int dsa_user_port_obj_del(struct net_device *dev, const void *ctx,
 	return err;
 }
 
-static inline netdev_tx_t dsa_user_netpoll_send_skb(struct net_device *dev,
-						    struct sk_buff *skb)
+static netdev_tx_t dsa_user_netpoll_send_skb(struct net_device *dev,
+					     struct sk_buff *skb)
 {
 #ifdef CONFIG_NET_POLL_CONTROLLER
 	struct dsa_user_priv *p = netdev_priv(dev);