On Tue, Mar 28, 2017 at 11:37 AM, Tobias Regnery <tobias.regnery@xxxxxxxxx> 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@xxxxxxxxx> > --- > Changes in v2: > - add a stub for of_n_size_cells as suggested by Arnd Acked-by: Arnd Bergmann <arnd@xxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html