Commit 6bee1af9 authored by Matthias Kaehlcke's avatar Matthias Kaehlcke Committed by Andy Shevchenko

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: default avatarMatthias Kaehlcke <mka@chromium.org>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 3cfd956b
...@@ -186,7 +186,7 @@ static inline void ipc_data_writel(u32 data, u32 offset) ...@@ -186,7 +186,7 @@ static inline void ipc_data_writel(u32 data, u32 offset)
writel(data, ipcdev.ipc_base + IPC_WRITE_BUFFER + 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); return readb(ipcdev.ipc_base + IPC_READ_BUFFER + offset);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment