Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp348829pxb; Thu, 14 Jan 2021 07:25:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzTj+OezfkgN+zE1I6VmfgA7McIcBW65AHcV8rGxrIUeU5/BZBWBKkDkEZ+qqe2iFr2XdEX X-Received: by 2002:aa7:cc15:: with SMTP id q21mr6178345edt.213.1610637941479; Thu, 14 Jan 2021 07:25:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610637941; cv=none; d=google.com; s=arc-20160816; b=whkxyR91YmYJNP9QrL+A8SNWnkTsIsvHw5tbsLkrHXSBidb6hjewoHPw+FPfDGHI6k jQpZiMsjB9uESKY2kFEZdMp5gJdkWP+KdAukRPv5/a6/gKaDRDUTO1iUhEGcZHuwAFx8 8Uijp+guUv/vMUVLy3U/3Vfstqo4v+ZVM5vVJM3x0SlAwRf+JIwpjyDnc2xu7MtsoG3R N2AleRzRuf2q2hbEyCsrSFX+lYvSBQNYc5cu72ijcRCsj3ECwDdtXaC9OJhENqQAtcC6 WgPj9Rf7GCGDxZrBD1cQ3uW8iEET29Fc3AHAJ5dZmSAFUXUGiYuqajMz7kx8I+SeyVCA bo4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=emmStX9qhOYOd+dblyHI68RIhRy+T5Rtfe1f4/LeDqU=; b=Wz++D2iDo1ILkBBq1vepfxg7+hYybwpqiVv3UFzrcWyEl/zz8XhNBetqSPRmuYwAvW o99Ngqp8uyKdsnZBvEQUdvRXvEckOP/JrjKgOr0WStqNoNBC7D1NJ1PLyTuYBLJEm8qP nA7vMc2vSkA9ndOjj8+U8RMzU1Lbly5G11tIPMHGyRxVEQYzHKEzpe+bWKUpEneZPyIE 05iZf36yNeFjObLefUg5HdG8D3sCusNxw49U6zRNr9YLj+7/9Bf7e7epf/WB5LNWE+Ek maU3SScezsjakioMWTI6gdg16i/xLPDhFfYNJ3pNILerNk46JinnCgQr8v/NiB5QzGp8 zUDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tx/SQRma"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bh14si2641566ejb.45.2021.01.14.07.25.17; Thu, 14 Jan 2021 07:25:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tx/SQRma"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729348AbhANPYR (ORCPT + 99 others); Thu, 14 Jan 2021 10:24:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729340AbhANPYQ (ORCPT ); Thu, 14 Jan 2021 10:24:16 -0500 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CEAAC0613D3 for ; Thu, 14 Jan 2021 07:23:36 -0800 (PST) Received: by mail-wr1-x434.google.com with SMTP id 91so6183540wrj.7 for ; Thu, 14 Jan 2021 07:23:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=emmStX9qhOYOd+dblyHI68RIhRy+T5Rtfe1f4/LeDqU=; b=tx/SQRmaSa7vWznaqpwEIsGMlMwxLts4yZ5xZOOW2lVDXeap7iWwpatlHL0aBdMQya YwxqYpz7MjszELUgKs5R1s8nz5EKnpCRFeOZI2hbNgaUHUzJI8WLeT8ffMgzvo8adAJr Fd1F0uyyoHpqeO3Zasr0n4VYlzCC5CE/XSn/4vRJZ0NhdjlKQYyQFjyza/7aemVOojPE 6A8eymDVqsNeO7ciCAFI7HTH4Qqha0ciywS/Ox0fTqi4Qbr/CaOeQRDHDWwVxnO/eURw h5ZLUSz06kPsAXlw3rPdZIoBlIWpbZf7bqRcV4K9J40OGRjcvTYWtg6Q93qv9iGeTyXh wvqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=emmStX9qhOYOd+dblyHI68RIhRy+T5Rtfe1f4/LeDqU=; b=hKMdxR58hBgSQQ5venR3rrOpXjP+JE5bNtHcJTM1e69mhdOz8VrlbtFHg50rsmGR36 54MkxVoCMrc2gx9zFZS4dfVaf4OdY1gmWJIg5HPKHxqsmVcVq9jG0B/ydTiPznbVe5rD 8R9Jr7ci0lnEcCXyZ65PyRdRvsln/+wWkh8mDsk/WDdCgJfRdAOEBB+WUnhKJAJci3Ok kqMLVqtTtClwQ5f3nx2SFmPYL87LQ4a8/So6ZFjGj0jmFRojMHitYrbN6zlOJw1KS1MI IcPsh6HSpT5JP5wOfjWKpcpFdJKfqPK3s8XHqVVJHN7ySPFlEejFQ13ISUhtZraydXOR az3Q== X-Gm-Message-State: AOAM5318rHhftlrwSfOX5LQoBaLaQTr6sFFJ8HmRsvMb+SEXMx8IB/MT +JuWXLow2kGz6UsjsroMuNin+A== X-Received: by 2002:adf:8b15:: with SMTP id n21mr8321366wra.426.1610637815098; Thu, 14 Jan 2021 07:23:35 -0800 (PST) Received: from dell.default ([91.110.221.178]) by smtp.gmail.com with ESMTPSA id e15sm10777713wrx.86.2021.01.14.07.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jan 2021 07:23:34 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Sangwon Jee , Dmitry Torokhov , Henrik Rydberg , linux-input@vger.kernel.org Subject: [PATCH 2/5] input: touchscreen: melfas_mip4: Mark a bunch of variables as __always_unused Date: Thu, 14 Jan 2021 15:23:20 +0000 Message-Id: <20210114152323.2382283-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210114152323.2382283-1-lee.jones@linaro.org> References: <20210114152323.2382283-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dmitry requested to keep these around for the purposes of documentation. Fixes the following W=1 kernel build warning(s): drivers/input/touchscreen/melfas_mip4.c: In function ‘mip4_report_touch’: drivers/input/touchscreen/melfas_mip4.c:474:5: warning: variable ‘size’ set but not used [-Wunused-but-set-variable] drivers/input/touchscreen/melfas_mip4.c:472:5: warning: variable ‘pressure_stage’ set but not used [-Wunused-but-set-variable] drivers/input/touchscreen/melfas_mip4.c:469:7: warning: variable ‘palm’ set but not used [-Wunused-but-set-variable] drivers/input/touchscreen/melfas_mip4.c:468:7: warning: variable ‘hover’ set but not used [-Wunused-but-set-variable] Cc: Sangwon Jee Cc: Dmitry Torokhov Cc: Henrik Rydberg Cc: linux-input@vger.kernel.org Signed-off-by: Lee Jones --- drivers/input/touchscreen/melfas_mip4.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/melfas_mip4.c b/drivers/input/touchscreen/melfas_mip4.c index c0050044a5a9e..225796a3f5460 100644 --- a/drivers/input/touchscreen/melfas_mip4.c +++ b/drivers/input/touchscreen/melfas_mip4.c @@ -465,13 +465,13 @@ static void mip4_report_keys(struct mip4_ts *ts, u8 *packet) static void mip4_report_touch(struct mip4_ts *ts, u8 *packet) { int id; - bool hover; - bool palm; + bool __always_unused hover; + bool __always_unused palm; bool state; u16 x, y; - u8 pressure_stage = 0; + u8 __always_unused pressure_stage = 0; u8 pressure; - u8 size; + u8 __always_unused size; u8 touch_major; u8 touch_minor; -- 2.25.1