sm8150: fix gcc-10.1.0 warnings

Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
UtsavBalar1231
2020-06-22 14:32:02 +05:30
parent 2367d1b1b5
commit c67085fd2b
5 changed files with 5 additions and 9 deletions

View File

@@ -183,7 +183,7 @@ static irqreturn_t nqx_dev_irq_handler(int irq, void *dev_id)
return IRQ_HANDLED;
}
static int is_data_available_for_read(struct nqx_dev *nqx_dev)
static __maybe_unused int is_data_available_for_read(struct nqx_dev *nqx_dev)
{
int ret;

View File

@@ -141,10 +141,6 @@ out:
#ifndef CONFIG_MODULES
static int __init of_free_phandle_cache(void)
{
const char *name;
struct kobject *parent;
struct property *pp;
int rc;
unsigned long flags;
if (!of_kset)

View File

@@ -1190,7 +1190,7 @@ static int usb_bam_disconnect_ipa_prod(
__func__, pipe_connect->bam_type);
else
ctx->pipes_enabled_per_bam -= 1;
spin_unlock(&ctx->usb_bam_lock);
spin_unlock(&ctx->usb_bam_lock);
}
return 0;
@@ -1312,7 +1312,7 @@ retry:
__func__, pipe_connect->bam_type);
else
ctx->pipes_enabled_per_bam -= 1;
spin_unlock(&ctx->usb_bam_lock);
spin_unlock(&ctx->usb_bam_lock);
}
pipe_connect->ipa_clnt_hdl = -1;

View File

@@ -309,7 +309,7 @@ error:
* You can assume the first device is /dev/dm-0, the next device is /dev/dm-1,
* and so forth.
*/
static int __init dm_setup(char *str)
static int __maybe_unused __init dm_setup(char *str)
{
struct dm_option opt;
unsigned long num_devices;

View File

@@ -4292,7 +4292,7 @@ static int voice_send_cvp_mfc_config_cmd(struct voice_data *v)
return ret;
}
static int voice_get_avcs_version_per_service(uint32_t service_id)
static __maybe_unused int voice_get_avcs_version_per_service(uint32_t service_id)
{
int ret = 0;
size_t ver_size;