From patchwork Fri Mar 10 21:46:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170205 X-Patchwork-Delegate: kuba@kernel.org 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 908C2C6FD1E for ; Fri, 10 Mar 2023 21:51:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232053AbjCJVvU (ORCPT ); Fri, 10 Mar 2023 16:51:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232566AbjCJVun (ORCPT ); Fri, 10 Mar 2023 16:50:43 -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 1E9E713EBB1 for ; Fri, 10 Mar 2023 13:47:50 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id x3so26034243edb.10 for ; Fri, 10 Mar 2023 13:47:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484797; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=SeJX9lSGwZbRGOASyeKJInBHWHmDyRL8Oo8/OupUB9Q=; b=I4VhGR8BarZ8ZUC/EPGtBWoticWk4MDuo0tG3Tg1iNkyklQ2Ur0SuiqcPODtE2eMBf PyeDV5OcJpdUHGd0wHSGqBEZB7YeXs9mEOxD3htiyMPdbfO2dAPkaOJsB+Kr6WWn9Z2s 8Jl4R5WOgnBRXbpBKvAa0kEOAHXE9/7qfcblWSrM0YZbuJi6EqOK4NitnHKNs4cC+3/4 7hjMaA4G9lfyHpVebanLvVFUMkYNajOyIg6C33wTk/rGYaR+zfx5s9neSPUZ4CrX7w9a 8o+Mdt+mzzNn7Cvv4pxDZHRchsZWOOmGTSFXDGk/q8Jrf3q/9lsgLKvERaYG9NyaLVKc vB1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484797; 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=SeJX9lSGwZbRGOASyeKJInBHWHmDyRL8Oo8/OupUB9Q=; b=L/ybQEwcC4/DhxbINPk1P0tI7fIdQ/6UWb4ryDhgX/GH2/VG0s74bUSmVmHEbyV3dW UMLuPOWOkhm+6xCQuZNr0DEdIzYp3T9hTvWlmWknGEhR2H0NcS17NdZnIof9nrRahYJB xQjNHgs8b7vDbh/EmOr21YqHxCHCe5vXAww2I/3yTH/NoDeDxZWJdsAyjFQjStoyRzh+ CQSEWPSTnesxeYxq31mNj5H8nHUpv3XufgI0QT/nVwA+McRv+JnMR7N4Ljnu9/kZ0OG1 YemYeo6z0epCFxlio7/s2qZH02sfdtR0+0e5oXeiLL9ZtEnfw4F9Sy5RrlWcGt2owzsL VqoQ== X-Gm-Message-State: AO0yUKV1qC6lR1UsrV7Fz7oZ8Nh8XT1mbzDsXqqRcphCAPqAkU/R+f5O h9BEjw9lkyBoQzFII/ZcH29MHw== X-Google-Smtp-Source: AK7set+fefzslhk3HVdoFlRZdjEzX/BPXogkmHteV4hEH093tDdyyFmRA7z+gYHRC6c1yXWYakLf5g== X-Received: by 2002:a05:6402:1608:b0:4bf:da1a:2be3 with SMTP id f8-20020a056402160800b004bfda1a2be3mr22977290edv.34.1678484796905; Fri, 10 Mar 2023 13:46:36 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id t5-20020a50ab45000000b004bf7905559asm488088edc.44.2023.03.10.13.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:36 -0800 (PST) From: Krzysztof Kozlowski To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Byungho An , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Vinod Koul , Bhupesh Sharma , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/5] net: stmmac: qcom: drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:46:28 +0100 Message-Id: <20230310214632.275648-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org The driver is specific to ARCH_QCOM which depends on OF thus the driver is OF-only. Its of_device_id table is built unconditionally, thus of_match_ptr() for ID table does not make sense. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Simon Horman --- drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c index 732774645c1a..32763566c214 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c @@ -606,7 +606,7 @@ static struct platform_driver qcom_ethqos_driver = { .driver = { .name = "qcom-ethqos", .pm = &stmmac_pltfr_pm_ops, - .of_match_table = of_match_ptr(qcom_ethqos_match), + .of_match_table = qcom_ethqos_match, }, }; module_platform_driver(qcom_ethqos_driver); From patchwork Fri Mar 10 21:46:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170216 X-Patchwork-Delegate: kuba@kernel.org 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 8E4B7C6FD19 for ; Fri, 10 Mar 2023 21:58:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232269AbjCJV6J (ORCPT ); Fri, 10 Mar 2023 16:58:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56218 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229968AbjCJV5p (ORCPT ); Fri, 10 Mar 2023 16:57:45 -0500 Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D911B14162F for ; Fri, 10 Mar 2023 13:54:31 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id a25so26370844edb.0 for ; Fri, 10 Mar 2023 13:54:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485252; 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=mUBJvPnvYIjkmn4O8oZhEpaIiBhxp2RHHJ3TqWmbT9w=; b=heTpSUvmKKM7jEkS6R8ooYJUrQ68nrwYQqxyLSK1rSCaM1Bjwx9wV+JLDDrgEqSw+f PlhcDZsXDB/XKIOyHj792sbbeYNw323Eru6WryisyDCHE5yH5dv+mGUtWywmeOGDd/AG 0eZ+bgrJxAqjheW9pGe6R8py+C3eO7VnsabPoPUk9BmvNmRCJzIc7FLGRO5/l/Cj6dIf 4H5hzfPgrj71jzXS3vSp+3yDcsrsV4CCH2KYFoAijvYiaVoOvehxPgZo3JJ/RoSalvuE V0XsjMZbG/suFejcLiuTaigSQQx6MblxK8B/PVhKqGX50P1zOIS1rYXYfquMaMtUfCjl Xiow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485252; 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=mUBJvPnvYIjkmn4O8oZhEpaIiBhxp2RHHJ3TqWmbT9w=; b=Kqytaq30s02XgXartdBIgNjeI49DTKU0aP/naLGnIDZNIWf8r6ZlwlK7+VYgzspOEx HNJbmJqL9KqHvWj0c4RguWbvFZ8MujC+eoJ83/Q0x7zorjDn1Gpw/GoEpBLn7PNaD9kZ nlvKx/hYadRG4rmHK9zye/LKpE3MQJuzLw/Nxvgg73j7AQDZVqjdP6KqFojj0/8FYxuM zpB1D9yL9CgVu+RamhQZTN/0uG359e19wLvwd2WsSdDFdskELeWwJE6qm8ULxRt65ojV dsSDiovWXQc6cOKsVRNdI3+srTAB7X/eJXy3X24qfp3/iflUuHdYiyFXHqXja5BbnqPm MWew== X-Gm-Message-State: AO0yUKXc9odwIqEbWJ+giBtiBacRum2KXxmgXp7XcgWfe7xczx6WRh1d hePJQ9+/S9lArW1quI/3uKxuSKfX3gS3qNMGeU4= X-Google-Smtp-Source: AK7set9osGjpQrpxJegDF8sKXKCQx5GDmuDhzB67DU5cdXSBv9c2wl4JYEXcMCat4OxS1PxXgAHWcw== X-Received: by 2002:a05:6402:1854:b0:4ac:b614:dd00 with SMTP id v20-20020a056402185400b004acb614dd00mr22252359edy.30.1678484804740; Fri, 10 Mar 2023 13:46:44 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id t5-20020a50ab45000000b004bf7905559asm488088edc.44.2023.03.10.13.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:44 -0800 (PST) From: Krzysztof Kozlowski To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Byungho An , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Vinod Koul , Bhupesh Sharma , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/5] net: stmmac: generic: drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:46:29 +0100 Message-Id: <20230310214632.275648-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214632.275648-1-krzysztof.kozlowski@linaro.org> References: <20230310214632.275648-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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/net/ethernet/stmicro/stmmac/dwmac-generic.c:72:34: error: ‘dwmac_generic_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Simon Horman --- drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c index 5e731a72cce8..ef8f3a940938 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c @@ -91,7 +91,7 @@ static struct platform_driver dwmac_generic_driver = { .driver = { .name = STMMAC_RESOURCE_NAME, .pm = &stmmac_pltfr_pm_ops, - .of_match_table = of_match_ptr(dwmac_generic_match), + .of_match_table = dwmac_generic_match, }, }; module_platform_driver(dwmac_generic_driver); From patchwork Fri Mar 10 21:46:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170227 X-Patchwork-Delegate: kuba@kernel.org 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 7ADD5C6FA99 for ; Fri, 10 Mar 2023 22:05:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229827AbjCJWFG (ORCPT ); Fri, 10 Mar 2023 17:05:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231337AbjCJWEl (ORCPT ); Fri, 10 Mar 2023 17:04:41 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8DB0526C3F for ; Fri, 10 Mar 2023 14:02:17 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id fm20-20020a05600c0c1400b003ead37e6588so7087204wmb.5 for ; Fri, 10 Mar 2023 14:02:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678485736; 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=+zUn8pocVr2r//jTaSouyLBckQgozo/ZDRdK2pwrVA0=; b=pgl6i6qaK/haxczMMVcfdcZ5b+1c5e91jl0ikcWk5bgsz5iNpvYMa6+7NvzJejBCFz l8C62Ql3jjjmUDq8H3KIjw54M71OvXsYHeW4pfo+iI+2x1w3CG2jbc0l0vs0dDMJta/P wKV+FQUVgbEPe/9GLaq0tzv56vlu6XjDk2N9NLXfo+JFmiHESnbY3D6X5yPQFa4YLzvl EIOWwOkCSooo0kTezdti7qT/+SJKKejSH6ucUX4H8oFO4RhqAagBsKEWds+dhlDZzwvC AODeUOGWOyKc9W8IdiL3LhrMQ7LZgcxPMwB+QOhsbZ4h9kNhqUVFLzSWT4uo52sHgieH TRkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678485736; 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=+zUn8pocVr2r//jTaSouyLBckQgozo/ZDRdK2pwrVA0=; b=nJ3ofj4mGkFRF1sRUEw6wpch9eRs4avpDriHq3ZfzxffTJ76zNc5yBC67ac8EfUKij rwATQ3+DGRUq151jfYuRFRIuWlcBTd1EYZa132/1uB6gfcPPZiYY5s6p7qmqw1GgdT7O RMgpl8QgXgDxV3cctSK4GgH1boBPpwl77+IWPeYfRbeyBrFG7LCPgQioGixJeLam60rs 8Ug+e6sPVf6zpNUtHbJ+RbvdYSGKoT1xFDYp/pIPDsdpxjhiyqg4+HfHswOfVRUnRTas iohggm83zcJyZU6sw/84JBj5i0J4NVOdSlzoVFF50US8kQ8idjlhufK7EtoHoVP5RPH+ vfTA== X-Gm-Message-State: AO0yUKUw7vuVG38FdU+yrB3369+B/5iYJKARkSdjkQxEotebJddBky5Q oNMvw/5YpjlTUSxp3subYbrBdhynvGdYjdiT+dU= X-Google-Smtp-Source: AK7set9z+aZBSopwb5K37dZnsHY8LksXJaCSbHMf2DdGMdLvLsqY5zIox8FrR0zcO/9qVVkZepZBRA== X-Received: by 2002:a17:907:6a8a:b0:90b:20bf:42cc with SMTP id ri10-20020a1709076a8a00b0090b20bf42ccmr28105595ejc.21.1678484806327; Fri, 10 Mar 2023 13:46:46 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id t5-20020a50ab45000000b004bf7905559asm488088edc.44.2023.03.10.13.46.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:45 -0800 (PST) From: Krzysztof Kozlowski To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Byungho An , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Vinod Koul , Bhupesh Sharma , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/5] net: marvell: pxa168_eth: drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:46:30 +0100 Message-Id: <20230310214632.275648-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214632.275648-1-krzysztof.kozlowski@linaro.org> References: <20230310214632.275648-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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/net/ethernet/marvell/pxa168_eth.c:1575:34: error: ‘pxa168_eth_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Simon Horman --- drivers/net/ethernet/marvell/pxa168_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/marvell/pxa168_eth.c b/drivers/net/ethernet/marvell/pxa168_eth.c index 87fff539d39d..d5691b6a2bc5 100644 --- a/drivers/net/ethernet/marvell/pxa168_eth.c +++ b/drivers/net/ethernet/marvell/pxa168_eth.c @@ -1586,7 +1586,7 @@ static struct platform_driver pxa168_eth_driver = { .suspend = pxa168_eth_suspend, .driver = { .name = DRIVER_NAME, - .of_match_table = of_match_ptr(pxa168_eth_of_match), + .of_match_table = pxa168_eth_of_match, }, }; From patchwork Fri Mar 10 21:46:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170215 X-Patchwork-Delegate: kuba@kernel.org 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 C0572C6FA99 for ; Fri, 10 Mar 2023 21:56:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231877AbjCJV4w (ORCPT ); Fri, 10 Mar 2023 16:56:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231864AbjCJV4b (ORCPT ); Fri, 10 Mar 2023 16:56:31 -0500 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62F652278F for ; Fri, 10 Mar 2023 13:53:08 -0800 (PST) Received: by mail-ed1-f53.google.com with SMTP id da10so26182473edb.3 for ; Fri, 10 Mar 2023 13:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484812; 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=cXkeI9EeTTwYzqS8yh9dXecDUjO0MyQx/L2af0F4moE=; b=rxWWjbUO8rJ97FJPVEFDo7oU7FjP8u/rEsKV/5EOl6dj3XiLbs93OlAjpxA7EfxgcG Tz6CdfursdQopp7xcuk3pGth7B2oloQRPjpr7MpIJwEVYOtUKUrQirTEiCnm/UQJ1vb1 FOcgfucgjChDKOR7B5OJNrtaSfzxdaJhslaEYbBLAtS5K4z3qObS+mzs13cuZYS32Ena H6z71v0dZ2I8nHC7cs9N1+1cPJf/CtMqLpggIkUUAYRRkf9+kckxm2F1AxiPA7p6e03g bkc5OpBl00nAbkUr2EQwaOTLaL1fK7qtrEAI9KYr3A7pIA79M0+rH83tVyRRzIEwtn/w lmlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484812; 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=cXkeI9EeTTwYzqS8yh9dXecDUjO0MyQx/L2af0F4moE=; b=SaU4wnSkN9AYY01PGF1330c3ovVkZmnY2gc0M8G2lw5zmAayAsn86FTWEtx5A72QuY 0eVQew0txJHh6gN3byVT71wJk26oTx0o/5/4pS2C7/uYiXV8Yj5CxaGUwWZv3f4Q1RK9 dkhav4/IUWRpIFY+7cIKxTMR44lwJnCQfa5dJqC4uTTn0ADPUkIQCtpbN9Adf4rZPsNs Ey9tR81aTOW34jkHqaEAGyphPW71p3saAjNij33ve3cKKrZNZRZk1ASHX1sdIiyQ5S/A ejBmJzHege306E2Wox9Hz1O1WIhjtHsZBT9yH9fCq/tWbuL+HcFWDANx7hThGxfRY8Q6 8OBg== X-Gm-Message-State: AO0yUKXvjOfxlfYBUYF7HmkgYo34zg15evtUXQHPB5hPX5SZXkiR7Twv 4WY+0xVTXwVRpN4c8YttDAH5pg== X-Google-Smtp-Source: AK7set9FnQbKV7O9a3DrWLVTokM/lU2Y8DlMciq0r4LeGCxvD6J/xsbXRQD1z+zirQTi2clWFbtiFQ== X-Received: by 2002:a05:6402:2d3:b0:4c3:15f0:1100 with SMTP id b19-20020a05640202d300b004c315f01100mr25626233edx.29.1678484811998; Fri, 10 Mar 2023 13:46:51 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id t5-20020a50ab45000000b004bf7905559asm488088edc.44.2023.03.10.13.46.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:47 -0800 (PST) From: Krzysztof Kozlowski To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Byungho An , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Vinod Koul , Bhupesh Sharma , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/5] net: samsung: sxgbe: drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:46:31 +0100 Message-Id: <20230310214632.275648-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214632.275648-1-krzysztof.kozlowski@linaro.org> References: <20230310214632.275648-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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/net/ethernet/samsung/sxgbe/sxgbe_platform.c:220:34: error: ‘sxgbe_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Simon Horman --- drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c b/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c index 926532466691..4e5526303f07 100644 --- a/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c +++ b/drivers/net/ethernet/samsung/sxgbe/sxgbe_platform.c @@ -229,7 +229,7 @@ static struct platform_driver sxgbe_platform_driver = { .driver = { .name = SXGBE_RESOURCE_NAME, .pm = &sxgbe_platform_pm_ops, - .of_match_table = of_match_ptr(sxgbe_dt_ids), + .of_match_table = sxgbe_dt_ids, }, }; From patchwork Fri Mar 10 21:46:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170206 X-Patchwork-Delegate: kuba@kernel.org 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 D0CCAC6FA99 for ; Fri, 10 Mar 2023 21:51:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232206AbjCJVve (ORCPT ); Fri, 10 Mar 2023 16:51:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231572AbjCJVuy (ORCPT ); Fri, 10 Mar 2023 16:50:54 -0500 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAE13126EF for ; Fri, 10 Mar 2023 13:48:05 -0800 (PST) Received: by mail-ed1-x52d.google.com with SMTP id k10so26010376edk.13 for ; Fri, 10 Mar 2023 13:48:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678484813; 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=lzFx8euiB+sc2RTiijtv6CruVrC3VvrxIigbNh0lHCw=; b=ousR3cOJbxC6x+UkyFQcWklCFj80NWbEJGdyDrSjeFRWdxuO7XkM0J4FPY/a+Re+ud ZpQPSczG8puqE9oD4FbTWjxSyafng0QhvyE3rX2OhSQboWmKHtyqLje+08ogR2ZXDZF/ Hapo4z9OPfoaqBiFcu+qSq9P8cOSrWQz62T+DqqBW62Bier/CICZrks4KZkbSAqP8aOe JWzDx2VsbmooiWLykyWUZcSZvQJ6a7Ef/Q0Ln6RJugf7UTqAvF9v2V6OasRULflKUcFj f4e2VCpmVGy0HqNMsyeM0Od6H2sF0vA3caiLz1yNPppZ3c2+KRXn7MZubpIOVnj+0YHH 6mpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678484813; 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=lzFx8euiB+sc2RTiijtv6CruVrC3VvrxIigbNh0lHCw=; b=c5o0j3VAhjobnzdbji9UQBuV4xLPF8RQRrybRdbGLKuunq0BXa/4idifA41xZFYBLP yM/QGYej4ncnwdD0WuN2M410YfWEisIIf/Kzi78fr9CnfQJqBsZzNA4v3SmJPX2q4yNN LAkZe4t0jyo3em9N9uP+RtPoZxM4gKVUQJecEFuLsxD977/ZpCyygtxSp3vA4g9XDuzO j7AyhfPFo2puaN+lufOE2aUubP3iO1UEkcxNVijw8Jx0VWji4BgX3D7T/Ch+wjPS3JhO nVXKwPOEZGmx8zGccrUdklxY6LJn9HuQlMbFDLacma8a6apdk2FkjTgCydoMC+ndxEQR gH1Q== X-Gm-Message-State: AO0yUKX1zHeMQCCuDR0pVoF8v8WIVAW7JT8NSpKyAs2TpxM3wVwm/nke swx3iRzoKj4WhiRRF8gJV1Yjrw== X-Google-Smtp-Source: AK7set8nWd2eBnYgMGQTtXIPbx0OtD6V7+vbCi+nDaI+pK1IzlYRDbizlxwOP2yZnDYzFE6FeI/EFw== X-Received: by 2002:a05:6402:1a4d:b0:4a2:223d:4514 with SMTP id bf13-20020a0564021a4d00b004a2223d4514mr25732913edb.8.1678484813196; Fri, 10 Mar 2023 13:46:53 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:34:52e3:a77e:cac5]) by smtp.gmail.com with ESMTPSA id t5-20020a50ab45000000b004bf7905559asm488088edc.44.2023.03.10.13.46.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Mar 2023 13:46:52 -0800 (PST) From: Krzysztof Kozlowski To: "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Byungho An , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Vinod Koul , Bhupesh Sharma , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 5/5] net: ni: drop of_match_ptr for ID table Date: Fri, 10 Mar 2023 22:46:32 +0100 Message-Id: <20230310214632.275648-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230310214632.275648-1-krzysztof.kozlowski@linaro.org> References: <20230310214632.275648-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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/net/ethernet/ni/nixge.c:1253:34: error: ‘nixge_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Simon Horman --- drivers/net/ethernet/ni/nixge.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/ni/nixge.c b/drivers/net/ethernet/ni/nixge.c index 56e02cba0b8a..0fd156286d4d 100644 --- a/drivers/net/ethernet/ni/nixge.c +++ b/drivers/net/ethernet/ni/nixge.c @@ -1422,7 +1422,7 @@ static struct platform_driver nixge_driver = { .remove = nixge_remove, .driver = { .name = "nixge", - .of_match_table = of_match_ptr(nixge_dt_ids), + .of_match_table = nixge_dt_ids, }, }; module_platform_driver(nixge_driver);