Commit ecfed8d9 authored by Antoine Tenart's avatar Antoine Tenart Committed by David S. Miller

net: mvpp2: make the per-cpu helpers static

The Marvell PPv2 driver has per-cpu functions. As they only are used in
the main file, make them static and remove their prototype from the
header.
Signed-off-by: default avatarAntoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 850623b3
...@@ -1099,13 +1099,6 @@ u32 mvpp2_read(struct mvpp2 *priv, u32 offset); ...@@ -1099,13 +1099,6 @@ u32 mvpp2_read(struct mvpp2 *priv, u32 offset);
u32 mvpp2_read_relaxed(struct mvpp2 *priv, u32 offset); u32 mvpp2_read_relaxed(struct mvpp2 *priv, u32 offset);
void mvpp2_percpu_write(struct mvpp2 *priv, unsigned int cpu, u32 offset,
u32 data);
u32 mvpp2_percpu_read(struct mvpp2 *priv, unsigned int cpu, u32 offset);
void mvpp2_percpu_write_relaxed(struct mvpp2 *priv, unsigned int cpu,
u32 offset, u32 data);
void mvpp2_dbgfs_init(struct mvpp2 *priv, const char *name); void mvpp2_dbgfs_init(struct mvpp2 *priv, const char *name);
void mvpp2_dbgfs_cleanup(struct mvpp2 *priv); void mvpp2_dbgfs_cleanup(struct mvpp2 *priv);
......
...@@ -122,19 +122,19 @@ u32 mvpp2_read_relaxed(struct mvpp2 *priv, u32 offset) ...@@ -122,19 +122,19 @@ u32 mvpp2_read_relaxed(struct mvpp2 *priv, u32 offset)
* MVPP2_TXQ_PREF_BUF_REG (related to MVPP2_TXQ_NUM_REG) * MVPP2_TXQ_PREF_BUF_REG (related to MVPP2_TXQ_NUM_REG)
* MVPP2_TXQ_PREF_BUF_REG (related to MVPP2_TXQ_NUM_REG) * MVPP2_TXQ_PREF_BUF_REG (related to MVPP2_TXQ_NUM_REG)
*/ */
void mvpp2_percpu_write(struct mvpp2 *priv, unsigned int cpu, static void mvpp2_percpu_write(struct mvpp2 *priv, unsigned int cpu,
u32 offset, u32 data) u32 offset, u32 data)
{ {
writel(data, priv->swth_base[cpu] + offset); writel(data, priv->swth_base[cpu] + offset);
} }
u32 mvpp2_percpu_read(struct mvpp2 *priv, unsigned int cpu, static u32 mvpp2_percpu_read(struct mvpp2 *priv, unsigned int cpu,
u32 offset) u32 offset)
{ {
return readl(priv->swth_base[cpu] + offset); return readl(priv->swth_base[cpu] + offset);
} }
void mvpp2_percpu_write_relaxed(struct mvpp2 *priv, unsigned int cpu, static void mvpp2_percpu_write_relaxed(struct mvpp2 *priv, unsigned int cpu,
u32 offset, u32 data) u32 offset, u32 data)
{ {
writel_relaxed(data, priv->swth_base[cpu] + offset); writel_relaxed(data, priv->swth_base[cpu] + offset);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment