diff options
| author | Guenter Roeck <[email protected]> | 2015-11-07 03:28:22 +0000 |
|---|---|---|
| committer | Rob Herring <[email protected]> | 2015-11-10 23:27:12 +0000 |
| commit | b1d06b60e90cd5016798b9984f8e420e753f4846 (patch) | |
| tree | 5ff1f8763ebddbcb9bb7a3a5cbc8a7b7029ab9ad /drivers/fpga/fpga-mgr.c | |
| parent | drivers: of: of_reserved_mem: fixup the alignment with CMA setup (diff) | |
| download | kernel-b1d06b60e90cd5016798b9984f8e420e753f4846.tar.gz kernel-b1d06b60e90cd5016798b9984f8e420e753f4846.zip | |
of: Provide static inline function for of_translate_address if needed
If OF_ADDRESS is not configured, builds can fail with errors such as
drivers/net/ethernet/hisilicon/hns_mdio.c:
In function 'hns_mdio_bus_name':
drivers/net/ethernet/hisilicon/hns_mdio.c:411:3:
error: implicit declaration of function 'of_translate_address'
as currently seen when building sparc:allmodconfig.
Introduce a static inline function if OF_ADDRESS is not configured to fix
the build failure. Return OF_BAD_ADDR in this case. For this to work, the
definition of OF_BAD_ADDR has to be moved outside CONFIG_OF conditional
code.
Fixes: 876133d3161d ("net: hisilicon: add OF dependency")
Cc: Arnd Bergmann <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
Reviewed-by: Arnd Bergmann <[email protected]>
Reviewed-by: Frank Rowand <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
