Re: [PATCH 06/20] c6x: convert fdt pointers to opaque pointers

From: Geert Uytterhoeven
Date: Fri Apr 04 2014 - 03:57:51 EST


Hi Rob,

On Fri, Apr 4, 2014 at 12:16 AM, Rob Herring <robherring2@xxxxxxxxx> wrote:
> --- a/arch/c6x/kernel/setup.c
> +++ b/arch/c6x/kernel/setup.c
> @@ -265,8 +265,8 @@ int __init c6x_add_memory(phys_addr_t start, unsigned long size)
> */
> notrace void __init machine_init(unsigned long dt_ptr)
> {
> - struct boot_param_header *dtb = __va(dt_ptr);
> - struct boot_param_header *fdt = (struct boot_param_header *)_fdt_start;
> + const void *dtb = __va(dt_ptr);
> + const void *fdt = (const void *)_fdt_start;

Unless it has changed recently, _fdt_start is "char _fdt_start[]",
so the cast should not be needed.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
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/