From patchwork Thu Jan 14 15:23:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362860 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp598083jap; Thu, 14 Jan 2021 07:25:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJy3HB0sTFAPJeE+JlJ0Gk+l+k2PTQu70FY8d3CEFQu/PQPUY7SSPrx3f+mcXAI1I5q2U2Nk X-Received: by 2002:a17:906:edd1:: with SMTP id sb17mr5546089ejb.118.1610637933751; Thu, 14 Jan 2021 07:25:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610637933; cv=none; d=google.com; s=arc-20160816; b=LwgZi111WXfqan/6euGOIPUTyxNvxsS/6YsBCIDsgSgJnZS/t8hVpzSwzfulN/LPxg rvrd4Ak7MAACJf0OxYxgwQU4NrNnd75wrXEM14zfihs0yHDe+RWOm5QRnEeO8OJg8IM7 jMWozjeMBhJ9q90oh8NgUCuwgyTfzompxMycqEDH53RZtiGEmCn26bQ9wHScb/4hE9AE dMglgKngXJnYieRHUde+NwU+N+nqQy27bCQS75VlZAPMNCM24tSZbrdEWYC6/6uZFLhn djwAnK8cZKnWuTwzoAM/39FfOEfywdwYKkY7AO4q8PzCoNKLESNaSdjaSlsd4apCbGd8 pONQ== 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=LW00RsyP4QdRzkq4IBB4MVxbfHUU/YqRYnLEdh7oxE5Vv0M94mRamd5A8ETb2uKA1a aclZpLZfzSyPJaYmbZQipxnuMmu7/v/Xq4hdW0gfm08IvvPB6qVQIJc+pJSYRiaf1L3B /EIX2pySrsRFPrOTGsacWRctDY5pKKd8TjMqavA0lVgYm4BQtaAYETpWm++gzODfzp7M XD/b62DuT9n2pSN4t6/Vj87thmTg4y7v0ZgCbbskB44GsIeD0GnoACpYyKEbSDSV67lE ejCzpfp/dupN2zjLrvD34W7PDq9KrtjkpC5HAKBy2DP2DFeYi12MMWbPut3d3ghkF4fq TzzA== 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-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-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 a5si2449825ejr.334.2021.01.14.07.25.33; Thu, 14 Jan 2021 07:25:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-input-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-input-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-input-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 S1728441AbhANPYg (ORCPT + 1 other); Thu, 14 Jan 2021 10:24:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726269AbhANPYf (ORCPT ); Thu, 14 Jan 2021 10:24:35 -0500 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CF1FC0613D6 for ; Thu, 14 Jan 2021 07:23:36 -0800 (PST) Received: by mail-wr1-x42d.google.com with SMTP id y17so6158561wrr.10 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=C2ArxaEANZb3i8aeBRubKBU+XsLZKnV/sruktU2o4LutnsyV+aY7eN8Q2mvZrgIXKO EIpYdZqxHVO26kY6LFXOrdBX9aDhpPV8bcNofk0Fokv2aG95oXd8NuGjYySmDQOlfhgn iu3ir/QTHERexBAxTNanAbfCvfu4vPmy2PoWBQBs/HappFv0cLz66q85VycVpfG7XwPE JKFrCOYY+o+wWdVFooSZKRjKtj2Zj7HQbzyAzfbjP0S/wN0WhmOKIWOWPPaqpzefaLpP WdKU33a/uYlGsIfG0kOesxb5K/fOCRJR7b+NM9aN887kfY0WlSUXQCA4qexthWUTAW1z j1LA== X-Gm-Message-State: AOAM530p5s58T66pkGYkXygxJnoiIKRs3DSdk9P/KoYd1tBcanGAktXv q03VgKItC3iaQOZKCXanj5wG4w== 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 Precedence: bulk List-ID: X-Mailing-List: linux-input@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(-) -- 2.25.1 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;