diff options
author | Vladimir Oltean <olteanv@gmail.com> | 2019-10-01 22:17:59 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-10-02 12:25:11 -0400 |
commit | 09c1b412558b8adf01f733dfe665b5f75dfdf347 (patch) | |
tree | 6b798b128da34e4db75d805ac5405e4297587246 /drivers/net/dsa/sja1105/sja1105_main.c | |
parent | Merge branch 'SMB-rootfs' (diff) | |
download | linux-dev-09c1b412558b8adf01f733dfe665b5f75dfdf347.tar.xz linux-dev-09c1b412558b8adf01f733dfe665b5f75dfdf347.zip |
net: dsa: sja1105: Don't use "inline" function declarations in C files
Let the compiler decide.
Signed-off-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/sja1105/sja1105_main.c')
-rw-r--r-- | drivers/net/dsa/sja1105/sja1105_main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/dsa/sja1105/sja1105_main.c b/drivers/net/dsa/sja1105/sja1105_main.c index b9def744bcb3..c418fe34d139 100644 --- a/drivers/net/dsa/sja1105/sja1105_main.c +++ b/drivers/net/dsa/sja1105/sja1105_main.c @@ -458,9 +458,8 @@ static int sja1105_init_general_params(struct sja1105_private *priv) #define SJA1105_RATE_MBPS(speed) (((speed) * 64000) / 1000) -static inline void -sja1105_setup_policer(struct sja1105_l2_policing_entry *policing, - int index) +static void sja1105_setup_policer(struct sja1105_l2_policing_entry *policing, + int index) { policing[index].sharindx = index; policing[index].smax = 65535; /* Burst size in bytes */ @@ -951,7 +950,7 @@ sja1105_static_fdb_change(struct sja1105_private *priv, int port, * For the placement of a newly learnt FDB entry, the switch selects the bin * based on a hash function, and the way within that bin incrementally. */ -static inline int sja1105et_fdb_index(int bin, int way) +static int sja1105et_fdb_index(int bin, int way) { return bin * SJA1105ET_FDB_BIN_SIZE + way; } |