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: 662030 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 776FBC6FD19 for ; Fri, 10 Mar 2023 21:47:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232195AbjCJVr0 (ORCPT ); Fri, 10 Mar 2023 16:47:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232041AbjCJVrB (ORCPT ); Fri, 10 Mar 2023 16:47:01 -0500 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 773591314FA for ; Fri, 10 Mar 2023 13:44:59 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id ay14so25995270edb.11 for ; Fri, 10 Mar 2023 13:44:59 -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=t58B9v0YH4+zU+Yv19DmJ2O9RNQ9nOOhKaXZn/ifinYUNFPaDREISxNMzq4KhJtGvO NN/NmpBUmZE9OdGKuOG9qRoh4s60/4I+0y2RcdROE+G4Cww8MhJ/CrSHyrfaoGe7fYOO nvn7XkGBWlDTkVJTwpb1KtfW8o4RcgNgGw73mVm0Yt+2ecXA9vJE9CUW+mC3mo0+SdOu 6Wug3MpyyVLKQW4hatvolmVTeIsVpVal28YZaCgk05wy63UoUKI+2Ek0kVdgpKzw0cP6 W3Jns5wFOJ6rhJ/nurkjb05mVvylHdEls+ipGv0nfk4FSKF462Xq3Tsztok8lVQDD2Gu +Bdg== X-Gm-Message-State: AO0yUKUAA4AoB+NK3UJrCsxA/HuAY9456vAbg1cXfctCdcv+HkB6k1Lo K1UWle/HUS9d/PsucRbINQkPBg== 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-scsi@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: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: 662029 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 6836DC6FD1E for ; Fri, 10 Mar 2023 21:47:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232218AbjCJVrw (ORCPT ); Fri, 10 Mar 2023 16:47:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231675AbjCJVrP (ORCPT ); Fri, 10 Mar 2023 16:47:15 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 05526119F9A for ; Fri, 10 Mar 2023 13:45:06 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id ay14so25995645edb.11 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=JiwJc+rx6oISNE+KLeV13JT+9Em0++iTmTLxEceXlVvAtOO1ElgYlyin9xnOPlVM69 +SPn0lw6SjIGVYIHUjkUyFAu9v1AG7rCeK9rScAiIdxYjQ12+ATxbbzGnqo9JTG4/0Nb eetW0VX0a2XsA6jQP+Kjv1ppI1xn2RVBVm6XGIlu26d/fjC9m4yKGNnRr2ZbWx6krSZw atoJ/Ja+L+IwFqQiM2TtPHCkTiVkFmZInZwC8A9n6CD7o04GiOQvX+iOnaVM6sryb289 IzcSXS6WjBTepFbGXjaMG+zYIiXwS+XGoPHPzz5ItlADv2Ph3Y/CyyR84QaAvj6rhxRS Befg== X-Gm-Message-State: AO0yUKWEQ88YxPCj8xNnZPJMH+M0qyo7nWMkaAX8QeS7hEKrEH07gCQ5 1ORw74+GA0kk4Ah4dOmT10w9WA== 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-scsi@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);