Re: [PATCH] sparc: fix compile failure ("struct resource" related)

From: Andrew Morton
Date: Tue Mar 01 2005 - 16:41:15 EST


Alexey Dobriyan <adobriyan@xxxxxxx> wrote:
>
> Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxx>

Thanks. Many of these fixups are due to a 64-bit-resource patch in Greg's
bk-pci tree which he has now reverted. That being said:

- That patch will come back sometime

- Fixes like the below make sense anyway and can be merged any time.

- All the fixes which were only applicable when the 64-bit-resource patch
is present have been sent to Greg for when that patch reemerges.


> --- linux-2.6.11-rc5-mm1/arch/sparc/kernel/ioport.c.orig 2005-03-01 21:11:30.000000000 +0200
> +++ linux-2.6.11-rc5-mm1/arch/sparc/kernel/ioport.c 2005-03-01 21:12:48.000000000 +0200
> @@ -54,11 +54,11 @@ static void _sparc_free_io(struct resour
>
> /* This points to the next to use virtual memory for DVMA mappings */
> static struct resource _sparc_dvma = {
> - "sparc_dvma", DVMA_VADDR, DVMA_END - 1
> + .name = "sparc_dvma", .start = DVMA_VADDR, .end = DVMA_END - 1
> };
> /* This points to the start of I/O mappings, cluable from outside. */
> /*ext*/ struct resource sparc_iomap = {
> - "sparc_iomap", IOBASE_VADDR, IOBASE_END - 1
> + .name = "sparc_iomap", .start = IOBASE_VADDR, .end = IOBASE_END - 1
> };
>
> /*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/