]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7d677a54d60221e4618cc1d705532d4c92284f4
treeb3adba6c3f828f4f40d4c6bc86c2f28458d098ea
parent93a51470b085c1584325fc1c3526bcc6fd79f9e0
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