platform/x86: intel_pmc_ipc: Mark ipc_data_readb() as __maybe_unused
authorMatthias Kaehlcke <mka@chromium.org>
Thu, 25 May 2017 22:15:10 +0000 (15:15 -0700)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 26 May 2017 09:52:21 +0000 (12:52 +0300)
commit6bee1af9dcaa05c2b9289ec26ed121039dfea251
treeb3adba6c3f828f4f40d4c6bc86c2f28458d098ea
parent3cfd956b02ac7a9fb5f2414171f834871931fbd0
platform/x86: intel_pmc_ipc: Mark ipc_data_readb() as __maybe_unused

The function is currently not used, however it is part of the API and
might be used in the future. Adding the attribute fixes the following
warning when building with clang:

    drivers/platform/x86/intel_pmc_ipc.c:189:18: error: unused function
        'ipc_data_readb' [-Werror,-Wunused-function]

Signed-off-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_pmc_ipc.c