]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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)
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

index e4d4dfe3e1d1b5950cd1723ea60e343a4d140875..bb792a52248b63d1c16a4fefc67a32de0e58101b 100644 (file)
@@ -186,7 +186,7 @@ static inline void ipc_data_writel(u32 data, u32 offset)
        writel(data, ipcdev.ipc_base + IPC_WRITE_BUFFER + offset);
 }
 
-static inline u8 ipc_data_readb(u32 offset)
+static inline u8 __maybe_unused ipc_data_readb(u32 offset)
 {
        return readb(ipcdev.ipc_base + IPC_READ_BUFFER + offset);
 }