diff options
author | Michal Simek <michal.simek@xilinx.com> | 2015-06-05 04:35:31 -0400 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2015-06-08 03:57:08 -0400 |
commit | 55ae2f3b88421256e0a785320f7067bc58c1b0cd (patch) | |
tree | e68b2eab1657a7771d218b06e4e8fc2ca143b9c2 /arch/microblaze | |
parent | 60587dbbe6505df9e02599413f1c1ff6114c4189 (diff) |
microblaze: Label local function static
Warnings found by sparse:
arch/microblaze/kernel/dma.c:157:5: warning: symbol
'dma_direct_mmap_coherent' was not declared. Should it be static?
arch/microblaze/kernel/kgdb.c:35:14: warning: symbol 'pvr' was not
declared. Should it be static?
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'arch/microblaze')
-rw-r--r-- | arch/microblaze/kernel/dma.c | 1 | ||||
-rw-r--r-- | arch/microblaze/kernel/kgdb.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/microblaze/kernel/dma.c b/arch/microblaze/kernel/dma.c index ed7ba8a11822..bf4dec229437 100644 --- a/arch/microblaze/kernel/dma.c +++ b/arch/microblaze/kernel/dma.c | |||
@@ -154,6 +154,7 @@ dma_direct_sync_sg_for_device(struct device *dev, | |||
154 | __dma_sync(sg->dma_address, sg->length, direction); | 154 | __dma_sync(sg->dma_address, sg->length, direction); |
155 | } | 155 | } |
156 | 156 | ||
157 | static | ||
157 | int dma_direct_mmap_coherent(struct device *dev, struct vm_area_struct *vma, | 158 | int dma_direct_mmap_coherent(struct device *dev, struct vm_area_struct *vma, |
158 | void *cpu_addr, dma_addr_t handle, size_t size, | 159 | void *cpu_addr, dma_addr_t handle, size_t size, |
159 | struct dma_attrs *attrs) | 160 | struct dma_attrs *attrs) |
diff --git a/arch/microblaze/kernel/kgdb.c b/arch/microblaze/kernel/kgdb.c index 8736af5806ae..6366f69d118e 100644 --- a/arch/microblaze/kernel/kgdb.c +++ b/arch/microblaze/kernel/kgdb.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #define GDB_RTLBHI 56 | 32 | #define GDB_RTLBHI 56 |
33 | 33 | ||
34 | /* keep pvr separately because it is unchangeble */ | 34 | /* keep pvr separately because it is unchangeble */ |
35 | struct pvr_s pvr; | 35 | static struct pvr_s pvr; |
36 | 36 | ||
37 | void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) | 37 | void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs) |
38 | { | 38 | { |