ASoC: sprd: Remove build warnings 67/159767/1
authorJaechul Lee <jcsing.lee@samsung.com>
Mon, 13 Nov 2017 02:28:51 +0000 (11:28 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Mon, 13 Nov 2017 04:50:44 +0000 (13:50 +0900)
Add __maybe_unused for fixing Wunused-function.

Change-Id: I90c9bd1b0e07fcd5be498acae051afc02dff4d13
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
include/soc/sprd/__sprd_audio_sc8830.h

index 296ba8a..7d4b925 100644 (file)
@@ -973,7 +973,7 @@ static inline int arch_audio_i2s_switch(int id, int master)
 
 #endif
 
-static int wrapper_raw_readl(void *value)
+static __maybe_unused int wrapper_raw_readl(void *value)
 {
        u32 ret;
 
@@ -981,7 +981,7 @@ static int wrapper_raw_readl(void *value)
        return (int)ret;
 }
 
-static int wrapper_sci_adi_read(void *value)
+static __maybe_unused int wrapper_sci_adi_read(void *value)
 {
        unsigned long reg = (unsigned long)value;
        return sci_adi_read(reg);