[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:
parent
cefc190b1b
commit
a69f6b6836
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue