microblaze: Label local function static
authorMichal Simek <michal.simek@xilinx.com>
Fri, 5 Jun 2015 08:35:31 +0000 (10:35 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 8 Jun 2015 07:57:08 +0000 (09:57 +0200)
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>
arch/microblaze/kernel/dma.c
arch/microblaze/kernel/kgdb.c

index ed7ba8a..bf4dec2 100644 (file)
@@ -154,6 +154,7 @@ dma_direct_sync_sg_for_device(struct device *dev,
                        __dma_sync(sg->dma_address, sg->length, direction);
 }
 
+static
 int dma_direct_mmap_coherent(struct device *dev, struct vm_area_struct *vma,
                             void *cpu_addr, dma_addr_t handle, size_t size,
                             struct dma_attrs *attrs)
index 8736af5..6366f69 100644 (file)
@@ -32,7 +32,7 @@
 #define GDB_RTLBHI     56
 
 /* keep pvr separately because it is unchangeble */
-struct pvr_s pvr;
+static struct pvr_s pvr;
 
 void pt_regs_to_gdb_regs(unsigned long *gdb_regs, struct pt_regs *regs)
 {