From a69f6b683623f866a3279a0a8971e59025feba9b Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Thu, 15 Nov 2007 23:40:17 +0100 Subject: [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 --- arch/sandbox/board/hostfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index af8b82ca19..6521722209 100644 --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox/board/hostfile.c @@ -29,7 +29,7 @@ #include #include -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; -- cgit v1.2.3