[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK8P3a1qpabP12wzeHmWWJeD=1Z=-NeHEX2-MZvVsoOz-6d+HQ@mail.gmail.com>
Date: Tue, 28 Mar 2017 14:38:19 +0200
From: Arnd Bergmann <arnd@...db.de>
To: Tobias Regnery <tobias.regnery@...il.com>
Cc: Rob Herring <robh+dt@...nel.org>, devicetree@...r.kernel.org,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Simon Horman <horms@...ge.net.au>
Subject: Re: [PATCH v2] of: add stubs for of_n_{addr, size}_cells
On Tue, Mar 28, 2017 at 11:37 AM, Tobias Regnery
<tobias.regnery@...il.com> wrote:
> With CONFIG_OF=n and CONFIG_COMPILE_TEST=y the rcar pci-e driver fails to
> build on arm:
>
> drivers/pci/host/pcie-rcar.c: In function 'pci_dma_range_parser_init':
> drivers/pci/host/pcie-rcar.c:1035:16: error: implicit declaration of function 'of_n_addr_cells' [-Werror=implicit-function-declaration]
> parser->pna = of_n_addr_cells(node);
> ^~~~~~~~~~~~~~~
>
> Fix this by adding an inline stub for of_n_addr_cells
>
> While at it also provide a stub for of_n_size_cells for consistency reasons.
>
> Signed-off-by: Tobias Regnery <tobias.regnery@...il.com>
> ---
> Changes in v2:
> - add a stub for of_n_size_cells as suggested by Arnd
Acked-by: Arnd Bergmann <arnd@...db.de>
Powered by blists - more mailing lists