9
0
Fork 0

[sparse] declare functions static

this fixes:
arch/sandbox/board/hostfile.c:32:9: warning: symbol 'hf_read' was not declared. Should it be static?
arch/sandbox/board/hostfile.c:43:9: warning: symbol 'hf_write' was not declared. Should it be static?

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
This commit is contained in:
Marc Kleine-Budde 2007-11-15 23:40:17 +01:00
parent cefc190b1b
commit a69f6b6836
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
#include <asm/arch/hostfile.h>
#include <xfuncs.h>
ssize_t hf_read(struct device_d *dev, void *buf, size_t count, ulong offset, ulong flags)
static ssize_t hf_read(struct device_d *dev, void *buf, size_t count, ulong offset, ulong flags)
{
struct hf_platform_data *hf = dev->platform_data;
int fd = hf->fd;
@ -40,7 +40,7 @@ ssize_t hf_read(struct device_d *dev, void *buf, size_t count, ulong offset, ulo
return linux_read(fd, buf, count);
}
ssize_t hf_write(struct device_d *dev, const void *buf, size_t count, ulong offset, ulong flags)
static ssize_t hf_write(struct device_d *dev, const void *buf, size_t count, ulong offset, ulong flags)
{
struct hf_platform_data *hf = dev->platform_data;
int fd = hf->fd;