diff options
author | Alexander Beregalov <a.beregalov@gmail.com> | 2009-03-19 06:54:07 -0400 |
---|---|---|
committer | Kyle McMartin <kyle@mcmartin.ca> | 2009-04-01 20:40:41 -0400 |
commit | c18b4608958ff42ce9a1a55b0a6f40b714f47286 (patch) | |
tree | 3fe1b4f9c8e57ac30e938c9515f1d10b8edaeed5 /drivers/parisc/eisa_enumerator.c | |
parent | f67d3c83f3f1e6523325628434bf19e5166b39b3 (diff) |
parisc: drivers: fix warnings
ccio-dma.c:456: warning: overflow in implicit constant conversion
ccio-dma.c:459: warning: overflow in implicit constant conversion
ccio-dma.c:1032: warning: unused variable 'j'
ccio-dma.c:1031: warning: unused variable 'max'
ccio-dma.c:1031: warning: unused variable 'min'
ccio-dma.c:1031: warning: unused variable 'avg'
ccio-dma.c:1403: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'
ccio-dma.c:1403: warning: format '%08lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'
ccio-dma.c:1554: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'
dino.c:822: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'
dino.c:822: warning: format '%lx' expects type 'long unsigned int', but argument 5 has type 'resource_size_t'
dino.c:902: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'
dino.c:902: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'
asp.c:84: warning: format '%lx' expects type 'long unsigned int', but argument 4 has type 'resource_size_t'
eisa.c:317: warning: format '%08lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'
eisa_enumerator.c:101: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'resource_size_t'
eisa_enumerator.c:101: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'
eisa_enumerator.c:191: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'resource_size_t'
eisa_enumerator.c:191: warning: format '%lx' expects type 'long unsigned int', but argument 3 has type 'resource_size_t'
Signed-off-by: Alexander Beregalov <a.beregalov@gmail.com>
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'drivers/parisc/eisa_enumerator.c')
-rw-r--r-- | drivers/parisc/eisa_enumerator.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/parisc/eisa_enumerator.c b/drivers/parisc/eisa_enumerator.c index 6d8aae003f6c..c709ecc2b7f7 100644 --- a/drivers/parisc/eisa_enumerator.c +++ b/drivers/parisc/eisa_enumerator.c | |||
@@ -98,7 +98,7 @@ static int configure_memory(const unsigned char *buf, | |||
98 | res->start = mem_parent->start + get_24(buf+len+2); | 98 | res->start = mem_parent->start + get_24(buf+len+2); |
99 | res->end = res->start + get_16(buf+len+5)*1024; | 99 | res->end = res->start + get_16(buf+len+5)*1024; |
100 | res->flags = IORESOURCE_MEM; | 100 | res->flags = IORESOURCE_MEM; |
101 | printk("memory %lx-%lx ", res->start, res->end); | 101 | printk("memory %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end); |
102 | result = request_resource(mem_parent, res); | 102 | result = request_resource(mem_parent, res); |
103 | if (result < 0) { | 103 | if (result < 0) { |
104 | printk("\n" KERN_ERR "EISA Enumerator: failed to claim EISA Bus address space!\n"); | 104 | printk("\n" KERN_ERR "EISA Enumerator: failed to claim EISA Bus address space!\n"); |
@@ -188,7 +188,7 @@ static int configure_port(const unsigned char *buf, struct resource *io_parent, | |||
188 | res->start = get_16(buf+len+1); | 188 | res->start = get_16(buf+len+1); |
189 | res->end = get_16(buf+len+1)+(c&HPEE_PORT_SIZE_MASK)+1; | 189 | res->end = get_16(buf+len+1)+(c&HPEE_PORT_SIZE_MASK)+1; |
190 | res->flags = IORESOURCE_IO; | 190 | res->flags = IORESOURCE_IO; |
191 | printk("ioports %lx-%lx ", res->start, res->end); | 191 | printk("ioports %lx-%lx ", (unsigned long)res->start, (unsigned long)res->end); |
192 | result = request_resource(io_parent, res); | 192 | result = request_resource(io_parent, res); |
193 | if (result < 0) { | 193 | if (result < 0) { |
194 | printk("\n" KERN_ERR "EISA Enumerator: failed to claim EISA Bus address space!\n"); | 194 | printk("\n" KERN_ERR "EISA Enumerator: failed to claim EISA Bus address space!\n"); |