]> git.baikalelectronics.ru Git - kernel.git/commit
net: mscc: ocelot: unexpose ocelot_vcap_policer_{add,del}
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 20 Jun 2020 15:43:47 +0000 (18:43 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sun, 21 Jun 2020 00:25:23 +0000 (17:25 -0700)
commit0e274704b646c90b1358ad7e6e4d760cf9cb0486
tree401f1428d1f3a0c525116e0675095ecf443fa25c
parent54591138af530ad31926cebc238cf056279578cd
net: mscc: ocelot: unexpose ocelot_vcap_policer_{add,del}

Remove the function prototypes from ocelot_police.h and make these
functions static. We need to move them above their callers. Note that
moving the implementations to ocelot_police.c is not trivially possible
due to dependency on is2_entry_set() which is static to ocelot_vcap.c.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mscc/ocelot_police.h
drivers/net/ethernet/mscc/ocelot_vcap.c