dma-mapping:do not initialise statics to 0.
PATCH 1/1 dma-mapping:do not initialise statics to 0.
do not initialise statics to 0.
Signed-off-by Xin Gao <[email protected]>
--- arch/parisc/kernel/pci-dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/parisc/kernel/pci-dma.c +2 -2
@@ -36,8 +36,8 @@#include <asm/tlbflush.h> /* for purge_tlb_*() macros */ static struct proc_dir_entry * proc_gsc_root__read_mostly =NULL ; -static unsigned long pcxl_used_bytes__read_mostly =0 ; -static unsigned long pcxl_used_pages__read_mostly =0 ; +static unsigned long pcxl_used_bytes__read_mostly ; +static unsigned long pcxl_used_pages__read_mostly ;extern unsigned long pcxl_dma_start;/* Start of pcxl dma mapping area */ static DEFINE_SPINLOCK (pcxl_res_lock);
Signature · 1 line
2.30.2
Helge Deller
maintainerQuoted 12 lines · Xin Gao
do not initialise statics to 0.
Signed-off-by Xin Gao <[email protected]>--- arch/parisc/kernel/pci-dma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)arch/parisc/kernel/pci-dma.c +0
-0
arch/parisc/kernel/pci-dma.c line 38
Quoted 3 lines
arch/parisc/kernel/pci-dma.c +0
-0@@ -36,8 +36,8 @@#include <asm/tlbflush.h> /* for purge_tlb_*() macros */ static struct proc_dir_entry * proc_gsc_root__read_mostly =NULL ;
While at it, you could remove the "= NULL" as well.
Helge
Quoted 7 lines
arch/parisc/kernel/pci-dma.c +2
-2-static unsigned long pcxl_used_bytes__read_mostly =0 ; -static unsigned long pcxl_used_pages__read_mostly =0 ; +static unsigned long pcxl_used_bytes__read_mostly ; +static unsigned long pcxl_used_pages__read_mostly ;extern unsigned long pcxl_dma_start;/* Start of pcxl dma mapping area */ static DEFINE_SPINLOCK (pcxl_res_lock);