From patchwork Thu Aug 10 09:59:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349188 Return-Path: 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 ; 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 ; 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 To: Dmitry Torokhov , Maxime Coquelin , Alexandre Torgue , 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 , Krzysztof Kozlowski 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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org '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 --- drivers/input/touchscreen/mms114.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); From patchwork Thu Aug 10 09:59:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349189 Return-Path: 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 34C74C001B0 for ; Thu, 10 Aug 2023 10:00:12 +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:References:In-Reply-To: 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: List-Owner; bh=gcoUwzXCeoW337cF7YvDP0vFoToU1m8Altly+OJBLVU=; b=ApftKXhLwcttrc nhb4yUrH54z5lTU7128jhhvPkv5uU44YXeuEvECw3yJVd7zHT15Ol+ce05HobH78nfd96TB78bq7a MNG0TwNGRoTbLGhth1g/g1i20h9XhJsM/Z8rIWNo0fexuBxtdAXsj+yfrh37wBu8iFK7jM8a+FyGm neDbdAizdRzlEZnrtbovuh5SvKVF3nz+1uRxVeVC4s5OGdPJwwqN2GWyNf3orwOX8tA7sUgJ2pEj5 CuJucXgK6m5nbb82ErpJNosjzvbgVt1/tEaFeK/I/Soyc+Eyl6E0zZ7HnO9BIc3MvHpM3sG0GysK/ A03XU1MiUQLnnIdEj1lw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qU2SK-0073Fj-0w; Thu, 10 Aug 2023 09:59:48 +0000 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qU2SG-0073Ao-0o for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2023 09:59:45 +0000 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-31771bb4869so704585f8f.0 for ; Thu, 10 Aug 2023 02:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691661580; x=1692266380; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LA6g1+NA1MHwgD0J5/0iacU9T/Zj+WYPU0o6GQh2M60=; b=O1zGd4xmWe411WBeHnJ8AnZONvqE7Z9u3MFhkDtUZCO307na8i8N5vr+98ztCj50oI 0nb9hFMmwsuYc3rCJdKobyxauVd6dyWfkigXmeHz29uTSAtFkGxphfnCEl11yEHgKRu0 AbiDxcqsma9jYw1oIHWwQ76uNZN/cdYNxI3JYj4u0YDMwhVnzHEFrdP7Cmdqoc6R9AYx 9Z9cGlrTILoqs7IE/361Y3mpszZ7qgJnMisepKC1a98bGVT97jNwSwGqEJpFtHGVuut+ DGwGz9UbXZZfJqeZjUmWWRTwaVt89t0o4NnN//b8QCToFu3aEeHskABnmhFGCuUpNcX9 4TUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691661580; x=1692266380; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LA6g1+NA1MHwgD0J5/0iacU9T/Zj+WYPU0o6GQh2M60=; b=SIBZ+4+ZKoqEwvM5TbMT1d36PmNqClP1ohnztBp/S0Pw/Xtzthl0ktwmRDUNt8cnlx N1zKb2dedrQfiCpKrD6GF7m1A8V8a7lnoPjIBYGnFEaTYBgUSujdyZlFu0RNl2vTns6M nTlrQXFnGnadJ/5R91AtyWOub88PCq/ngtmcQ+xvcFN3Szu54cYHv/lpE+nr3hnv/o0U xxhCZBH4rLGoc/2VmMfBrh4hSvH+aLuaJsadWVKOJYB16jBenQteG2+jxJkzcstjCtkL DeaWJWp4TwuKfjdjcYH++NVIBZ5M4TiEv3yAwIoF4ZLDl9otYCutxLSoDtRQGZ5cduX0 9QDg== X-Gm-Message-State: AOJu0YykKF8bo/hX/OampeMHuSYsxOZ+kwa5Y0esBgWUrTa4tCpv1OMs wUTGDcatMjY+fyDicIDFlmld76JiRh+pO3ECGs8klw== X-Google-Smtp-Source: AGHT+IEOo9PSJhciOwaN1TWXgpDhd54pTrrYRzGVnPGGiXjSds0yhXAKmUVfpiMdr2xl8lBRf7vCwA== X-Received: by 2002:a05:6000:1090:b0:317:58eb:1e33 with SMTP id y16-20020a056000109000b0031758eb1e33mr1507037wrw.8.1691661580528; Thu, 10 Aug 2023 02:59:40 -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.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 02:59:40 -0700 (PDT) From: Krzysztof Kozlowski To: Dmitry Torokhov , Maxime Coquelin , Alexandre Torgue , 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 , Krzysztof Kozlowski Subject: [PATCH 2/2] Input: stmpe-ts - mark OF related data as maybe unused Date: Thu, 10 Aug 2023 11:59:36 +0200 Message-Id: <20230810095936.123432-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810095936.123432-1-krzysztof.kozlowski@linaro.org> References: <20230810095936.123432-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230810_025944_292576_3C78E3BA X-CRM114-Status: GOOD ( 13.43 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When compile tested with W=1 on x86_64 with driver as built-in: stmpe-ts.c:371:34: error: unused variable 'stmpe_ts_ids' [-Werror,-Wunused-const-variable] Signed-off-by: Krzysztof Kozlowski --- drivers/input/touchscreen/stmpe-ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/input/touchscreen/stmpe-ts.c b/drivers/input/touchscreen/stmpe-ts.c index 25c45c3a3561..a2032189fc25 100644 --- a/drivers/input/touchscreen/stmpe-ts.c +++ b/drivers/input/touchscreen/stmpe-ts.c @@ -368,7 +368,7 @@ static struct platform_driver stmpe_ts_driver = { }; module_platform_driver(stmpe_ts_driver); -static const struct of_device_id stmpe_ts_ids[] = { +static const struct of_device_id stmpe_ts_ids[] __maybe_unused = { { .compatible = "st,stmpe-ts", }, { }, };