From patchwork Fri Mar 10 21:44:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170143 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E156FC74A4B for ; Fri, 10 Mar 2023 21:47:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232106AbjCJVr2 (ORCPT ); Fri, 10 Mar 2023 16:47:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232184AbjCJVrD (ORCPT ); Fri, 10 Mar 2023 16:47:03 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 20CA914860E for ; Fri, 10 Mar 2023 13:45:00 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id j11so26094005edq.4 for ; Fri, 10 Mar 2023 13:45:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484679; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=ZDeD1c8jiZFvcLWzJgOEOd/4N4UZiwFHXqIKU182kOk=; b=JyG+ACdLOcfxTA50XxnxCh7wM4cKF89tKtqh8zVaGOWFSYzYQNvJ7J2uZlfRT8aZ+G R71uFFNjMuMMD2tdQUtH1CNlwQzkGWCOCUc48IBscZi/1PK9Psy4n23tdGK+z/UzhVP4 rBdkNufoyjp+DISa6DHjPPU4BAS2Ku9Us+TPqkPS26TbUVrRh696GRxYG+k1kh8I4TE9 Hc7TafaabsQMK7scV2MYcOxM2VGoOxuNlbyCj0D+ENnIMdBeFF9rbeqUWVRJmn33fYpq bqAcRt+q6tzQ7XD8U3RnOwT2N1ukDFJ9eOQk/gNvRfExvpFW+hmDS6rR3qNH9flTSSZB Uteg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484679; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZDeD1c8jiZFvcLWzJgOEOd/4N4UZiwFHXqIKU182kOk=; b=lz3VOjOZur6+dRpaZJejgmVTAIdDaCz7Mn1yspVmMpDiAyppjOWizDa/U8WQOw6dpf VAYBKDnrIxoKBoo4KfKWvE465mHN4c7u2Swfhm2Pm06Qv05v3U8b30jXjHmyERURzJWk DfgEdxPSwnYwgttD5NSvb1mxXrkYtyZ8QZOrQ8rLMZqUUZLrQxrSz65vtGARND5Zqfz/ uFLbSOkprngvelT4qAcZRPRT77baB3ccXDwn63KKMu12YIIbbuvDZA60tycW0nf6/22S 1PJZrwv+gEAcOgy4MuE8gmsgCruZLJ8fAjuBQJ1EuYeC6Psv7ZEvvqws4wTtl44Cck7U KvdA== X-Gm-Message-State: AO0yUKU93wU1Kwt/KHH6tdAbALeQAEodrnbXKPIZyGOH/llq9ypyvjUS gJBXadRQdKDvEmz09YGOneBMAw== X-Google-Smtp-Source: AK7set+M49wnt3MxSeCs0h1xmBgIiP4OJipKtz39vYdOVUEOao/bMt7H1KnDHnhgyi1uB06shGL3JQ== X-Received: by 2002:a17:906:539a:b0:88d:f759:15ae with SMTP id g26-20020a170906539a00b0088df75915aemr26028674ejo.42.1678484679060; Fri, 10 Mar 2023 13:44:39 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id k11-20020a17090627cb00b008cce6c5da29sm334571ejc.70.2023.03.10.13.44.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:44:38 -0800 (PST) From: Krzysztof Kozlowski To: Alim Akhtar , "James E.J. Bottomley" , "Martin K. Petersen" , Krzysztof Kozlowski , Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 1/3] ufs: qcom: add __maybe_unused to OF ID table Date: Fri, 10 Mar 2023 22:44:33 +0100 Message-Id: <20230310214435.275127-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The driver can be built on ACPI and its .of_match_table uses of_match_ptr(), thus annotate the actual table as maybe unused. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Konrad Dybcio --- drivers/ufs/host/ufs-qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/host/ufs-qcom.c b/drivers/ufs/host/ufs-qcom.c index a02cd866e2f8..82d02e7f3b4f 100644 --- a/drivers/ufs/host/ufs-qcom.c +++ b/drivers/ufs/host/ufs-qcom.c @@ -1693,7 +1693,7 @@ static int ufs_qcom_remove(struct platform_device *pdev) return 0; } -static const struct of_device_id ufs_qcom_of_match[] = { +static const struct of_device_id ufs_qcom_of_match[] __maybe_unused = { { .compatible = "qcom,ufshc"}, {}, }; From patchwork Fri Mar 10 21:44:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170144 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 94C4DC6FA99 for ; Fri, 10 Mar 2023 21:47:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232137AbjCJVr3 (ORCPT ); Fri, 10 Mar 2023 16:47:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232136AbjCJVrD (ORCPT ); Fri, 10 Mar 2023 16:47:03 -0500 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 22895148631 for ; Fri, 10 Mar 2023 13:45:01 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id k10so25991966edk.13 for ; Fri, 10 Mar 2023 13:45:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=Y/tNj9gS25pI9VyRe21DRJsXFmXi538O3sDmJsaIhbM=; b=mHe+pKeIu1CXbogKykneE+Fc+HhQ3E2/eoguPMQut6YTvOAz1EhASWFdf/7bfL247/ z7QRjGBRyKglxyCfaEAwl3mzkZlUOiSlzskD/okpjWOrGvwcDsyatzbEXNKNZfDvRkQ6 WzGjeE5QzI7y3yg9pMftyw6nAGAPsLUZA27z00CtMF+/+cCRmc4mBJxLiG8HuSgOupKf QmZa2V1EY12i0B60PKfX2Fivzd9kV780zd60tYf7MMADlormeIe1BOWMbUUD2E7XNBoj f8dksX5HAgHm2n8OJQzR7k61dlBN+uEAbUHOq+A3yL+uNAy0SWLHBy7NXjJLWZKBmi0S fTww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484680; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y/tNj9gS25pI9VyRe21DRJsXFmXi538O3sDmJsaIhbM=; b=VZ05XC8uoBEvQ+xUyyYv+9vHLatCTeHZzR8C2ZtwNalyy5PGZTsqt/ZvQuo0mR9sd6 1Dj5uWraGbVqZX9cR2LdhMEkqr436RDBDCcQEvNxDnw3WG6jetCH8Abu6PV9T15iIz8u 1XlVyiRe2f8d235C++K6UdElXbFQJSGHL53x5jAmYEgmx9QCMK0RQpdVCzDXBQrxawa1 98TlOFfVyM7jTAe/rS46QmDIZ6kDjN8JQ16PIpshkPovH/b8xb7cb8/BP97ekt+lkFU4 SyYIjHTyuhb9Y2HsvmHWcwokAdpN35PD5oQQfC1w7MdO2erN5rtKBfL7Y0D3nucqVDaL MGeA== X-Gm-Message-State: AO0yUKXsA6wnkdhN6p5iSV7ZBdE8lz871Ju6PX9iyeI5xzSC0SD07fVr nAOwyYi4v29Vck8yIhZke+4NMRxD7ok8jm0S+Qs= X-Google-Smtp-Source: AK7set8DLp9mJ4FR8mx3RvxrKuccd1KMSGK8/5PRNVTAH2zIEOB1tnCrI4pH8lb5tGq2IO0YUqWmjA== X-Received: by 2002:a17:907:6e0f:b0:907:672b:736a with SMTP id sd15-20020a1709076e0f00b00907672b736amr33166740ejc.31.1678484680278; Fri, 10 Mar 2023 13:44:40 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id k11-20020a17090627cb00b008cce6c5da29sm334571ejc.70.2023.03.10.13.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:44:39 -0800 (PST) From: Krzysztof Kozlowski To: Alim Akhtar , "James E.J. Bottomley" , "Martin K. Petersen" , Krzysztof Kozlowski , Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 2/3] ufs: exynos: drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:44:34 +0100 Message-Id: <20230310214435.275127-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214435.275127-1-krzysztof.kozlowski@linaro.org> References: <20230310214435.275127-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it is not relevant here). drivers/ufs/host/ufs-exynos.c:1738:34: error: ‘exynos_ufs_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Alim Akhtar --- drivers/ufs/host/ufs-exynos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/host/ufs-exynos.c b/drivers/ufs/host/ufs-exynos.c index 7c985fc38db1..0bf5390739e1 100644 --- a/drivers/ufs/host/ufs-exynos.c +++ b/drivers/ufs/host/ufs-exynos.c @@ -1761,7 +1761,7 @@ static struct platform_driver exynos_ufs_pltform = { .driver = { .name = "exynos-ufshc", .pm = &exynos_ufs_pm_ops, - .of_match_table = of_match_ptr(exynos_ufs_of_match), + .of_match_table = exynos_ufs_of_match, }, }; module_platform_driver(exynos_ufs_pltform); From patchwork Fri Mar 10 21:44:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170145 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CA22BC6FA99 for ; Fri, 10 Mar 2023 21:47:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232213AbjCJVrv (ORCPT ); Fri, 10 Mar 2023 16:47:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231393AbjCJVrO (ORCPT ); Fri, 10 Mar 2023 16:47:14 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE6FB10113B for ; Fri, 10 Mar 2023 13:45:05 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id s11so26077971edy.8 for ; Fri, 10 Mar 2023 13:45:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484682; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=W5vWZTV9oKc3EJwBR0e/KKmozkU4BeBcYOpS6H8ectc=; b=NAQrYZ35Ne2cABlc5MmOqOD/SB3QHkb02yOEWxFPyC3sK189AgHM46qEp5JvPOju2E GX8ijQ3SN/66KkGiE6b8t9jzwP73qgLXuVg+3ZrNrDQH9uilrOgYYND8PfuNoVZyzxC7 rjYwqdHj0dtTbZZcsacR1cvwqYOnbzRJYspOKHK0jaPtutp/CDvHhCGwQLUOmMX3O9Oe T/3A9zdLt9D8D6by6aX4z+yXhv9vjNg7Tl2YM2VZRTY5HypDbU2c1Nkd/uI5T86s0GWJ t7hfsRhuKJ4yM797kW8nv/tITpUPwAhKEGxm5Gz5kjKmTvhywvUl8kXuUZzbBzjBSCgF LiZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484682; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W5vWZTV9oKc3EJwBR0e/KKmozkU4BeBcYOpS6H8ectc=; b=FZ+s1r0G4trYIwAuQeg80oDmtFqn2YCA0vFkOo+fMNjwt0Hj7wxaKYVYFQet+QnUzN yFS1GLIGrEZDIJ50SW3cxu1EqhU6Zp5rLRko37720nsuS7YA0m5YFqU3UIKww7Xn73cn W7AuNtUzIRpNSVce/uHjdz1rcxfU4yhJhVVmq329wtjk2KFFFxw4pKHDzZvvZIHukMZF T1PMxpEJ/yh66org1ortCp8etlCC9AwovBB6yQRg6GenMPN+YBT4eosCrBGHLQRgaRZX wiyt2k2AxIQSMREVLnW6rUEelLb+jH4iSHytoglQVbSHOo/7VbxlOR59iPq9Qe+Ra35j JRSQ== X-Gm-Message-State: AO0yUKV0Xk0AOjwiCD9Pr90XkxOSaX7sXA7lTWJr+jkMpy0GDZ2nromd WnSt6vNMRMPJpEz9kuV8S1htlA== X-Google-Smtp-Source: AK7set9+Xj7QQpyndl7V7aMO1Dm5cdQzT5Tf0nPQZ+YewNfu8NVyhU1zkK9fNjuymu2DajZjPfDbKQ== X-Received: by 2002:a17:907:70e:b0:878:955e:b4a4 with SMTP id xb14-20020a170907070e00b00878955eb4a4mr34046804ejb.33.1678484682424; Fri, 10 Mar 2023 13:44:42 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id k11-20020a17090627cb00b008cce6c5da29sm334571ejc.70.2023.03.10.13.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:44:42 -0800 (PST) From: Krzysztof Kozlowski To: Alim Akhtar , "James E.J. Bottomley" , "Martin K. Petersen" , Krzysztof Kozlowski , Manivannan Sadhasivam , Andy Gross , Bjorn Andersson , Konrad Dybcio , linux-scsi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 3/3] ufs: hisi: drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:44:35 +0100 Message-Id: <20230310214435.275127-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214435.275127-1-krzysztof.kozlowski@linaro.org> References: <20230310214435.275127-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it is not relevant here). drivers/ufs/host/ufs-hisi.c:561:34: error: ‘ufs_hisi_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/ufs/host/ufs-hisi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ufs/host/ufs-hisi.c b/drivers/ufs/host/ufs-hisi.c index 2eed13bc82ca..4c423eba8aa9 100644 --- a/drivers/ufs/host/ufs-hisi.c +++ b/drivers/ufs/host/ufs-hisi.c @@ -597,7 +597,7 @@ static struct platform_driver ufs_hisi_pltform = { .driver = { .name = "ufshcd-hisi", .pm = &ufs_hisi_pm_ops, - .of_match_table = of_match_ptr(ufs_hisi_of_match), + .of_match_table = ufs_hisi_of_match, }, }; module_platform_driver(ufs_hisi_pltform);