mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
llcc: Overcome unused function warnings when CONFIG_QCOM_LLCC is not enable
When CONFIG_QCOM_LLCC is not enabled, there is unused function warnings seen when llcc-tcm.h is added part of client driver. warning: unused function 'llcc_tcm_get_phys_addr' [-Wunused-function] Suppress those warnings by adding __maybe_unused attributes with those APIs. Change-Id: Ic933b67f95a0f7b2b5577d7d0f79c19cc1dbeb2a Signed-off-by: Mayank Rana <mrana@codeaurora.org>
This commit is contained in:
parent
6908a58fe7
commit
f76776cece
1 changed files with 5 additions and 5 deletions
|
|
@ -30,19 +30,19 @@ size_t llcc_tcm_get_slice_size(struct llcc_tcm_data *tcm_data);
|
|||
|
||||
void llcc_tcm_deactivate(struct llcc_tcm_data *tcm_data);
|
||||
#else
|
||||
static struct llcc_tcm_data *llcc_tcm_activate(void)
|
||||
static __maybe_unused struct llcc_tcm_data *llcc_tcm_activate(void)
|
||||
{ return NULL; }
|
||||
|
||||
static phys_addr_t llcc_tcm_get_phys_addr(struct llcc_tcm_data *tcm_data)
|
||||
static __maybe_unused phys_addr_t llcc_tcm_get_phys_addr(struct llcc_tcm_data *tcm_data)
|
||||
{ return 0; }
|
||||
|
||||
static void __iomem *llcc_tcm_get_virt_addr(struct llcc_tcm_data *tcm_data)
|
||||
static __maybe_unused void __iomem *llcc_tcm_get_virt_addr(struct llcc_tcm_data *tcm_data)
|
||||
{ return NULL; }
|
||||
|
||||
static size_t llcc_tcm_get_slice_size(struct llcc_tcm_data *tcm_data)
|
||||
static __maybe_unused size_t llcc_tcm_get_slice_size(struct llcc_tcm_data *tcm_data)
|
||||
{ return 0; }
|
||||
|
||||
static void llcc_tcm_deactivate(struct llcc_tcm_data *tcm_data)
|
||||
static __maybe_unused void llcc_tcm_deactivate(struct llcc_tcm_data *tcm_data)
|
||||
{ }
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue