diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-15 23:40:17 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2007-11-29 10:22:48 +0100 |
commit | a69f6b683623f866a3279a0a8971e59025feba9b (patch) | |
tree | 4adb96d1e36d17ec8c62a76b62ac6240f83ae0f9 /arch/sandbox/board | |
parent | cefc190b1b105acfcf9e603b9ce2c9119c1d184b (diff) | |
download | barebox-a69f6b683623f866a3279a0a8971e59025feba9b.tar.gz barebox-a69f6b683623f866a3279a0a8971e59025feba9b.tar.xz |
[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>
Diffstat (limited to 'arch/sandbox/board')
-rw-r--r-- | arch/sandbox/board/hostfile.c | 4 |
1 files 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 <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; |