qcom: Add some __unused annotations to avoid compiler warnings
cherry-picked from upstream device/linaro/dragonboard project.
Add __unused annotations to qcom remoteproc userland programs
to avoid compiler warnings.
Change-Id: Idd9405ff03afbeeb76433f14d24ee40eef42ed7e
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Amit Pundir <pundiramit@gmail.com>
diff --git a/qcom/rmtfs/sharedmem.c b/qcom/rmtfs/sharedmem.c
index fb31720..a1301da 100644
--- a/qcom/rmtfs/sharedmem.c
+++ b/qcom/rmtfs/sharedmem.c
@@ -256,7 +256,7 @@
return -saved_errno;
}
-static int rmtfs_mem_open_uio(struct rmtfs_mem *rmem, int client_id)
+static int rmtfs_mem_open_uio(struct rmtfs_mem *rmem __unused, int client_id __unused)
{
fprintf(stderr, "uio access is not supported on ANDROID yet\n");
return -EINVAL;
@@ -330,7 +330,7 @@
return rmem->address;
}
-void rmtfs_mem_free(struct rmtfs_mem *rmem)
+void rmtfs_mem_free(struct rmtfs_mem *rmem __unused)
{
}