From 65b841c39b612b7c7ef133fc6b02e71c16f7e302 Mon Sep 17 00:00:00 2001 From: Jordan Crouse Date: Wed, 15 Jan 2020 10:26:48 -0700 Subject: [PATCH] qseeecom: Fix possible unused function When building as a module, the __setup() macro is undefined and the compiler will warn about the now unused setup function. Mark it as __maybe_unused to avoid the compiler warning. Change-Id: Ic0dedbad341aae7d83169517d94af3b0ea038ac9 Signed-off-by: Jordan Crouse Signed-off-by: Zhen Kong --- drivers/misc/qseecom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/qseecom.c b/drivers/misc/qseecom.c index 875ebedf1bad..a9e969a886ad 100644 --- a/drivers/misc/qseecom.c +++ b/drivers/misc/qseecom.c @@ -444,7 +444,7 @@ static int qseecom_query_ce_info(struct qseecom_dev_handle *data, static int __qseecom_unload_app(struct qseecom_dev_handle *data, uint32_t app_id); -static int get_qseecom_keymaster_status(char *str) +static int __maybe_unused get_qseecom_keymaster_status(char *str) { get_option(&str, &qseecom.is_apps_region_protected); return 1;