mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-27 22:51:31 +00:00
batman-adv: Prefix gateway_common local static functions with batadv_
All non-static symbols of batman-adv were prefixed with batadv_ to avoid collisions with other symbols of the kernel. Other symbols of batman-adv should use the same prefix to keep the naming scheme consistent. Signed-off-by: Sven Eckelmann <sven@narfation.org>
This commit is contained in:
parent
1409a8349f
commit
8e714a5ded
1 changed files with 5 additions and 5 deletions
|
@ -22,7 +22,7 @@
|
||||||
#include "gateway_client.h"
|
#include "gateway_client.h"
|
||||||
|
|
||||||
/* calculates the gateway class from kbit */
|
/* calculates the gateway class from kbit */
|
||||||
static void kbit_to_gw_bandwidth(int down, int up, long *gw_srv_class)
|
static void batadv_kbit_to_gw_bandwidth(int down, int up, long *gw_srv_class)
|
||||||
{
|
{
|
||||||
int mdown = 0, tdown, tup, difference;
|
int mdown = 0, tdown, tup, difference;
|
||||||
uint8_t sbit, part;
|
uint8_t sbit, part;
|
||||||
|
@ -73,7 +73,7 @@ void batadv_gw_bandwidth_to_kbit(uint8_t gw_srv_class, int *down, int *up)
|
||||||
*up = ((upart + 1) * (*down)) / 8;
|
*up = ((upart + 1) * (*down)) / 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool parse_gw_bandwidth(struct net_device *net_dev, char *buff,
|
static bool batadv_parse_gw_bandwidth(struct net_device *net_dev, char *buff,
|
||||||
int *up, int *down)
|
int *up, int *down)
|
||||||
{
|
{
|
||||||
int ret, multi = 1;
|
int ret, multi = 1;
|
||||||
|
@ -142,7 +142,7 @@ ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff,
|
||||||
int up = 0, down = 0;
|
int up = 0, down = 0;
|
||||||
bool ret;
|
bool ret;
|
||||||
|
|
||||||
ret = parse_gw_bandwidth(net_dev, buff, &up, &down);
|
ret = batadv_parse_gw_bandwidth(net_dev, buff, &up, &down);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
goto end;
|
goto end;
|
||||||
|
|
||||||
|
@ -152,7 +152,7 @@ ssize_t batadv_gw_bandwidth_set(struct net_device *net_dev, char *buff,
|
||||||
if (!up)
|
if (!up)
|
||||||
up = down / 5;
|
up = down / 5;
|
||||||
|
|
||||||
kbit_to_gw_bandwidth(down, up, &gw_bandwidth_tmp);
|
batadv_kbit_to_gw_bandwidth(down, up, &gw_bandwidth_tmp);
|
||||||
|
|
||||||
/* the gw bandwidth we guessed above might not match the given
|
/* the gw bandwidth we guessed above might not match the given
|
||||||
* speeds, hence we need to calculate it back to show the number
|
* speeds, hence we need to calculate it back to show the number
|
||||||
|
|
Loading…
Reference in a new issue