From patchwork Fri Nov 20 16:22:58 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921307 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 24F95C56201 for ; Fri, 20 Nov 2020 16:23:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CD3EA2245F for ; Fri, 20 Nov 2020 16:23:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="OPC/Fo8N" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729488AbgKTQXP (ORCPT ); Fri, 20 Nov 2020 11:23:15 -0500 Received: from mail.kernel.org ([198.145.29.99]:41466 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729479AbgKTQXO (ORCPT ); Fri, 20 Nov 2020 11:23:14 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A890A2225B; Fri, 20 Nov 2020 16:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889394; bh=GD/4TnOvthPn81TQPxKjq+gxB6xPNHIl91TStLL37aU=; h=From:To:Cc:Subject:Date:From; b=OPC/Fo8NlZ6n6dQYPkb9WFyGkxKKmUHVGLLeYtth3dz5rxZsnRO4rQEBD9pJj0Skv E4KDFiLfOBhQB3bW4+63ZmM2vPHrEh5E1wgwaV1RS3Hq6AyJ2YLwm8vV3NGU5jXKmv Gt7HQ8xzwVvW/gBqJbZ7rnBK2KVSJjozb8uSHH+g= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Dan Williams , Vinod Koul , dmaengine@vger.kernel.org Cc: Krzysztof Kozlowski , Zubair Lutfullah Kakakhel , Paul Cercueil Subject: [PATCH 1/6] dmaengine: jz4780: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:22:58 +0100 Message-Id: <20201120162303.482126-1-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@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). This fixes compile warning (!CONFIG_OF on x86_64): drivers/dma/dma-jz4780.c:1031:34: warning: ‘jz4780_dma_dt_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/dma/dma-jz4780.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dma-jz4780.c b/drivers/dma/dma-jz4780.c index a608efaa435f..612d353648cf 100644 --- a/drivers/dma/dma-jz4780.c +++ b/drivers/dma/dma-jz4780.c @@ -1044,7 +1044,7 @@ static struct platform_driver jz4780_dma_driver = { .remove = jz4780_dma_remove, .driver = { .name = "jz4780-dma", - .of_match_table = of_match_ptr(jz4780_dma_dt_match), + .of_match_table = jz4780_dma_dt_match, }, }; From patchwork Fri Nov 20 16:22:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921309 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5CA28C56201 for ; Fri, 20 Nov 2020 16:23:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F2A622225B for ; Fri, 20 Nov 2020 16:23:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="iYQRJ7n6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729479AbgKTQXS (ORCPT ); Fri, 20 Nov 2020 11:23:18 -0500 Received: from mail.kernel.org ([198.145.29.99]:41500 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729610AbgKTQXQ (ORCPT ); Fri, 20 Nov 2020 11:23:16 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D6FBC238E6; Fri, 20 Nov 2020 16:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889396; bh=Nr2UVcXq814pz5C9y4SEPaezF6RLs/f3ieQtap18svU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iYQRJ7n63pEHrYrbiXyPz8lsBLHQ8AhPVl0hNhq9BoLPfBImEtTQXgIeJy8qjMYKH 0jt5VjbeKTctY5wox9MRs61kcgZ74x7Un/BAUMpX9xRlSWsHHB2g+fT1Nu7Bi+L75L OVbHikRkq0yrQbd2BftlLst1fVTMSgaA+cRE67dw= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Dan Williams , Vinod Koul , dmaengine@vger.kernel.org Cc: Krzysztof Kozlowski , Eugeniy Paltsev Subject: [PATCH 2/6] dmaengine: dw-axi-dmac: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:22:59 +0100 Message-Id: <20201120162303.482126-2-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162303.482126-1-krzk@kernel.org> References: <20201120162303.482126-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@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). This fixes compile warning (!CONFIG_OF on x86_64): drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c:984:34: warning: ‘dw_dma_of_id_table’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c index 14c1ac26f866..e164f3295f5d 100644 --- a/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c +++ b/drivers/dma/dw-axi-dmac/dw-axi-dmac-platform.c @@ -992,7 +992,7 @@ static struct platform_driver dw_driver = { .remove = dw_remove, .driver = { .name = KBUILD_MODNAME, - .of_match_table = of_match_ptr(dw_dma_of_id_table), + .of_match_table = dw_dma_of_id_table, .pm = &dw_axi_dma_pm_ops, }, }; From patchwork Fri Nov 20 16:23:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921317 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1D69C64EBC for ; Fri, 20 Nov 2020 16:23:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5C8FF238E6 for ; Fri, 20 Nov 2020 16:23:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="o0H6rNWp" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729694AbgKTQXl (ORCPT ); Fri, 20 Nov 2020 11:23:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:41542 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729660AbgKTQXS (ORCPT ); Fri, 20 Nov 2020 11:23:18 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D8B372240B; Fri, 20 Nov 2020 16:23:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889398; bh=rmaDY9nYXHbucnp1zbru/h6Fjyr4l11wnGIr71foVYA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o0H6rNWpJo7LGr8vsmCu46FAHcCAYg2XoLjiauh9GqqlERlHyAa9w47c9nqWGw1Zy llJmRHJAAB4oN94hKv2J6K13GT50n0X/K7KpdVCghqF7qhk2rCZqFoIeH4UEB+OXV2 KitU28DOev8rDPUJJ4O6MpqFhP10YQ9P7/SbM6/Y= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Dan Williams , Vinod Koul , dmaengine@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/6] dmaengine: mv_xor: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:23:00 +0100 Message-Id: <20201120162303.482126-3-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162303.482126-1-krzk@kernel.org> References: <20201120162303.482126-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@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). This fixes compile warning (!CONFIG_OF on x86_64): drivers/dma/mv_xor.c:1281:34: warning: ‘mv_xor_dt_ids’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/dma/mv_xor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c index 00cd1335eeba..23b232b57518 100644 --- a/drivers/dma/mv_xor.c +++ b/drivers/dma/mv_xor.c @@ -1455,7 +1455,7 @@ static struct platform_driver mv_xor_driver = { .resume = mv_xor_resume, .driver = { .name = MV_XOR_NAME, - .of_match_table = of_match_ptr(mv_xor_dt_ids), + .of_match_table = mv_xor_dt_ids, }, }; From patchwork Fri Nov 20 16:23:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921315 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 16BEBC64E7C for ; Fri, 20 Nov 2020 16:23:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BCD7622470 for ; Fri, 20 Nov 2020 16:23:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="E9Ia9noN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729509AbgKTQXU (ORCPT ); Fri, 20 Nov 2020 11:23:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:41646 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729961AbgKTQXU (ORCPT ); Fri, 20 Nov 2020 11:23:20 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B04382245F; Fri, 20 Nov 2020 16:23:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889400; bh=Y0apPeHoItDbAMBFQS1AgZJTxllIuZ8ISE2pZIsLLGk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E9Ia9noNivCNv/5TDEcxKRv3mULcwe5bpbrbaSAS/OSM98o06pq1OF8sq3nZXL8c3 kn1q+g3lfHkfDxvyp2QDg4RK/1O13oW8zbapbaqOaJkcx4DZtxWvUqgNwXzEvlSyne UwwpYuXMXUzhS9DI9tvfQtefVoEnJA8bF4xqntxw= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Dan Williams , Vinod Koul , dmaengine@vger.kernel.org Cc: Krzysztof Kozlowski , Green Wan Subject: [PATCH 4/6] dmaengine: sf: drop of_match_ptr from of_device_id table Date: Fri, 20 Nov 2020 17:23:01 +0100 Message-Id: <20201120162303.482126-4-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162303.482126-1-krzk@kernel.org> References: <20201120162303.482126-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@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). This fixes compile warning (!CONFIG_OF on x86_64): drivers/dma/sf-pdma/sf-pdma.c:576:34: warning: ‘sf_pdma_dt_ids’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/dma/sf-pdma/sf-pdma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/sf-pdma/sf-pdma.c b/drivers/dma/sf-pdma/sf-pdma.c index 528deb5d9f31..d5b73a765eb5 100644 --- a/drivers/dma/sf-pdma/sf-pdma.c +++ b/drivers/dma/sf-pdma/sf-pdma.c @@ -584,7 +584,7 @@ static struct platform_driver sf_pdma_driver = { .remove = sf_pdma_remove, .driver = { .name = "sf-pdma", - .of_match_table = of_match_ptr(sf_pdma_dt_ids), + .of_match_table = sf_pdma_dt_ids, }, }; From patchwork Fri Nov 20 16:23:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921313 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AF917C2D0E4 for ; Fri, 20 Nov 2020 16:23:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4BC4D22269 for ; Fri, 20 Nov 2020 16:23:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="oQk4n6t+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730009AbgKTQXY (ORCPT ); Fri, 20 Nov 2020 11:23:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:41684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729999AbgKTQXW (ORCPT ); Fri, 20 Nov 2020 11:23:22 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A90952225B; Fri, 20 Nov 2020 16:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889402; bh=b4u/t0Hst9rVcGF2Gll2KrBiXj/Rs/Ms1ZSr/qfr4Qs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oQk4n6t+bHcdcPjjQtvOOCwdEHG56qCd3TPvolN5j9amfJOg0ane3TwUS7DtOF8nV 9QJlK92mQxfXy1zpdd422CVQk/staQv8VJ+96ZENEy8keCi/5daF3c5D/L0LDy8ltO cv4KzWulDnaxZ2kpCFOPy4xGfMfHr9vS5QktGsFE= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Dan Williams , Vinod Koul , dmaengine@vger.kernel.org Cc: Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/6] dmaengine: stm32: mark of_device_id table as maybe unused Date: Fri, 20 Nov 2020 17:23:02 +0100 Message-Id: <20201120162303.482126-5-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162303.482126-1-krzk@kernel.org> References: <20201120162303.482126-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org The driver uses a second of_device_id table in the probe() function by passing it to of_match_node(). This code will be a no-op for compile testing (!CONFIG_OF on x86_64): drivers/dma/stm32-dmamux.c:171:34: warning: ‘stm32_stm32dma_master_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/dma/stm32-dmamux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/stm32-dmamux.c b/drivers/dma/stm32-dmamux.c index a10ccd964376..ef0d0555103d 100644 --- a/drivers/dma/stm32-dmamux.c +++ b/drivers/dma/stm32-dmamux.c @@ -168,7 +168,7 @@ static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec, return ERR_PTR(ret); } -static const struct of_device_id stm32_stm32dma_master_match[] = { +static const struct of_device_id stm32_stm32dma_master_match[] __maybe_unused = { { .compatible = "st,stm32-dma", }, {}, }; From patchwork Fri Nov 20 16:23:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921311 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 62FE2C56201 for ; Fri, 20 Nov 2020 16:23:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1521F2225B for ; Fri, 20 Nov 2020 16:23:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="bcQd5vpH" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730032AbgKTQXa (ORCPT ); Fri, 20 Nov 2020 11:23:30 -0500 Received: from mail.kernel.org ([198.145.29.99]:41772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729999AbgKTQX1 (ORCPT ); Fri, 20 Nov 2020 11:23:27 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EF0252245F; Fri, 20 Nov 2020 16:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889406; bh=TW9QAW2bJjU901D/24EX/NZE33VO0XZUivHwSIXQ8QQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bcQd5vpH+TDAt1JkLCb6v2m7neiC3aKeXnvHVr4qahN2C2bvsakCH27mqsDJYYroA vLTTOXMLaH3m58VfzJu8nfLdyIgpSwVVCT5T7tLv48UY5MDuALgDVm9w4Dg0ADBPfK By2b/8jR4sx+fvtNr98fcmssiENpxxTlx1IuPxQc= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Dan Williams , Vinod Koul , dmaengine@vger.kernel.org Cc: Krzysztof Kozlowski , chenqiwu , Peter Ujfalusi Subject: [PATCH 6/6] dmaengine: ti: drop of_match_ptr and mark of_device_id table as maybe unused Date: Fri, 20 Nov 2020 17:23:03 +0100 Message-Id: <20201120162303.482126-6-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162303.482126-1-krzk@kernel.org> References: <20201120162303.482126-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org The driver can match only via the DT table so the main 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). The secondary match of_device_id tables (passed to of_match_node) should be marked as maybe unused to fix compile testing (!CONFIG_OF on x86_64) warnings: drivers/dma/ti/dma-crossbar.c:125:34: warning: ‘ti_am335x_master_match’ defined but not used [-Wunused-const-variable=] drivers/dma/ti/dma-crossbar.c:22:34: warning: ‘ti_dma_xbar_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/dma/ti/dma-crossbar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/dma/ti/dma-crossbar.c b/drivers/dma/ti/dma-crossbar.c index 4ba8fa5d9c36..71d24fc07c00 100644 --- a/drivers/dma/ti/dma-crossbar.c +++ b/drivers/dma/ti/dma-crossbar.c @@ -122,7 +122,7 @@ static void *ti_am335x_xbar_route_allocate(struct of_phandle_args *dma_spec, return map; } -static const struct of_device_id ti_am335x_master_match[] = { +static const struct of_device_id ti_am335x_master_match[] __maybe_unused = { { .compatible = "ti,edma3-tpcc", }, {}, }; @@ -292,7 +292,7 @@ static const u32 ti_dma_offset[] = { [TI_XBAR_SDMA_OFFSET] = 1, }; -static const struct of_device_id ti_dra7_master_match[] = { +static const struct of_device_id ti_dra7_master_match[] __maybe_unused = { { .compatible = "ti,omap4430-sdma", .data = &ti_dma_offset[TI_XBAR_SDMA_OFFSET], @@ -460,7 +460,7 @@ static int ti_dma_xbar_probe(struct platform_device *pdev) static struct platform_driver ti_dma_xbar_driver = { .driver = { .name = "ti-dma-crossbar", - .of_match_table = of_match_ptr(ti_dma_xbar_match), + .of_match_table = ti_dma_xbar_match, }, .probe = ti_dma_xbar_probe, };