From 1a064151a2fb87ad53f602f46fea64ae16c261d7 Mon Sep 17 00:00:00 2001 From: Wenge Zhu Date: Fri, 29 Jul 2022 17:07:46 +0800 Subject: [PATCH] Fix goodix touch driver build error Fix goodix touch driver build error when enable FOD event on SM8550 platform. goodix_ts_gesture_fod.c:368:6: error: variable 'fodx' set but not used [-Werror,-Wunused-but-set-variable] int fodx, fody, overlay_area; Change-Id: Id98544f32b4e75345236b684593fe9d308781c96 Signed-off-by: Wenge Zhu Reviewed-on: https://gerrit.mot.com/2349095 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- .../input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c index fea1ad56bd9a..5ff9c404296f 100644 --- a/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c +++ b/drivers/input/touchscreen/goodix_berlin_mmi/goodix_ts_gesture_fod.c @@ -365,7 +365,7 @@ static int gsx_gesture_ist(struct goodix_ts_core *cd, { struct goodix_ts_hw_ops *hw_ops = cd->hw_ops; struct goodix_ts_event gs_event = {0}; - int fodx, fody, overlay_area; + __maybe_unused int fodx, fody, overlay_area; int ret; #if defined(CONFIG_INPUT_TOUCHSCREEN_MMI) struct gesture_event_data mmi_event;