[U-Boot] [PATCH] dm: check OF_LIVE is enabled
Simon Glass
sjg at chromium.org
Sun Mar 10 21:51:15 UTC 2019
Hi Ibai,
On Tue, 26 Feb 2019 at 02:26, Ibai Erkiaga
<ibai.erkiaga-elorza at xilinx.com> wrote:
>
> Livetree implemented functions does not have conditional compilation so
> check if CONFIG_IS_ENABLED prior using those functions.
>
> The issue does not report any error in a normal build as the toolchain
> optimize the code. Using -O0 triggers the error so the patch is intended
> to fix issues on a ongoing effor to build U-Boot with -O0.
>
> Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza at xilinx.com>
> ---
>
> drivers/core/ofnode.c | 60 +++++++++++++++++++++---------------------
> drivers/serial/serial-uclass.c | 2 +-
> 2 files changed, 31 insertions(+), 31 deletions(-)
>
This is supposed to work by using of_live_active(), which is called
from ofnode_is_np(). Instead of changing all this code, is it possible
to update of_live_active() somehow?
Regards,
Simon
More information about the U-Boot
mailing list