]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_static_config.c
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 30 May 2020 10:29:52 +0000 (13:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 May 2020 01:00:36 +0000 (18:00 -0700)
commitcaad0b979f2e4c5e7e6e0c180a9e61819b04e0bc
tree77c4c2992acaba4848da72bf915f250cd8a7ed01
parent6d05beae699530e46cf57bd9c7d132d3904d5f20
net: dsa: sja1105: suppress -Wmissing-prototypes in sja1105_static_config.c

Newer compilers complain with W=1 builds that there are non-static
functions defined in sja1105_static_config.c that don't have a
prototype, because their prototype is defined in sja1105.h which this
translation unit does not include.

I don't entirely understand what is the point of these warnings, since
in principle there's nothing wrong with that. But let's move the
prototypes to a header file that _is_ included by
sja1105_static_config.c, since that will make these warnings go away.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/sja1105/sja1105.h
drivers/net/dsa/sja1105/sja1105_static_config.h