]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
[ARM] Fix sparse warnings
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Fri, 28 Oct 2005 13:29:43 +0000 (14:29 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 28 Oct 2005 13:29:43 +0000 (14:29 +0100)
Fix sparse warnings in arch/arm/kernel/module.c,
arch/arm/mm/consistent.c, drivers/pcmcia/sa1111_generic.c,
and platform support files.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/module.c
arch/arm/mm/consistent.c
drivers/pcmcia/sa1111_generic.c
include/asm-arm/mach/arch.h

index 1a85cfdad5acabcce57a96b7d35aacf0a50a5093..6055e1427ba35819132623b297583cb2484215c6 100644 (file)
@@ -11,6 +11,7 @@
  */
 #include <linux/config.h>
 #include <linux/module.h>
+#include <linux/moduleloader.h>
 #include <linux/kernel.h>
 #include <linux/elf.h>
 #include <linux/vmalloc.h>
index 26356ce4da5448165bcac172139deef54a008462..0f32de977f5e38dfbb50cebf79a4a1e46504c1d0 100644 (file)
@@ -75,7 +75,7 @@ static struct vm_region consistent_head = {
 };
 
 static struct vm_region *
-vm_region_alloc(struct vm_region *head, size_t size, int gfp)
+vm_region_alloc(struct vm_region *head, size_t size, unsigned int gfp)
 {
        unsigned long addr = head->vm_start, end = head->vm_end - size;
        unsigned long flags;
@@ -133,8 +133,8 @@ static struct vm_region *vm_region_find(struct vm_region *head, unsigned long ad
 #endif
 
 static void *
-__dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, int gfp,
-           pgprot_t prot)
+__dma_alloc(struct device *dev, size_t size, dma_addr_t *handle,
+           unsigned int gfp, pgprot_t prot)
 {
        struct page *page;
        struct vm_region *c;
index bb90a1448a53d0995b3067c07cd10015c8e3754a..81ded52c8959aadc6efc6673de0604f0d11a84a1 100644 (file)
@@ -122,7 +122,7 @@ void sa1111_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt)
 
 static int pcmcia_probe(struct sa1111_dev *dev)
 {
-       char *base;
+       void __iomem *base;
 
        if (!request_mem_region(dev->res.start, 512,
                                SA1111_DRIVER_NAME(dev)))
index 4fa95084a8c0459f58b87a9e36f75019069fb0c6..7273c6fd95b53d39a3bae2e882c134e789030fcb 100644 (file)
@@ -48,10 +48,10 @@ struct machine_desc {
  * Set of macros to define architecture features.  This is built into
  * a table by the linker.
  */
-#define MACHINE_START(_type,_name)             \
-const struct machine_desc __mach_desc_##_type  \
+#define MACHINE_START(_type,_name)                     \
+static const struct machine_desc __mach_desc_##_type   \
  __attribute__((__section__(".arch.info.init"))) = {   \
-       .nr             = MACH_TYPE_##_type,    \
+       .nr             = MACH_TYPE_##_type,            \
        .name           = _name,
 
 #define MACHINE_END                            \