diff options
| author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-10-28 09:29:43 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-10-28 09:29:43 -0400 |
| commit | f339ab3d6c59f8f898c165384aa2b6a0ae5d4c1c (patch) | |
| tree | c17ec50ffe9544c8c67a6532644bb0a1cedc53b7 | |
| parent | 674c04538284736c4a44224c78cb784b2c972f98 (diff) | |
[ARM] Fix sparse warnings
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>
| -rw-r--r-- | arch/arm/kernel/module.c | 1 | ||||
| -rw-r--r-- | arch/arm/mm/consistent.c | 6 | ||||
| -rw-r--r-- | drivers/pcmcia/sa1111_generic.c | 2 | ||||
| -rw-r--r-- | include/asm-arm/mach/arch.h | 6 |
4 files changed, 8 insertions, 7 deletions
diff --git a/arch/arm/kernel/module.c b/arch/arm/kernel/module.c index 1a85cfdad5ac..6055e1427ba3 100644 --- a/arch/arm/kernel/module.c +++ b/arch/arm/kernel/module.c | |||
| @@ -11,6 +11,7 @@ | |||
| 11 | */ | 11 | */ |
| 12 | #include <linux/config.h> | 12 | #include <linux/config.h> |
| 13 | #include <linux/module.h> | 13 | #include <linux/module.h> |
| 14 | #include <linux/moduleloader.h> | ||
| 14 | #include <linux/kernel.h> | 15 | #include <linux/kernel.h> |
| 15 | #include <linux/elf.h> | 16 | #include <linux/elf.h> |
| 16 | #include <linux/vmalloc.h> | 17 | #include <linux/vmalloc.h> |
diff --git a/arch/arm/mm/consistent.c b/arch/arm/mm/consistent.c index 26356ce4da54..0f32de977f5e 100644 --- a/arch/arm/mm/consistent.c +++ b/arch/arm/mm/consistent.c | |||
| @@ -75,7 +75,7 @@ static struct vm_region consistent_head = { | |||
| 75 | }; | 75 | }; |
| 76 | 76 | ||
| 77 | static struct vm_region * | 77 | static struct vm_region * |
| 78 | vm_region_alloc(struct vm_region *head, size_t size, int gfp) | 78 | vm_region_alloc(struct vm_region *head, size_t size, unsigned int gfp) |
| 79 | { | 79 | { |
| 80 | unsigned long addr = head->vm_start, end = head->vm_end - size; | 80 | unsigned long addr = head->vm_start, end = head->vm_end - size; |
| 81 | unsigned long flags; | 81 | unsigned long flags; |
| @@ -133,8 +133,8 @@ static struct vm_region *vm_region_find(struct vm_region *head, unsigned long ad | |||
| 133 | #endif | 133 | #endif |
| 134 | 134 | ||
| 135 | static void * | 135 | static void * |
| 136 | __dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, int gfp, | 136 | __dma_alloc(struct device *dev, size_t size, dma_addr_t *handle, |
| 137 | pgprot_t prot) | 137 | unsigned int gfp, pgprot_t prot) |
| 138 | { | 138 | { |
| 139 | struct page *page; | 139 | struct page *page; |
| 140 | struct vm_region *c; | 140 | struct vm_region *c; |
diff --git a/drivers/pcmcia/sa1111_generic.c b/drivers/pcmcia/sa1111_generic.c index bb90a1448a53..81ded52c8959 100644 --- a/drivers/pcmcia/sa1111_generic.c +++ b/drivers/pcmcia/sa1111_generic.c | |||
| @@ -122,7 +122,7 @@ void sa1111_pcmcia_socket_suspend(struct soc_pcmcia_socket *skt) | |||
| 122 | 122 | ||
| 123 | static int pcmcia_probe(struct sa1111_dev *dev) | 123 | static int pcmcia_probe(struct sa1111_dev *dev) |
| 124 | { | 124 | { |
| 125 | char *base; | 125 | void __iomem *base; |
| 126 | 126 | ||
| 127 | if (!request_mem_region(dev->res.start, 512, | 127 | if (!request_mem_region(dev->res.start, 512, |
| 128 | SA1111_DRIVER_NAME(dev))) | 128 | SA1111_DRIVER_NAME(dev))) |
diff --git a/include/asm-arm/mach/arch.h b/include/asm-arm/mach/arch.h index 4fa95084a8c0..7273c6fd95b5 100644 --- a/include/asm-arm/mach/arch.h +++ b/include/asm-arm/mach/arch.h | |||
| @@ -48,10 +48,10 @@ struct machine_desc { | |||
| 48 | * Set of macros to define architecture features. This is built into | 48 | * Set of macros to define architecture features. This is built into |
| 49 | * a table by the linker. | 49 | * a table by the linker. |
| 50 | */ | 50 | */ |
| 51 | #define MACHINE_START(_type,_name) \ | 51 | #define MACHINE_START(_type,_name) \ |
| 52 | const struct machine_desc __mach_desc_##_type \ | 52 | static const struct machine_desc __mach_desc_##_type \ |
| 53 | __attribute__((__section__(".arch.info.init"))) = { \ | 53 | __attribute__((__section__(".arch.info.init"))) = { \ |
| 54 | .nr = MACH_TYPE_##_type, \ | 54 | .nr = MACH_TYPE_##_type, \ |
| 55 | .name = _name, | 55 | .name = _name, |
| 56 | 56 | ||
| 57 | #define MACHINE_END \ | 57 | #define MACHINE_END \ |
