* [PATCH] nios2: Replace fdt_translate_address with of_flat_dt_translate_address
@ 2016-03-18 2:49 Guenter Roeck
2016-03-18 3:22 ` Peter Hurley
0 siblings, 1 reply; 4+ messages in thread
From: Guenter Roeck @ 2016-03-18 2:49 UTC (permalink / raw)
To: Ley Foon Tan
Cc: nios2-dev, linux-kernel, Guenter Roeck, Peter Hurley, Rob Herring
nios2 builds fail with the following build error.
arch/nios2/kernel/prom.c: In function 'early_init_dt_scan_serial':
arch/nios2/kernel/prom.c:100:2: error:
implicit declaration of function 'fdt_translate_address'
Commit c90fe9c0394b ("of: earlycon: Move address translation to
of_setup_earlycon()") replaced fdt_translate_address() with
of_flat_dt_translate_address() but missed updating the nios2 code.
Fixes: c90fe9c0394b ("of: earlycon: Move address translation to of_setup_earlycon()")
Cc: Peter Hurley <peter@hurleysoftware.com>
Cc: Rob Herring <robh@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
arch/nios2/kernel/prom.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/arch/nios2/kernel/prom.c b/arch/nios2/kernel/prom.c
index 718dd197909f..367c5426157b 100644
--- a/arch/nios2/kernel/prom.c
+++ b/arch/nios2/kernel/prom.c
@@ -97,8 +97,7 @@ static int __init early_init_dt_scan_serial(unsigned long node,
return 0;
#endif
- *addr64 = fdt_translate_address((const void *)initial_boot_params,
- node);
+ *addr64 = of_flat_dt_translate_address(node);
return *addr64 == OF_BAD_ADDR ? 0 : 1;
}
--
2.5.0
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] nios2: Replace fdt_translate_address with of_flat_dt_translate_address
2016-03-18 2:49 [PATCH] nios2: Replace fdt_translate_address with of_flat_dt_translate_address Guenter Roeck
@ 2016-03-18 3:22 ` Peter Hurley
2016-03-18 5:58 ` Ley Foon Tan
0 siblings, 1 reply; 4+ messages in thread
From: Peter Hurley @ 2016-03-18 3:22 UTC (permalink / raw)
To: Guenter Roeck, Ley Foon Tan; +Cc: nios2-dev, linux-kernel, Rob Herring
Hi Guenter,
On 03/17/2016 07:49 PM, Guenter Roeck wrote:
> nios2 builds fail with the following build error.
>
> arch/nios2/kernel/prom.c: In function 'early_init_dt_scan_serial':
> arch/nios2/kernel/prom.c:100:2: error:
> implicit declaration of function 'fdt_translate_address'
>
> Commit c90fe9c0394b ("of: earlycon: Move address translation to
> of_setup_earlycon()") replaced fdt_translate_address() with
> of_flat_dt_translate_address() but missed updating the nios2 code.
My bad.
The sad part is I even noted this other user of fdt_translate_address()
in a review of a different patch, and then overlooked it in my own patch. :/
Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
> Fixes: c90fe9c0394b ("of: earlycon: Move address translation to of_setup_earlycon()")
> Cc: Peter Hurley <peter@hurleysoftware.com>
> Cc: Rob Herring <robh@kernel.org>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
> ---
> arch/nios2/kernel/prom.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/arch/nios2/kernel/prom.c b/arch/nios2/kernel/prom.c
> index 718dd197909f..367c5426157b 100644
> --- a/arch/nios2/kernel/prom.c
> +++ b/arch/nios2/kernel/prom.c
> @@ -97,8 +97,7 @@ static int __init early_init_dt_scan_serial(unsigned long node,
> return 0;
> #endif
>
> - *addr64 = fdt_translate_address((const void *)initial_boot_params,
> - node);
> + *addr64 = of_flat_dt_translate_address(node);
>
> return *addr64 == OF_BAD_ADDR ? 0 : 1;
> }
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nios2: Replace fdt_translate_address with of_flat_dt_translate_address
2016-03-18 3:22 ` Peter Hurley
@ 2016-03-18 5:58 ` Ley Foon Tan
2016-03-18 13:28 ` Peter Hurley
0 siblings, 1 reply; 4+ messages in thread
From: Ley Foon Tan @ 2016-03-18 5:58 UTC (permalink / raw)
To: Peter Hurley; +Cc: Guenter Roeck, nios2-dev, linux-kernel, Rob Herring
On Thu, 2016-03-17 at 20:22 -0700, Peter Hurley wrote:
> Hi Guenter,
>
> On 03/17/2016 07:49 PM, Guenter Roeck wrote:
> > nios2 builds fail with the following build error.
> >
> > arch/nios2/kernel/prom.c: In function 'early_init_dt_scan_serial':
> > arch/nios2/kernel/prom.c:100:2: error:
> > implicit declaration of function 'fdt_translate_address'
> >
> > Commit c90fe9c0394b ("of: earlycon: Move address translation to
> > of_setup_earlycon()") replaced fdt_translate_address() with
> > of_flat_dt_translate_address() but missed updating the nios2 code.
>
> My bad.
> The sad part is I even noted this other user of fdt_translate_address()
> in a review of a different patch, and then overlooked it in my own patch. :/
>
> Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
>
Hi Peter,
Will you take this patch or you want me to take this?
Thanks.
Regards
Ley Foon
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] nios2: Replace fdt_translate_address with of_flat_dt_translate_address
2016-03-18 5:58 ` Ley Foon Tan
@ 2016-03-18 13:28 ` Peter Hurley
0 siblings, 0 replies; 4+ messages in thread
From: Peter Hurley @ 2016-03-18 13:28 UTC (permalink / raw)
To: Ley Foon Tan; +Cc: Guenter Roeck, nios2-dev, linux-kernel, Rob Herring
On 03/17/2016 10:58 PM, Ley Foon Tan wrote:
> On Thu, 2016-03-17 at 20:22 -0700, Peter Hurley wrote:
>> Hi Guenter,
>>
>> On 03/17/2016 07:49 PM, Guenter Roeck wrote:
>>> nios2 builds fail with the following build error.
>>>
>>> arch/nios2/kernel/prom.c: In function 'early_init_dt_scan_serial':
>>> arch/nios2/kernel/prom.c:100:2: error:
>>> implicit declaration of function 'fdt_translate_address'
>>>
>>> Commit c90fe9c0394b ("of: earlycon: Move address translation to
>>> of_setup_earlycon()") replaced fdt_translate_address() with
>>> of_flat_dt_translate_address() but missed updating the nios2 code.
>>
>> My bad.
>> The sad part is I even noted this other user of fdt_translate_address()
>> in a review of a different patch, and then overlooked it in my own patch. :/
>>
>> Reviewed-by: Peter Hurley <peter@hurleysoftware.com>
>>
> Hi Peter,
>
> Will you take this patch or you want me to take this?
> Thanks.
Please take this patch.
Regards,
Peter Hurley
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-03-18 13:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-18 2:49 [PATCH] nios2: Replace fdt_translate_address with of_flat_dt_translate_address Guenter Roeck
2016-03-18 3:22 ` Peter Hurley
2016-03-18 5:58 ` Ley Foon Tan
2016-03-18 13:28 ` Peter Hurley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox