Skip to content

Commit 36f75f7

Browse files
vladimirolteankuba-moo
authored andcommitted
net: dsa: tag_sja1105: remove "inline" keyword
The convention is to not use the "inline" keyword for functions in C files, but to let the compiler choose. Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Simon Horman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 83acbb9 commit 36f75f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/dsa/tag_sja1105.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ sja1105_tagger_private(struct dsa_switch *ds)
7575
}
7676

7777
/* Similar to is_link_local_ether_addr(hdr->h_dest) but also covers PTP */
78-
static inline bool sja1105_is_link_local(const struct sk_buff *skb)
78+
static bool sja1105_is_link_local(const struct sk_buff *skb)
7979
{
8080
const struct ethhdr *hdr = eth_hdr(skb);
8181
u64 dmac = ether_addr_to_u64(hdr->h_dest);
@@ -121,7 +121,7 @@ static void sja1105_meta_unpack(const struct sk_buff *skb,
121121
packing(buf + 7, &meta->switch_id, 7, 0, 1, UNPACK, 0);
122122
}
123123

124-
static inline bool sja1105_is_meta_frame(const struct sk_buff *skb)
124+
static bool sja1105_is_meta_frame(const struct sk_buff *skb)
125125
{
126126
const struct ethhdr *hdr = eth_hdr(skb);
127127
u64 smac = ether_addr_to_u64(hdr->h_source);

0 commit comments

Comments
 (0)