Re: [PATCH] of: add stub for of_n_addr_cells

2017-03-27 Thread Arnd Bergmann
On Mon, Mar 27, 2017 at 7:54 AM, Tobias Regnery wrote: > On 24.03.17, Arnd Bergmann wrote: >> > >> > +static inline int of_n_addr_cells(struct device_node *np) >> > +{ >> > + return 0; >> > +} >> > + >> >> This looks good, but we should also do the same thing for of_n_size_cells(). >> >> I

Re: [PATCH] of: add stub for of_n_addr_cells

2017-03-26 Thread Tobias Regnery
On 24.03.17, Arnd Bergmann wrote: > On Fri, Mar 24, 2017 at 11:39 AM, Tobias Regnery > 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-rca

Re: [PATCH] of: add stub for of_n_addr_cells

2017-03-24 Thread Arnd Bergmann
On Fri, Mar 24, 2017 at 11:39 AM, Tobias Regnery 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 func

[PATCH] of: add stub for of_n_addr_cells

2017-03-24 Thread Tobias Regnery
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]