net: dsa: sja1105: Make static_config_check_memory_size static
authorYueHaibing <yuehaibing@huawei.com>
Wed, 29 May 2019 14:34:32 +0000 (22:34 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 21:33:23 +0000 (14:33 -0700)
Fix sparse warning:

drivers/net/dsa/sja1105/sja1105_static_config.c:446:1: warning:
 symbol 'static_config_check_memory_size' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Vladimir Oltean <olteanv@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105_static_config.c

index b3c992b0abb04d5fb2e3d7a44a1e3c804123fdba..7e90e62da389dc745e659fff1959e76329b62445 100644 (file)
@@ -442,7 +442,7 @@ const char *sja1105_static_config_error_msg[] = {
                "vl-forwarding-parameters-table.partspc.",
 };
 
-sja1105_config_valid_t
+static sja1105_config_valid_t
 static_config_check_memory_size(const struct sja1105_table *tables)
 {
        const struct sja1105_l2_forwarding_params_entry *l2_fwd_params;