diff options
Diffstat (limited to 'arch/cris/arch-v32')
-rw-r--r-- | arch/cris/arch-v32/drivers/pcf8563.c | 4 | ||||
-rw-r--r-- | arch/cris/arch-v32/drivers/pci/dma.c | 6 | ||||
-rw-r--r-- | arch/cris/arch-v32/kernel/ptrace.c | 7 | ||||
-rw-r--r-- | arch/cris/arch-v32/vmlinux.lds.S | 5 |
4 files changed, 5 insertions, 17 deletions
diff --git a/arch/cris/arch-v32/drivers/pcf8563.c b/arch/cris/arch-v32/drivers/pcf8563.c index fa8d50007e4c..da479a14f836 100644 --- a/arch/cris/arch-v32/drivers/pcf8563.c +++ b/arch/cris/arch-v32/drivers/pcf8563.c | |||
@@ -193,9 +193,7 @@ err: | |||
193 | void __exit | 193 | void __exit |
194 | pcf8563_exit(void) | 194 | pcf8563_exit(void) |
195 | { | 195 | { |
196 | if (unregister_chrdev(PCF8563_MAJOR, DEVICE_NAME) < 0) { | 196 | unregister_chrdev(PCF8563_MAJOR, DEVICE_NAME); |
197 | printk(KERN_INFO "%s: Unable to unregister device.\n", PCF8563_NAME); | ||
198 | } | ||
199 | } | 197 | } |
200 | 198 | ||
201 | /* | 199 | /* |
diff --git a/arch/cris/arch-v32/drivers/pci/dma.c b/arch/cris/arch-v32/drivers/pci/dma.c index 832fc63504d4..66f9500fbc02 100644 --- a/arch/cris/arch-v32/drivers/pci/dma.c +++ b/arch/cris/arch-v32/drivers/pci/dma.c | |||
@@ -91,14 +91,12 @@ int dma_declare_coherent_memory(struct device *dev, dma_addr_t bus_addr, | |||
91 | if (!mem_base) | 91 | if (!mem_base) |
92 | goto out; | 92 | goto out; |
93 | 93 | ||
94 | dev->dma_mem = kmalloc(sizeof(struct dma_coherent_mem), GFP_KERNEL); | 94 | dev->dma_mem = kzalloc(sizeof(struct dma_coherent_mem), GFP_KERNEL); |
95 | if (!dev->dma_mem) | 95 | if (!dev->dma_mem) |
96 | goto out; | 96 | goto out; |
97 | memset(dev->dma_mem, 0, sizeof(struct dma_coherent_mem)); | 97 | dev->dma_mem->bitmap = kzalloc(bitmap_size, GFP_KERNEL); |
98 | dev->dma_mem->bitmap = kmalloc(bitmap_size, GFP_KERNEL); | ||
99 | if (!dev->dma_mem->bitmap) | 98 | if (!dev->dma_mem->bitmap) |
100 | goto free1_out; | 99 | goto free1_out; |
101 | memset(dev->dma_mem->bitmap, 0, bitmap_size); | ||
102 | 100 | ||
103 | dev->dma_mem->virt_base = mem_base; | 101 | dev->dma_mem->virt_base = mem_base; |
104 | dev->dma_mem->device_base = device_addr; | 102 | dev->dma_mem->device_base = device_addr; |
diff --git a/arch/cris/arch-v32/kernel/ptrace.c b/arch/cris/arch-v32/kernel/ptrace.c index d4d57b741334..38ece0cd47cb 100644 --- a/arch/cris/arch-v32/kernel/ptrace.c +++ b/arch/cris/arch-v32/kernel/ptrace.c | |||
@@ -146,12 +146,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) | |||
146 | /* Write the word at location address. */ | 146 | /* Write the word at location address. */ |
147 | case PTRACE_POKETEXT: | 147 | case PTRACE_POKETEXT: |
148 | case PTRACE_POKEDATA: | 148 | case PTRACE_POKEDATA: |
149 | ret = 0; | 149 | ret = generic_ptrace_pokedata(child, addr, data); |
150 | |||
151 | if (access_process_vm(child, addr, &data, sizeof(data), 1) == sizeof(data)) | ||
152 | break; | ||
153 | |||
154 | ret = -EIO; | ||
155 | break; | 150 | break; |
156 | 151 | ||
157 | /* Write the word at location address in the USER area. */ | 152 | /* Write the word at location address in the USER area. */ |
diff --git a/arch/cris/arch-v32/vmlinux.lds.S b/arch/cris/arch-v32/vmlinux.lds.S index e3a32ac17ab2..b076c134c0bb 100644 --- a/arch/cris/arch-v32/vmlinux.lds.S +++ b/arch/cris/arch-v32/vmlinux.lds.S | |||
@@ -91,10 +91,7 @@ SECTIONS | |||
91 | } | 91 | } |
92 | SECURITY_INIT | 92 | SECURITY_INIT |
93 | 93 | ||
94 | . = ALIGN (8192); | 94 | PERCPU(8192) |
95 | __per_cpu_start = .; | ||
96 | .data.percpu : { *(.data.percpu) } | ||
97 | __per_cpu_end = .; | ||
98 | 95 | ||
99 | #ifdef CONFIG_BLK_DEV_INITRD | 96 | #ifdef CONFIG_BLK_DEV_INITRD |
100 | .init.ramfs : { | 97 | .init.ramfs : { |