Message ID | 20230810095936.123432-1-krzysztof.kozlowski@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88976C001B0 for <linux-arm-kernel@archiver.kernel.org>; Thu, 10 Aug 2023 10:00:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/dX4Ci6LyvZ7yj0HhEXbgP6rRlHhgJxS2YfctcAjRTY=; b=Qq+PI17ka69+Ty jPKuCJh7qtJEZwyTgSRVE8ir4gDqjmFLwTz/c1D0dDawXMfRYdMDhuNIwDNXbWLoZQbEaEvgY8GBT mHTCbgraXd3Nn9Pxq+y6vOvipUESCKh+jxfrybCpBaAyBxZiLgMWGUFs8HpbhSMKR0v3DMVIqQFav HmEyLEowE3cTQHNo/b9YvOUNZ0cuy81QvCQ7daFbKuqn5CME6h1RhL1jPGxdVgFklTYTEEIOostPk QIBUuHrieDw9Hp4FVFbmqmOTNMffZ1z3ta4CD4bEQdKeEOKXh701oAdBTs9zzl8GuiKOp3cf4e1SZ hUcOeIWh6hQ0r3l1SCIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU2SG-0073D8-1U; Thu, 10 Aug 2023 09:59:44 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU2SD-0073AA-0G for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2023 09:59:42 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fe5c0e587eso6634625e9.0 for <linux-arm-kernel@lists.infradead.org>; Thu, 10 Aug 2023 02:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661579; x=1692266379; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3Qov7/EIECuN7YtcszuKxgzKAg/7N7RK250nQPWPETE=; b=v30CTiX2qKSiN2j2kOUXUCQ/qjZOMt4Q+Owm3rESRLeuhidDmOvCrOs1B751U7IBfS zndSh6XEzMhiKeb+ubNbtz+e+V72tx4UaERrTzDLqmbUcQYMs/Az6xez653LBbsHef++ T9dy9CN7KcU+b943r8yFryvjBu0JP7Mk4ItyR7P7x3+Q5qJFaJ51j4Q2b/y97aIH/w6P 1RV2EzPllNQXNlOmHPs6wh3Qhc6uM/GvDWF1x8cfo5KWrurWHjgFCklcDtSh+vy45EqG /52U0A0GZVABjs+kvw7xVTeo0AFbVpIu6lKE/5Y7B+42GaFluEopx4cLAWbAg1eFDTnp NyYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661579; x=1692266379; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3Qov7/EIECuN7YtcszuKxgzKAg/7N7RK250nQPWPETE=; b=JOAaeDEkgRUXBVaPhC4vJrYEBwLs3UsLX67FtiUe9bHL1dRGy1Rp7x+h8c/0efIEXj v07lb+4qb6fq/ykiE+KltUOfs1lXl/V4UB3LdRyTlEgOYcpfA/5x1T9wb6oxaWi1yy1N qGstW4YTZRbS4cha/idKHRyu0RP+Mv86Ua3QtBBeWYvj9oY1+8HyD7EOV5Pxk+mYM4MS me0XAM3guZmj6aucm/jkADpjqsSs1ON9AX+ZARjkTUccVD0BYdwzSHLyYerydzv/zT+L nMcABU30s4qN+isDuHR91b+XJMEKQJf8kPk0eA6lCYZ1Efxx4yij6eVc6jwDBTSQiL2l rp0A== X-Gm-Message-State: AOJu0YwWmkiREqVbLia2zY0EL+SstwqsmN7q2FjY8jVWP5LW8wp1TI6t 6Pufw44tkKJPKzd60OCxRhaUaw== X-Google-Smtp-Source: AGHT+IHW36O9ukQNOr4QWHcwll1B7aloOQhK9sSqv/YA8EWyZmzq6BHWsNTyVSKuU/1PJGhLJb1ZvA== X-Received: by 2002:a5d:66c6:0:b0:317:9537:d741 with SMTP id k6-20020a5d66c6000000b003179537d741mr1614416wrw.54.1691661579124; Thu, 10 Aug 2023 02:59:39 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id a2-20020a5d4d42000000b00317ca89f6c5sm1623182wru.107.2023.08.10.02.59.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:59:38 -0700 (PDT) From: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> To: Dmitry Torokhov <dmitry.torokhov@gmail.com>, Maxime Coquelin <mcoquelin.stm32@gmail.com>, Alexandre Torgue <alexandre.torgue@foss.st.com>, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Cc: Andi Shyti <andi.shyti@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Subject: [PATCH 1/2] Input: mms114 - fix Wvoid-pointer-to-enum-cast warning Date: Thu, 10 Aug 2023 11:59:35 +0200 Message-Id: <20230810095936.123432-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230810_025941_119542_EA73C6BB X-CRM114-Status: GOOD ( 11.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
[1/2] Input: mms114 - fix Wvoid-pointer-to-enum-cast warning
|
expand
|
diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c index af233b6a16d9..d9beb15a3676 100644 --- a/drivers/input/touchscreen/mms114.c +++ b/drivers/input/touchscreen/mms114.c @@ -504,7 +504,7 @@ static int mms114_probe(struct i2c_client *client) if (!match_data) return -EINVAL; - data->type = (enum mms_type)match_data; + data->type = (uintptr_t)match_data; data->num_keycodes = device_property_count_u32(&client->dev, "linux,keycodes");
'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: drivers/input/touchscreen/mms114.c:507:15: error: cast to smaller integer type 'enum mms_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- drivers/input/touchscreen/mms114.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)