Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58ccaae3 authored by Baoyou Xie's avatar Baoyou Xie Committed by Greg Kroah-Hartman
Browse files

vme: fake: mark symbols static where possible



We get 4 warnings when building kernel with W=1:
drivers/vme/bridges/vme_fake.c:384:6: warning: no previous prototype for 'fake_lm_check' [-Wmissing-prototypes]
drivers/vme/bridges/vme_fake.c:619:6: warning: no previous prototype for 'fake_vmewrite8' [-Wmissing-prototypes]
drivers/vme/bridges/vme_fake.c:649:6: warning: no previous prototype for 'fake_vmewrite16' [-Wmissing-prototypes]
drivers/vme/bridges/vme_fake.c:679:6: warning: no previous prototype for 'fake_vmewrite32' [-Wmissing-prototypes]

In fact, these functions are only used in the file in which they are
declared and don't need a declaration, but can be made static.
so this patch marks these functions with 'static'.

Signed-off-by: default avatarBaoyou Xie <baoyou.xie@linaro.org>
Acked-by: default avatarMartyn Welch <martyn@welchs.me.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e98cc182
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -381,7 +381,7 @@ static int fake_master_get(struct vme_master_resource *image, int *enabled,
}


void fake_lm_check(struct fake_driver *bridge, unsigned long long addr,
static void fake_lm_check(struct fake_driver *bridge, unsigned long long addr,
			  u32 aspace, u32 cycle)
{
	struct vme_bridge *fake_bridge;
@@ -616,7 +616,7 @@ static ssize_t fake_master_read(struct vme_master_resource *image, void *buf,
	return retval;
}

void fake_vmewrite8(struct fake_driver *bridge, u8 *buf,
static void fake_vmewrite8(struct fake_driver *bridge, u8 *buf,
			   unsigned long long addr, u32 aspace, u32 cycle)
{
	int i;
@@ -646,7 +646,7 @@ void fake_vmewrite8(struct fake_driver *bridge, u8 *buf,

}

void fake_vmewrite16(struct fake_driver *bridge, u16 *buf,
static void fake_vmewrite16(struct fake_driver *bridge, u16 *buf,
			    unsigned long long addr, u32 aspace, u32 cycle)
{
	int i;
@@ -676,7 +676,7 @@ void fake_vmewrite16(struct fake_driver *bridge, u16 *buf,

}

void fake_vmewrite32(struct fake_driver *bridge, u32 *buf,
static void fake_vmewrite32(struct fake_driver *bridge, u32 *buf,
			    unsigned long long addr, u32 aspace, u32 cycle)
{
	int i;