Files
android_kernel_fxtec_sm6115/include/linux
Arnd Bergmann 8a1ac5dc7b include/linux/of.h: provide of_n_{addr,size}_cells wrappers for !CONFIG_OF
The pci-rcar driver is enabled for compile tests, and this has shown that
the driver cannot build without CONFIG_OF, following the inclusion of
commit f8f2fe7355 ("PCI: rcar: Use new OF interrupt mapping when possible"):

  drivers/pci/host/pcie-rcar.c: In function 'pci_dma_range_parser_init':
  drivers/pci/host/pcie-rcar.c:1039:2: error: implicit declaration of function 'of_n_addr_cells' [-Werror=implicit-function-declaration]
    parser->pna = of_n_addr_cells(node);
    ^

As pointed out by Ben Dooks and Geert Uytterhoeven, this is actually
supposed to build fine, which we can achieve if we make the declaration
of of_irq_parse_and_map_pci conditional on CONFIG_OF and provide an
empty inline function otherwise, as we do for a lot of other of
interfaces.

This lets us build the rcar_pci driver again without CONFIG_OF for build
testing.  All platforms using this driver select OF, so this doesn't
change anything for the users.

[akpm@linux-foundation.org: be consistent with surrounding code]
Link: http://lkml.kernel.org/r/20170911200805.3363318-1-arnd@arndb.de
Fixes: c25da47788 ("PCI: rcar: Add Renesas R-Car PCIe driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Frank Rowand <frank.rowand@sony.com>
Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Magnus Damm <damm@opensource.se>
Cc: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2017-10-13 16:18:32 -07:00
..
2017-09-06 19:56:49 +02:00
2017-10-04 10:22:55 +02:00
2017-09-01 16:35:50 -05:00
2016-12-22 22:58:37 -05:00
2012-10-08 13:50:20 +10:30
2011-03-11 14:25:50 +00:00
2017-09-08 18:26:49 -07:00
2017-07-17 17:26:14 +02:00
2017-07-06 16:24:33 -07:00
2017-01-25 13:17:47 -05:00
2009-11-20 20:13:39 +01:00
2017-07-03 16:56:28 -06:00
2017-04-18 20:41:12 +02:00
2017-08-30 14:40:40 +02:00
2017-09-04 00:06:02 +02:00
2017-06-09 11:52:07 +02:00
2017-09-05 12:53:11 +02:00
2017-08-24 13:23:03 -07:00
2012-02-20 19:46:36 +11:00
2008-01-28 23:21:18 +01:00
2016-05-17 15:48:12 -04:00
2017-08-01 17:33:02 +02:00
2017-04-27 05:13:04 -04:00
2014-12-31 13:06:50 -05:00
2014-10-09 11:35:48 +03:00
2017-07-07 20:09:10 -04:00
2009-06-18 13:04:05 -07:00
2014-08-06 18:01:24 -07:00
2015-05-12 10:46:53 +02:00
2010-02-09 11:13:56 +01:00
2017-09-08 18:26:46 -07:00
2008-08-02 18:36:10 +01:00
2017-06-21 14:37:12 -04:00
2017-07-10 16:32:34 -07:00
2012-03-20 12:47:48 +01:00
2017-01-05 15:01:55 -06:00
2016-03-22 15:36:02 -07:00
2011-01-24 14:45:11 +10:30
2013-08-28 21:35:14 -07:00
2017-08-14 13:33:39 -07:00
2016-12-25 17:21:23 +01:00
2017-07-10 13:41:04 -04:00
2015-04-29 17:17:17 -05:00
2017-08-28 20:51:22 +02:00
2017-09-07 11:53:11 +02:00
2017-08-18 15:32:01 -07:00
2017-04-24 14:30:46 -04:00
2017-01-12 16:48:26 -05:00
2014-01-25 03:14:05 -05:00
2016-02-16 13:04:58 -05:00
2017-09-25 08:56:05 -06:00
2017-05-26 10:10:37 +02:00
2017-09-06 17:27:26 -07:00
2016-12-06 10:17:03 +02:00
2017-08-06 20:55:29 -07:00
2017-08-06 20:55:29 -07:00
2017-08-21 12:47:31 -07:00
2011-03-31 11:26:23 -03:00
2017-09-08 18:26:47 -07:00
2017-08-16 16:28:47 -07:00
2016-03-17 15:09:34 -07:00
2010-02-10 17:47:17 -08:00
2017-06-29 10:48:57 +01:00
2013-06-17 16:38:57 -07:00
2016-01-04 16:11:11 -05:00
2017-08-16 16:28:47 -07:00
2017-08-03 21:37:29 -07:00
2016-12-26 23:53:46 -05:00
2017-06-08 18:52:42 -07:00
2010-08-09 16:48:44 -04:00
2017-09-11 12:29:41 -04:00
2013-04-30 15:50:12 +05:30
2017-09-15 16:57:10 +02:00
2005-04-16 15:20:36 -07:00
2017-01-10 18:31:55 -08:00
2015-10-01 09:57:59 -07:00
2010-11-29 08:55:25 +11:00
2017-08-28 16:15:42 +02:00
2005-04-16 15:20:36 -07:00
2017-07-24 17:50:37 +02:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2017-05-09 16:43:22 +03:00
2017-09-08 18:26:48 -07:00
2017-08-31 18:50:14 +02:00
2017-09-05 06:34:17 -07:00
2017-08-15 09:02:08 -07:00