diff options
author | Arnd Bergmann <arnd@arndb.de> | 2015-11-17 00:34:58 +0300 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2015-11-19 18:22:43 +0300 |
commit | 851df3dc11136fde86ebd78ee7527cb43c7cd349 (patch) | |
tree | f32caa3f1a5fd1d074bc613608c9c7e99d6b01e8 /drivers/soc | |
parent | f9d6fa5d83325fd638e1f911ac9a109c8f2ca56d (diff) | |
download | linux-851df3dc11136fde86ebd78ee7527cb43c7cd349.tar.xz |
scpi: hide get_scpi_ops in module from built-in code
The scpi_clock driver can be built-in when CONFIG_COMPILE_TEST
is set even when ARM_SCPI_PROTOCOL is a loadable module, and
that results in a link error:
drivers/built-in.o: In function `scpi_clocks_probe':
(.text+0x14453c): undefined reference to `get_scpi_ops'
Using #if IS_REACHABLE() around the get_scpi_ops() declaration
makes it build successfully in this case for compile-testing,
but the effect is the same as when ARM_SCPI_PROTOCOL is
disabled, as the code will not be used.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Punit Agrawal <punit.agrawal@arm.com>
Diffstat (limited to 'drivers/soc')
0 files changed, 0 insertions, 0 deletions