From patchwork Sat Mar 11 17:32:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170912 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 DAA7EC74A5B for ; Sat, 11 Mar 2023 17:33:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbjCKRdb (ORCPT ); Sat, 11 Mar 2023 12:33:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbjCKRdS (ORCPT ); Sat, 11 Mar 2023 12:33:18 -0500 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C588012F2B for ; Sat, 11 Mar 2023 09:33:13 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id cy23so32926804edb.12 for ; Sat, 11 Mar 2023 09:33:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678555992; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Wf3VcA12/YrUundcroeR6wyGdqPTMCPD8/QGoi4c1VQ=; b=UlZRqvn12gq/jGCCnKeQnJcvhYq4mKfAWsv8joCF1SKk81V5nKo6bL4qnULGKxYSD5 B2YK/KjiT/rlm1xbIwn85ZKrc4c5jKwMcQLv0cv1YQTnYNYLj8AXVQMeP01QTZYrOVpf Jp18EuL79aOIZ+Hn1V8XgZoi/kIP+++F4/Gfbh5nloPb73y1VGK+t4uKQ/p8h+Yv+SfS Pcn7Pq4eq7a2t9MOj4lkEc9R3yRwiiZ8/xLmMkoHHRKXZZuFOM3Ti/RBu3sw/i5sTRie O+ZU0ciUG2+ddhxbNO7pPID0i7DAj18EzJI8cQVD+MbBI5wRiig3+DhLGub5ZUyNjxLF 4Onw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678555992; 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=Wf3VcA12/YrUundcroeR6wyGdqPTMCPD8/QGoi4c1VQ=; b=yua9o0x5nNK6FPWBav4DP1nhgvj7eOKg7yy2Pak1gUGpDoN666YmmAyltx0pTAwl1B Gbng/iezXsEOiP9X3GxLzP9L2GiJCOoWYEUdL+vTt1YDAK4HYiR1b0durDFK+rd98oR2 AtIkkNn1LxijUIRkMkY42VwFoXU22LVR/bIaZnpAI98KQvZuPII/pDdo4Awf//3OUAEj EQijFc+pOY3md3aC5Cq43UBPhAx/tPX1EG1fXl17gnU28nfR3XW4HbWFXKN0IfamMs6D ughc1jnWQOds7CGjxhQqGpFCnb/Yi9zDCLdpJOESrrt71jdjqKbjT33H8QjO98/GJuLY yV9w== X-Gm-Message-State: AO0yUKW2q2ndlJD2lHVgQCI7pFqQQMkchHiDpT35vUKo0jdDZVfFC6ls qGbEI802/yVXI4tZ6CSAXf/gcQ== X-Google-Smtp-Source: AK7set+f79dWDHOOxM5tf/Bi+yy9nY4COgvksaFhvAvFJlsDWV8YsvBROd1UMXS3rxmXEvfUyo2jmQ== X-Received: by 2002:aa7:c40c:0:b0:4fa:ac78:7f2a with SMTP id j12-20020aa7c40c000000b004faac787f2amr1891149edq.41.1678555992182; Sat, 11 Mar 2023 09:33:12 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:11 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 18:32:52 +0100 Message-Id: <20230311173303.262618-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 can be compile tested with !CONFIG_OF making certain data unused: drivers/net/dsa/lantiq_gswip.c:1888:34: error: ‘xway_gphy_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/net/dsa/lantiq_gswip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/lantiq_gswip.c b/drivers/net/dsa/lantiq_gswip.c index 05ecaa007ab1..3c76a1a14aee 100644 --- a/drivers/net/dsa/lantiq_gswip.c +++ b/drivers/net/dsa/lantiq_gswip.c @@ -1885,7 +1885,7 @@ static const struct xway_gphy_match_data xrx300_gphy_data = { .ge_firmware_name = "lantiq/xrx300_phy11g_a21.bin", }; -static const struct of_device_id xway_gphy_match[] = { +static const struct of_device_id xway_gphy_match[] __maybe_unused = { { .compatible = "lantiq,xrx200-gphy-fw", .data = NULL }, { .compatible = "lantiq,xrx200a1x-gphy-fw", .data = &xrx200a1x_gphy_data }, { .compatible = "lantiq,xrx200a2x-gphy-fw", .data = &xrx200a2x_gphy_data }, From patchwork Sat Mar 11 17:32:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170911 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 F3EB2C6FD1C for ; Sat, 11 Mar 2023 17:33:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230087AbjCKRdV (ORCPT ); Sat, 11 Mar 2023 12:33:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230034AbjCKRdQ (ORCPT ); Sat, 11 Mar 2023 12:33:16 -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 40598168A7 for ; Sat, 11 Mar 2023 09:33:15 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id x3so32950394edb.10 for ; Sat, 11 Mar 2023 09:33:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678555993; 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=HZxuVpVebsRRraysHVEtopW/pRW+n6rrpYSxL3G7TSA=; b=tMKPN/0O5hiExIQzmUdM/nd3i2G0ghQ+pin+O8uUESJmlR1h3DD8OvmvNZEBkC8BFx rBh8zgXrwH3RArTVe8yXftf6Ar3BxqZSycY/MjqnkK9QaNOVsTBky3K8qo+yjWoWB3HT DXqU5AQPyxMwkaEMgypUS3ERBToIKsBxAWG5OkI9FbvEFqDpRtwsemVTrdxVZ4D4EGoa iP6IoifCjqOvmbr+ad57xelqN3xTwF/hyP8pJDoUjm7O/rC+tKbu8sFwi2/p0k9qOyiU 5uYOHVUrT0q6s9o9p9Y2zuMKKq+IXGYtW5EUo6PVnwyXdtba9YBdmp7VQP9P3zrIeMMj oT/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678555993; 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=HZxuVpVebsRRraysHVEtopW/pRW+n6rrpYSxL3G7TSA=; b=8FhUPJPJHiYSIMZT4ftWwXWIlsNSLIQefEobdxf1dixSvJvlDpCaFruGyq+TpWRD36 FyQqYXT4ZOR7VKE7CvK4Nj4bW8hVN3I4vtBCEtzP5HKARan+8ov4LSR3H6irLTSCldss xtmopzE87wsemqThcjp8zi9fcg+pSfbhuvTeGY97xJgbj3VKtCeTOUej2LXPcIydHUno zsXNn5CmADJDEMvt3A5A78LmDcB7/B4seQxvNbl+cKmMIPZ4676b4XJMz8ROpbh2GbQW 8g5se9777eurkCHm59uBnTHjAR43MAjWAUxVGcDvUPmho+0GiaIiHwfJ8k1s5+09a1mb haDQ== X-Gm-Message-State: AO0yUKVt8NuGYZuir8felCkbJPs+MmCblnEfo2kaBy/5hjPophVYA7Iz DTbgnx4d04JnZDKHPAPetq8wVw== X-Google-Smtp-Source: AK7set+YXBuxIPUkydQd5TySLdyku2ej4p0a0d6fGBoTL1fEL0/yj69k0x70JsFAUDGnbbvJtselrA== X-Received: by 2002:a50:ee92:0:b0:4fb:2060:4c24 with SMTP id f18-20020a50ee92000000b004fb20604c24mr1127782edr.4.1678555993534; Sat, 11 Mar 2023 09:33:13 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:13 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 02/12] net: dsa: lan9303: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:32:53 +0100 Message-Id: <20230311173303.262618-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 will match mostly or only by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/net/dsa/lan9303_i2c.c:97:34: error: ‘lan9303_i2c_of_match’ defined but not used [-Werror=unused-const-variable=] drivers/net/dsa/lan9303_mdio.c:157:34: error: ‘lan9303_mdio_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/net/dsa/lan9303_i2c.c | 2 +- drivers/net/dsa/lan9303_mdio.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/lan9303_i2c.c b/drivers/net/dsa/lan9303_i2c.c index 1cb41c36bd47..e8844820c3a9 100644 --- a/drivers/net/dsa/lan9303_i2c.c +++ b/drivers/net/dsa/lan9303_i2c.c @@ -103,7 +103,7 @@ MODULE_DEVICE_TABLE(of, lan9303_i2c_of_match); static struct i2c_driver lan9303_i2c_driver = { .driver = { .name = "LAN9303_I2C", - .of_match_table = of_match_ptr(lan9303_i2c_of_match), + .of_match_table = lan9303_i2c_of_match, }, .probe_new = lan9303_i2c_probe, .remove = lan9303_i2c_remove, diff --git a/drivers/net/dsa/lan9303_mdio.c b/drivers/net/dsa/lan9303_mdio.c index 4f33369a2de5..d8ab2b77d201 100644 --- a/drivers/net/dsa/lan9303_mdio.c +++ b/drivers/net/dsa/lan9303_mdio.c @@ -164,7 +164,7 @@ MODULE_DEVICE_TABLE(of, lan9303_mdio_of_match); static struct mdio_driver lan9303_mdio_driver = { .mdiodrv.driver = { .name = "LAN9303_MDIO", - .of_match_table = of_match_ptr(lan9303_mdio_of_match), + .of_match_table = lan9303_mdio_of_match, }, .probe = lan9303_mdio_probe, .remove = lan9303_mdio_remove, From patchwork Sat Mar 11 17:32:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170913 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 9C736C7618A for ; Sat, 11 Mar 2023 17:33:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230182AbjCKRdd (ORCPT ); Sat, 11 Mar 2023 12:33:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230027AbjCKRd2 (ORCPT ); Sat, 11 Mar 2023 12:33:28 -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 632D822A20 for ; Sat, 11 Mar 2023 09:33:16 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id k10so32932890edk.13 for ; Sat, 11 Mar 2023 09:33:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678555995; 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=UwB85vi35W6JFbse/kCjhcZA/CxkEkODSyImYFi2+wU=; b=QJZVFReUg7zrO73MLdqYRzpuYC4bl7zsy2iMOSOtYl5oRvPLj6V3IScX9xNhvF3qcU lCQWEwdKfwmn1uhILsR4p5KVY41WXU6cZEZKEEewyFaYIR1OBjZzO7aWMLlmncsslmpl tCnusxbxupvB3BaBOcuFcfDAgwNkUH4cBKSTTvQQACSpC1wsGpxovbasVJrdapSd32dD guQxFSDTrHL6fil3naWSY7Yq5/1I7wZW2zYEdTnpNlZVCpDo5OOFuyqGmx/v8EYqd92X kEASnGkR6jqA1AkQ/JckSaVIqpxgLEG4nTwS4WvxJO0/434fH6RdA5BN8E1XHEO9OtSh OKWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678555995; 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=UwB85vi35W6JFbse/kCjhcZA/CxkEkODSyImYFi2+wU=; b=AfwPkDW3sibPIiWEL3wAtr8VvWyyYcrVIQN+EycZ8Ag+lbLO1Wu4JsN/QFFyxF/phD Gid84BfhwD3D5tZMTpPoARmyrcVbgLTE75sr4Z9B0GR25iZLTwAF1Y2niUb5yRhE99fp Ad7ennw/99ss/vECymRKIO+gZ2y6K8sUnze4+1ErsL1dfse4YYlTvUcCGyyl2xYKkBPh octno5YlDmpaP1wBzDxTAUhUm95g5yhmu3lHqjL/tZ4+8P0oNwv9KO047rLOLpaoiX97 3zTZ/d7t/c7hjD0UAfaIxLy+QCws5nM0nnHP2DlvprEoJJacnF9c69yq4mW7DZ2hLYCh Yu/Q== X-Gm-Message-State: AO0yUKWEhRO94eJ76NeW2yG4/9JZxv0ofik/KQemI4YSi/Hn1Vcjt9kC z0hh8sqTScbvD8gIgpJxO8dE8Q== X-Google-Smtp-Source: AK7set/dVlRnxLDT9ouunZ6UH9aeWxbXkHckg/IVN8HpBpPg2BP11f0i8gnuweQAwRI6Tc4MtCyTfA== X-Received: by 2002:a17:906:c79a:b0:924:9f65:8866 with SMTP id cw26-20020a170906c79a00b009249f658866mr284358ejb.64.1678555994857; Sat, 11 Mar 2023 09:33:14 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:14 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 03/12] net: dsa: seville_vsc9953: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:32:54 +0100 Message-Id: <20230311173303.262618-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 might not be relevant here). drivers/net/dsa/ocelot/seville_vsc9953.c:1070:34: error: ‘seville_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/net/dsa/ocelot/seville_vsc9953.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/ocelot/seville_vsc9953.c b/drivers/net/dsa/ocelot/seville_vsc9953.c index 563ad338da25..96d4972a62f0 100644 --- a/drivers/net/dsa/ocelot/seville_vsc9953.c +++ b/drivers/net/dsa/ocelot/seville_vsc9953.c @@ -1079,7 +1079,7 @@ static struct platform_driver seville_vsc9953_driver = { .shutdown = seville_shutdown, .driver = { .name = "mscc_seville", - .of_match_table = of_match_ptr(seville_of_match), + .of_match_table = seville_of_match, }, }; module_platform_driver(seville_vsc9953_driver); From patchwork Sat Mar 11 17:32:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170914 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 3AF75C6FD1C for ; Sat, 11 Mar 2023 17:33:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230126AbjCKRdf (ORCPT ); Sat, 11 Mar 2023 12:33:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230089AbjCKRd3 (ORCPT ); Sat, 11 Mar 2023 12:33:29 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BBBE2940C for ; Sat, 11 Mar 2023 09:33:18 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id k10so32933031edk.13 for ; Sat, 11 Mar 2023 09:33:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678555996; 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=cV5jhwqAFb9J/sgkVfjUP7KhaalS+CKZT6hVt29t4R8=; b=MYvjilFcpCdittD302lL2YjMwJ2qvaM+TOfrxTuATwXHJ1CfzEjqOmvaSvScCqmkin pTnDZ5d2rOiT4dU1dZdXkgCPw+Covleytz7abYY23PlkYjskdqFG39/Y7ZSCIpoxgXlf PeXzpD5kSyI+JJmWgeCFORKW1S9np8HnYzatbTyNAthhVQzk9si2w3X8tLVL3QW+VvVZ ucE+S8IILRThkeL4sB1bDjwNLZa/k37MagG/E41twesL3QAeTRhWuv+B7FtdiicQVIW5 7m7opj8Qi4+juTxzE+C0FUuMelNeoewwPeqTez0Fwm5ZNQR0j+3L6jIcetbH+ngR/aLF V6wA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678555996; 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=cV5jhwqAFb9J/sgkVfjUP7KhaalS+CKZT6hVt29t4R8=; b=BG54dvkFs6tNPi7ty6NFzzhRJiD3BztjlX9b+19qBT24dFrVSbKuvhoDJuoFrgfTUy iW58jhegjraq56ngR9JOKbew9rfaaL+fHce9DS5wwHoMvwWN5kWfqD8m86F37078YdPj bqBi98leeoDDD+Y9yNgO6+CGwWIp/8k+q79aNBCB5/9xvhqcEoocvYA8T3NJpUrH3g+9 Swq05qOyb3RVatsZmibUgzuNiFpaNCtpe9zrdLH7aZ46rGCbqIqC2R4Gq7RnlrVfituv VICW6lh77JsM//hS0HHUmV3sl9hD8vQlSslVTa+KI4Ve3tCQCqu3VHokKEhkfMGEYiTo Hlcg== X-Gm-Message-State: AO0yUKVXSpbSmcUd/XHlXTdcwYEODqWJzBiZpfMruwHE6YD35OL7d50X 7LSlo3uVIazxKu1J8khLsFrgWg== X-Google-Smtp-Source: AK7set/PA0/E9yFuXJbNrBsBaZOrTV+sx32D7gEew2JFPqh8HWaLIK52psR0MV7S5RRnbLvgEyjCBA== X-Received: by 2002:a05:6402:35a:b0:4ab:4dc6:6f8c with SMTP id r26-20020a056402035a00b004ab4dc66f8cmr28767868edw.4.1678555996559; Sat, 11 Mar 2023 09:33:16 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:16 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 04/12] net: dsa: ksz9477: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:32:55 +0100 Message-Id: <20230311173303.262618-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/net/dsa/microchip/ksz9477_i2c.c:84:34: error: ‘ksz9477_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/net/dsa/microchip/ksz9477_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/microchip/ksz9477_i2c.c b/drivers/net/dsa/microchip/ksz9477_i2c.c index e315f669ec06..97a317263a2f 100644 --- a/drivers/net/dsa/microchip/ksz9477_i2c.c +++ b/drivers/net/dsa/microchip/ksz9477_i2c.c @@ -117,7 +117,7 @@ MODULE_DEVICE_TABLE(of, ksz9477_dt_ids); static struct i2c_driver ksz9477_i2c_driver = { .driver = { .name = "ksz9477-switch", - .of_match_table = of_match_ptr(ksz9477_dt_ids), + .of_match_table = ksz9477_dt_ids, }, .probe_new = ksz9477_i2c_probe, .remove = ksz9477_i2c_remove, From patchwork Sat Mar 11 17:32:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170915 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 32821C61DA4 for ; Sat, 11 Mar 2023 17:33:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229550AbjCKRdk (ORCPT ); Sat, 11 Mar 2023 12:33:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230101AbjCKRd3 (ORCPT ); Sat, 11 Mar 2023 12:33:29 -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 CA02F227B1 for ; Sat, 11 Mar 2023 09:33:19 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id da10so33111404edb.3 for ; Sat, 11 Mar 2023 09:33:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678555998; 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=nKur1r8OlOPHhO+W1SjiqgXs8kEkxFQEfXcxEmmOXUc=; b=k4Ti0rLnAWzmjDi7tWIcZx1FgUvGaYLD9CMX5Z4+jDpBipnLP+u8k1HeOmYB76PjqT wEu3FEQZHVG8ZpXSbrEZ3uEIq44dE1l7UIs6yoBhWaD7HllMVCzkAyDj+1hS4Yjlbnan l+9tDD7Y7A69//Cb0hV+luAlqtKGEg3lx0V82txAOxivF5XHSBmTRwMSmUKsPevtdK9S SViEPZi46I+SZU+M5TyvP5UfFy/c9YY/z6NKbL/u+RIRU0YLrvhWrTecZMJlzeOFrsXr S6qT43NZ5c/4m9ae4itCdHuKaTHdsT0FPBxXzAlYmPtLHl84lLisXDaVKG7+MkktVgNZ 5zJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678555998; 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=nKur1r8OlOPHhO+W1SjiqgXs8kEkxFQEfXcxEmmOXUc=; b=HOv1SJClj7OYHsecBqQ5HO/gsBEO+SNDMhoLXeWWl0Vs8FoCjTXeU1/p+EnDN5FBV7 /bdNCXZYBPtvAQQxfybjEQiRX6BpvuLiGI3f7RnQNwLW+4blKe1QCBusEJ7XTyJ8Cfy2 iZ1E6FEhAzljot+2w9nuCHgreiWIUmRuBf2NOz3kYNdhSWUirVgT9JA/xHDndscn2U/z aTyOCNg3lIbA98AXgP4mfhbT/PjhRes9GYshARalynno3DFGGrS3pOmzf/TNZFe1+/SZ HvhC3O6bdoMr+Asa0tEnzczD6y2ZlUM4Hfm6pdbtBqUoz7+JKCXYeOKrL6Yk2cXCkARG 77jg== X-Gm-Message-State: AO0yUKV39z7LnXuWdX+16NQE2qMd433Zu/flooFPmddFU9LdaoDdzqKX wmvmea//7WrQL45UN+o0XmoGXAFbV7A1tanxmwc= X-Google-Smtp-Source: AK7set+7UkOx/2YMNdMbGIWOGP5Y0f4Tdf6ivMioIVg2xYb8RrkCWLmuL1/fIFWs5ACOFrdzbgdPgA== X-Received: by 2002:a17:906:fe44:b0:8e6:bcb6:469e with SMTP id wz4-20020a170906fe4400b008e6bcb6469emr33549135ejb.0.1678555998342; Sat, 11 Mar 2023 09:33:18 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:18 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 05/12] net: dsa: ocelot: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:32:56 +0100 Message-Id: <20230311173303.262618-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 might not be relevant here). drivers/net/dsa/ocelot/ocelot_ext.c:143:34: error: ‘ocelot_ext_switch_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Acked-by: Colin Foster --- drivers/net/dsa/ocelot/ocelot_ext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/dsa/ocelot/ocelot_ext.c b/drivers/net/dsa/ocelot/ocelot_ext.c index 063150659816..228737a32080 100644 --- a/drivers/net/dsa/ocelot/ocelot_ext.c +++ b/drivers/net/dsa/ocelot/ocelot_ext.c @@ -149,7 +149,7 @@ MODULE_DEVICE_TABLE(of, ocelot_ext_switch_of_match); static struct platform_driver ocelot_ext_switch_driver = { .driver = { .name = "ocelot-ext-switch", - .of_match_table = of_match_ptr(ocelot_ext_switch_of_match), + .of_match_table = ocelot_ext_switch_of_match, }, .probe = ocelot_ext_probe, .remove = ocelot_ext_remove, From patchwork Sat Mar 11 17:32:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170917 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 7F18AC61DA4 for ; Sat, 11 Mar 2023 17:34:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230265AbjCKReG (ORCPT ); Sat, 11 Mar 2023 12:34:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230075AbjCKRdc (ORCPT ); Sat, 11 Mar 2023 12:33:32 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D2133B65C for ; Sat, 11 Mar 2023 09:33:21 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id er25so4894192edb.5 for ; Sat, 11 Mar 2023 09:33:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678555999; 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=aXAmespG0M4hSiMCAu+5SVl3Gjs1X4fJ7l5m653N/T0=; b=h61OLmcgQZ49pdiaT/hMry9cHAP5irMaU8H2HF8mKrR8UcaTmYxRuNVscBm/7KcSZu iP9KwtjEe/2vbYH65cQWESLAptBhLAUdvgrrnES77GxdAbGIl5U8Y42eB7/y5s0Y4hSW mvj2c5nj9V8PzeMXsaLMCCoHABuAcjtkN819POzZEPr+rR7S8TsvpLjpWnMrFDmyd+07 zlHWo/ouD5nf+6zfOSrQZ/GtUKPYMy0P/kUdaSLuRSQ//1hJXQ5IB9UXMKMX7HkTlnPd f99sqAPHOzCY4JSVlYAuscS6WSHfBCE4nLApyI6xWtqW7DobA7r9aMRVSOmlM102ttVK NBnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556000; 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=aXAmespG0M4hSiMCAu+5SVl3Gjs1X4fJ7l5m653N/T0=; b=ooklUZBUBVzWAaKU0otwCgOr/uF/3wxRUlNWkWXg4uFD2v38t/bDbIBUHpH5CqRK3g NDUvEe2IQiYqCbI2PzbTFoNuM9cdErHD13CiukhcszkoF09peSg4HPKA1OUZBcnx+5gp C1k+ajzj+/16qe80IiU/qNm/dH926vDc+GRJseSVYraOHBSNEQCx6LcnkJ8j6NxleQKg paGOCyl5C5uOojzVwFwf2ek/pAyWdov6qeZQpfGAh3IQW7/ljXJdNeRlAZv63L+mUVs1 3MWOZoYx7rqJlH2ZTu2rwDXchfz+1eSrBlU6OmP/zjmnSUFMSQxvu/vYurvsnA+whv75 Njpw== X-Gm-Message-State: AO0yUKU5IhF02tzXXhVhDFF/iRSMWQTxU3Eg4F4K/rIAvKUxureCaeL0 uIchNPC3sFVsc2ZD2DFxdKDOvg== X-Google-Smtp-Source: AK7set/kpZ2vdN8HmJ3eoEZdciC1xrNdRT0XaUll+kYhR/pDJF4w7J+TuEaXTUmUIJfY2jOSfMh2Gg== X-Received: by 2002:a05:6402:542:b0:4af:8436:2f5d with SMTP id i2-20020a056402054200b004af84362f5dmr25453512edx.40.1678555999770; Sat, 11 Mar 2023 09:33:19 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:19 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 06/12] net: phy: ks8995: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:32:57 +0100 Message-Id: <20230311173303.262618-6-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/net/phy/spi_ks8995.c:156:34: error: ‘ks8895_spi_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/net/phy/spi_ks8995.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/spi_ks8995.c b/drivers/net/phy/spi_ks8995.c index d4202d40d47a..7196e927c2cd 100644 --- a/drivers/net/phy/spi_ks8995.c +++ b/drivers/net/phy/spi_ks8995.c @@ -491,7 +491,7 @@ static void ks8995_remove(struct spi_device *spi) static struct spi_driver ks8995_driver = { .driver = { .name = "spi-ks8995", - .of_match_table = of_match_ptr(ks8895_spi_of_match), + .of_match_table = ks8895_spi_of_match, }, .probe = ks8995_probe, .remove = ks8995_remove, From patchwork Sat Mar 11 17:32:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170916 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 B126AC74A4B for ; Sat, 11 Mar 2023 17:33:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230217AbjCKRdn (ORCPT ); Sat, 11 Mar 2023 12:33:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbjCKRdc (ORCPT ); Sat, 11 Mar 2023 12:33:32 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DE103BD8E for ; Sat, 11 Mar 2023 09:33:21 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id r15so5841936edq.11 for ; Sat, 11 Mar 2023 09:33:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556001; 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=pg+GPO/7EayVuamadIf0ZkJzvPVNrr6nqvGyotFYqJw=; b=QLGcp//9YW3Bk8OUHxNwnEQxTEzlQHE3td9NgmKco5B/m0ltJ6JzKJYZqWFEk5OOhc TgN4yl6NXi+7UGadNTCwZcT5F1eOPX0u8EIGOmUuEqvqo3VNBwildAwAelu/c0zPv5jG tL8qALW1Kh0MAkcwxjOHBT7E55h70Ih6OryxXmM5b1f3hhTQcRI0IrmlN7dMF5dxf6GN 24Rb0XmN6gxmEL2IaU/js2VrPSqXuqW18jLAZyEyGKdYqh/1JbUO4RMfaXMwikc1Bzhk AKgT/otoVDliGNadUn19zF00k5h7aJz7/J1qppKBAJvWn6cDLhfkFloaOdMPS3dSJVgP /rjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556001; 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=pg+GPO/7EayVuamadIf0ZkJzvPVNrr6nqvGyotFYqJw=; b=bJYTBQXYhurWnHYSLpG0AQ1xGTzLUhy9+QJkeoNn1+7WXxigMtPVJUjz+h672LEYD/ UiB7kuCwdsQwAv94XWO/C74GtBNyLg4M78NUgmV1yNWvBWgomKvKy2QjFCglOtYpLhTM SZqF/JMX8zCMCMAsl6g5ZzLty22p3wlISbJ8yuZuAbgbfJhidl1IvUvHWTPVUNnuOeeW 3kH+7B/1x+I7d0WqQAqA5VvsHboyxT2zgrUG+JOCmniJKibaH+ohVGW68gqydL+NiFXG mBpvcoKLmubQQXvEz9zEuY+acTVuU/c0SOtSGcb7xk/ZdLz96ZIdk8aJ+tL0Kcsg30Yb qpcw== X-Gm-Message-State: AO0yUKV41TmUnNIs45TgF/00U+ypeEQ/3pSy/MacuqumFx4G8WcuFaEt xb6t1MVbSmpTg0npKVZ9mU7sNQ== X-Google-Smtp-Source: AK7set91MVUsjkv0zNuDpkPHsBeGlGpHc2kPO4ylGklObjaz1d2qRxZ19w35NHimRz43HhRIx3AhHQ== X-Received: by 2002:aa7:d04e:0:b0:4fa:ee01:a0cb with SMTP id n14-20020aa7d04e000000b004faee01a0cbmr1425114edo.32.1678556001033; Sat, 11 Mar 2023 09:33:21 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:20 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 07/12] net: ieee802154: adf7242: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:32:58 +0100 Message-Id: <20230311173303.262618-7-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/net/ieee802154/adf7242.c:1322:34: error: ‘adf7242_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Acked-by: Michael Hennerich Acked-by: Miquel Raynal --- drivers/net/ieee802154/adf7242.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c index 5cf218c674a5..509acc86001c 100644 --- a/drivers/net/ieee802154/adf7242.c +++ b/drivers/net/ieee802154/adf7242.c @@ -1336,7 +1336,7 @@ MODULE_DEVICE_TABLE(spi, adf7242_device_id); static struct spi_driver adf7242_driver = { .id_table = adf7242_device_id, .driver = { - .of_match_table = of_match_ptr(adf7242_of_match), + .of_match_table = adf7242_of_match, .name = "adf7242", .owner = THIS_MODULE, }, From patchwork Sat Mar 11 17:32:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170918 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 B1161C74A5B for ; Sat, 11 Mar 2023 17:34:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230318AbjCKReJ (ORCPT ); Sat, 11 Mar 2023 12:34:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230190AbjCKRdd (ORCPT ); Sat, 11 Mar 2023 12:33:33 -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 C484329410 for ; Sat, 11 Mar 2023 09:33:22 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id s11so33017031edy.8 for ; Sat, 11 Mar 2023 09:33:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556002; 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=N0eIoQUlzBtNWdRZyomXaxMeOe08r5W6w3hU8zY2eLk=; b=jQv/WlnODqsuHQabO1Micpq/pDWNovtU717/W3OPhTC7u6X2YK4ju3WLG6Dm2OWE1v pMN87UD+/bZt6J5qcdcLAtM30x0ExopjeMuP0dvT7u7VCie9RtQLTKSIEuWWVaDUdvJh AYvwEgUM5QDD3GArtIZvjbEj3KPJWwzHEl/Aa0GzUjLP3DlqbkQXnHkegC9HSFMWaorc UWoZ+l9TcZ+pzB/pvnati+hCDNrdfcFMgj6Y9pqjBjheJLgtrJJ4NBM9lJc9VWC3f8Kg yQXysQJfPkDAiJ2NqrSQtD32pdqe4mhGoetw0i3OUc30EoGH3NmEm8sn6cW2L2A11F8T sKJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556002; 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=N0eIoQUlzBtNWdRZyomXaxMeOe08r5W6w3hU8zY2eLk=; b=57IMINISNVdJlsm9psOdgqdh6I4tK3vItQg0mOiMlgQovOwCHDqE4b6pkmiOAt8CjE stdoDCniE/TQFOGsmW9vdXmRzf/JBzl7oKuzZhAfQlXR1X7JoA9/aC6pFdtnrSlTPj0E DXq5rGSSQ3cFfuJ1Y+4ReG+zMbw9EU2fZNIRdR/4bqe5hpO2F6WQR/duruk+285kdjb7 cJlv+8xVo9WzpsUHg4J84JknYMQiQeo1J+YHrQ5DdPtkvvoetRZvSFsUv6sfNK3plPoO zfU9fYGk6p/fvDmejOWaBHFTJQA6gF69lT+lUSD1A8fThNgH14uFc2m1ocTUpAAlmFBh 6ZtA== X-Gm-Message-State: AO0yUKXacZ2UdS2X4cRkczhL6pliduh73/6pfBIMpn4/+u2ZHd6vfyzB Hy+oRRWF2jmeLw6o7oaCXxaH6A== X-Google-Smtp-Source: AK7set+Gav2lc+k6TaNhMqr6MQ7LBRUpCtyMan24OMdeglwwbEjp77cTDzo8yi4QIiHgdjmq562JTA== X-Received: by 2002:a05:6402:384:b0:4af:6aa6:12d3 with SMTP id o4-20020a056402038400b004af6aa612d3mr23926913edv.40.1678556002238; Sat, 11 Mar 2023 09:33:22 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:21 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 08/12] net: ieee802154: mcr20a: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:32:59 +0100 Message-Id: <20230311173303.262618-8-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/net/ieee802154/mcr20a.c:1340:34: error: ‘mcr20a_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Acked-by: Stefan Schmidt --- drivers/net/ieee802154/mcr20a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/mcr20a.c b/drivers/net/ieee802154/mcr20a.c index f53d185e0568..87abe3b46316 100644 --- a/drivers/net/ieee802154/mcr20a.c +++ b/drivers/net/ieee802154/mcr20a.c @@ -1352,7 +1352,7 @@ MODULE_DEVICE_TABLE(spi, mcr20a_device_id); static struct spi_driver mcr20a_driver = { .id_table = mcr20a_device_id, .driver = { - .of_match_table = of_match_ptr(mcr20a_of_match), + .of_match_table = mcr20a_of_match, .name = "mcr20a", }, .probe = mcr20a_probe, From patchwork Sat Mar 11 17:33:00 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170919 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 1F991C6FD1C for ; Sat, 11 Mar 2023 17:34:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229589AbjCKReY (ORCPT ); Sat, 11 Mar 2023 12:34:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60050 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230146AbjCKRdl (ORCPT ); Sat, 11 Mar 2023 12:33:41 -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 D823341B47 for ; Sat, 11 Mar 2023 09:33:23 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id x3so32951342edb.10 for ; Sat, 11 Mar 2023 09:33:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556003; 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=WPTGdDBL8b40RCmwJ/SrwI24KRXn2ceVZMzb8HuniE8=; b=RMJAnx3hUX085h7uK4IIPYlR6BkBWKb5DISi3/TVx4WOj/hDyJWkXczuc21LYAj0bi JFsb8UepMLGx27vo9e0YBpvvBVNLE7TOTPUeD+QnrUhpEc4E9YNnxBxfUnxS8L+6zYee /1ZtE4e0/oDtGyVdDMZRk6nhskr6FtM64OeH08pmk7ebmJFsWegZOBmtoEmFmhD5MCyW 07DkfNibueSpCDZXxY2zE/1f0qn42HXUETAdmSiF6YY/aFy+FXCS5jQWLdEerElZf/MH KrfpfAWWtlmEXKFk8G+lGrsf/m6qj4IFk2p5/pZPJX9PcOflu0mYW/Q39HydYMdnWy4Y SGOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556003; 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=WPTGdDBL8b40RCmwJ/SrwI24KRXn2ceVZMzb8HuniE8=; b=B6YOrzSJcC9CwEEtlOupFYSf20zpVTxWWS2TFgfWSlPrmg/JmiE/lt/Xr+vAVZTSW+ 05+I5l45E967T5kymxRAai2qsZ439m3u2oDT/K01WH0yJ4goI61fcAa35CnEtl9PU1fE z58wIIOPHtPOmszZ4PlPD4o+uNQpU+b+R1SjfiZZPfDpzdN9UKhRkhCcWXA1qwnzcwWt CPj3FpUjvXHCdmmOXQ8DPg5m8uSuSo88rLbyR3hT7p2lA7rjSmE1rqr404WYGRcjC3G9 FQ1YLHVNEQ8CzqbQEjVk5e18q1Xo6I90pWba4qLFbUlaGNfwyXQamONBz0SdhZQceFfj qr7g== X-Gm-Message-State: AO0yUKVM04XJEAQKmCOHX8ixkqAyfLpfvvL6FQj2+RSbP2oxEAJUr4Se +lBwrzlTWaxBMNx2r49vUvPFKw== X-Google-Smtp-Source: AK7set8LcQuAvpdmH4YyQTjnOklUnNTtB1MERqqJcYlJGMRUuqDen6lOHZY7vAex7tGlhIdRelAcYw== X-Received: by 2002:a05:6402:70f:b0:4af:7390:b488 with SMTP id w15-20020a056402070f00b004af7390b488mr27475483edx.40.1678556003405; Sat, 11 Mar 2023 09:33:23 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:23 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 09/12] net: ieee802154: at86rf230: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:33:00 +0100 Message-Id: <20230311173303.262618-9-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 will match mostly by DT table (even thought there is regular ID table) so there is little benefit in of_match_ptr (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/net/ieee802154/at86rf230.c:1644:34: error: ‘at86rf230_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Acked-by: Stefan Schmidt --- drivers/net/ieee802154/at86rf230.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/at86rf230.c b/drivers/net/ieee802154/at86rf230.c index 62b984f84d9f..164c7f605af5 100644 --- a/drivers/net/ieee802154/at86rf230.c +++ b/drivers/net/ieee802154/at86rf230.c @@ -1662,7 +1662,7 @@ MODULE_DEVICE_TABLE(spi, at86rf230_device_id); static struct spi_driver at86rf230_driver = { .id_table = at86rf230_device_id, .driver = { - .of_match_table = of_match_ptr(at86rf230_of_match), + .of_match_table = at86rf230_of_match, .name = "at86rf230", }, .probe = at86rf230_probe, From patchwork Sat Mar 11 17:33:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170920 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 ECA3DC6FD1C for ; Sat, 11 Mar 2023 17:34:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230243AbjCKRe1 (ORCPT ); Sat, 11 Mar 2023 12:34:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230250AbjCKReG (ORCPT ); Sat, 11 Mar 2023 12:34:06 -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 847DB301BE for ; Sat, 11 Mar 2023 09:33:26 -0800 (PST) Received: by mail-ed1-x536.google.com with SMTP id ek18so1900113edb.6 for ; Sat, 11 Mar 2023 09:33:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556004; 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=7jJaYEyuuO5/7ZmBgza2JAkACKERJJ9QG1PA2csTvP0=; b=nHDAc+H0npIh3vNJGeXviuEBpr+1PK07dBrn05EJBUvz2aFDMgJvOjGJhwJ9LGamHz JPRD0Qb8tsb1S9PolfMXoljCE/2hA+C7FdiAGb7bOL6xQLuew8ApejQSHL7of3r2k3uD qK5TwReucG8XzqIaJZuWdsTWvtouWPD0GzHEOy8wh2MPUi05s+6ACQxR2ezI1T9bsZKO LIcnlvavkjOzOPsKSD5UU5of0tR7Jf0OFrPz6EWp3ZYdyW2KyiOPQFGgyzIr+1hI6mo4 oVrQ/oE8Gc1Lp8IqRnERs2I/0QdhayI9u0T/gXiWG3FOOQB24F32ZuC5aTdKuVBuX2td iM9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556004; 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=7jJaYEyuuO5/7ZmBgza2JAkACKERJJ9QG1PA2csTvP0=; b=bAaWedSb/MTNwsb/24XPHKGC1lG0WAo9cYVBqPWwrzjeYkehvPH+f3eEeuDVzR6nEz iRE8EuV9MJMo3u8/+u4Br1S663XAwDslOg2LSbTSqR4L9zV9PvaBU13GffXorKYLHoD5 PIxTDxlSEKx+fELS4HDwizpv1AFsSRCP/cjOkP2xh814dYr2tzviRoehxcM0D5ijuoO9 GsfSSDB6O9D/bEljEaAw3mtVQ2BSHYODBspNGqXQFZiCgqvoFc/17VXcRBm5osJEbpOp bgfaGACjHnsrDacJLkZVxCJ92Yf4wECLdm+FkR3E7vbES1vTk0wl8KI+sapsQlYVLbL5 09lA== X-Gm-Message-State: AO0yUKUs2K3HLDzehj2NxXWKvdXGS1KVHYmVF6TwcM0KGz2o61FxxXiW BmXuZhjod6rEs91metziltbXdg== X-Google-Smtp-Source: AK7set9vWz++lxxJIbYAQ4X5NHrLZPNd1F+ADuCr+5KXfAjrxgYiw7uxgr7b8z1+/jim/f76Mp3bQQ== X-Received: by 2002:a17:907:6e25:b0:878:54e3:e3e1 with SMTP id sd37-20020a1709076e2500b0087854e3e3e1mr35447489ejc.73.1678556004615; Sat, 11 Mar 2023 09:33:24 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:24 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 10/12] net: ieee802154: ca8210: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 18:33:01 +0100 Message-Id: <20230311173303.262618-10-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 might not be relevant here). drivers/net/ieee802154/ca8210.c:3174:34: error: ‘ca8210_of_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Acked-by: Stefan Schmidt --- drivers/net/ieee802154/ca8210.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index ed6cb79072a8..65d28e8a87c9 100644 --- a/drivers/net/ieee802154/ca8210.c +++ b/drivers/net/ieee802154/ca8210.c @@ -3181,7 +3181,7 @@ static struct spi_driver ca8210_spi_driver = { .driver = { .name = DRIVER_NAME, .owner = THIS_MODULE, - .of_match_table = of_match_ptr(ca8210_of_ids), + .of_match_table = ca8210_of_ids, }, .probe = ca8210_probe, .remove = ca8210_remove From patchwork Sat Mar 11 17:33:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170921 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 50978C74A5B for ; Sat, 11 Mar 2023 17:34:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230326AbjCKRe2 (ORCPT ); Sat, 11 Mar 2023 12:34:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230249AbjCKReG (ORCPT ); Sat, 11 Mar 2023 12:34:06 -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 846BA24CA2 for ; Sat, 11 Mar 2023 09:33:26 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id k10so32933908edk.13 for ; Sat, 11 Mar 2023 09:33:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556006; 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=2ChsQRqVj0jyB/G1Crn3NbUNgDqSBdOpogFcEWxoqlI=; b=yFfRvTUq8NMpwBDMW7UK/XiLFl9kjGuyKMU6qYLCRLZ9FY/bH501DF/wQ6yDuxUdQQ WPYXmfNDCwgWk05x6qTaOos89AIeUap79eN5mHNBafSOIcuSdFWc06UCsp42sZRdl2Dd 0JzSXMWgCjcC5bNy0k4naTtar8G6ntG0iQKToYtM8sIkSM/Y9NmSmvK4P3EpPAr+X3s8 bWZMfAHe3MCjtegO/sEEKBtn4iL07KcXwonsyQJizBKHQqA3Wb34JH/EHU+QQeQbB+Aa airUXqwZDu7x3L67M26ZllM2/9sC8+K3PoPtKHjYzcVxpM/eRRU67V1AztMmTjdWL0E2 G4pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556006; 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=2ChsQRqVj0jyB/G1Crn3NbUNgDqSBdOpogFcEWxoqlI=; b=vd6BqWLW3foHBu8mByEohxOHAoDNiUhZZy1eDKwgwWQ4TXUZuFq5Fg9fusIIa47hze 6nuVAnXiobS6Ela+ikQo0Wzjj6MpXviAvvyH3HljdD1gP/TsoWDz9PAnuLPvb5t5CjT8 u9IredImeTPQwR6hAwg+qLwuM91V9wRtnhv8ZbUC8s4t1A/uI0dJREt43AUngAXuP/a3 bifBB3THDuJiCxl6tOjRxOG/RXdgVnmLuh/l5aQ81l3gcr4p+FfaTqXsSO3qT+H7Etrl Dkoun+Jj6HqbUSM8E2egadHPCy5l59N62Xo6vVXiOVQre7LlP8FLKVXo7mDoURspMv4l 2cVw== X-Gm-Message-State: AO0yUKXLvIz/uTuWk1Kd6FSEVDneEW7vj2LGN5m7S4ifQODF2/F4uKtX +7vMlj/JhLUccMgq54Brxlou0w== X-Google-Smtp-Source: AK7set9pu+G41lQLLzsCDbrCUOAJyTJ8hQD32E3dD18LmZVTVZbRU/AI7oCy9fCGNZSx2Wh3lLlu1g== X-Received: by 2002:aa7:cf0d:0:b0:4bc:ab52:ac70 with SMTP id a13-20020aa7cf0d000000b004bcab52ac70mr25748060edy.8.1678556005934; Sat, 11 Mar 2023 09:33:25 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:25 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 11/12] net: ieee802154: adf7242: drop owner from driver Date: Sat, 11 Mar 2023 18:33:02 +0100 Message-Id: <20230311173303.262618-11-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 Core already sets owner in spi_driver. Signed-off-by: Krzysztof Kozlowski Acked-by: Michael Hennerich Acked-by: Miquel Raynal --- drivers/net/ieee802154/adf7242.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ieee802154/adf7242.c b/drivers/net/ieee802154/adf7242.c index 509acc86001c..f9972b8140f9 100644 --- a/drivers/net/ieee802154/adf7242.c +++ b/drivers/net/ieee802154/adf7242.c @@ -1338,7 +1338,6 @@ static struct spi_driver adf7242_driver = { .driver = { .of_match_table = adf7242_of_match, .name = "adf7242", - .owner = THIS_MODULE, }, .probe = adf7242_probe, .remove = adf7242_remove, From patchwork Sat Mar 11 17:33:03 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170922 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 AA6C4C61DA4 for ; Sat, 11 Mar 2023 17:34:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230331AbjCKRep (ORCPT ); Sat, 11 Mar 2023 12:34:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33692 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230282AbjCKReH (ORCPT ); Sat, 11 Mar 2023 12:34:07 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C1EFA5AB44 for ; Sat, 11 Mar 2023 09:33:27 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id r15so5842550edq.11 for ; Sat, 11 Mar 2023 09:33:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678556007; 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=bb45CXv6pKtdqYtvpQnbjuwacdqrOSlJTgeuRVg38GM=; b=sB0jHemmPnsrZbX5jq/nfP6dIGBR9zpynpPrwRAReydPckoMG1qUDHuOmjHsF+L+Yi FXvnMXmqpYO8E9fFXLywnZZ9EK8mFas/VyFoLkUHCJjZ0AxLPvCE4JBtcQY/at8B4Om5 YwgqAo06jMK7oETpOssxg2MS10wQE6UL4JdHzsxMgj22D5zMBqhhnUsYfGZf6SPx87jA r9dAOCCQs2chuoPJOnSSAwON5DqVa7Fd/1BSbw96vEw06+L+4SoRc3i1xCYmrpsODnc8 dWSHfPetw184oxgOPpb0Q5XFTIpZfWvrAciyNDeRwxZvrpKMGNeGZF9WDHSjCdcqq7Zr fRRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678556007; 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=bb45CXv6pKtdqYtvpQnbjuwacdqrOSlJTgeuRVg38GM=; b=SgYgaQ97ln8dhE5qk3WnrXNwufPxlxtzGgI+PEcpkmvzcnqkp1lKYNVAC/zH0VvF/0 ZuS5v9axEhLawNBLYoKxCnXwCQyd9a0sEqKdOVNMO9b4UWymVC1L2Uv10OHSA1AqTVZj niJGaOaozXIyp1yTJ34xT7HpXODEmR7n0J1qJrVUMjXCelNd2paqbIXObbhG/XdF/VJm iZW7XvDomxIAmMkMASkEedxInGItPWH/GWsqYjLpDuraMK5VkfW7taQAklxJBE7+FHtY d1e0T4IUwop3aEnk5GiUjPd0D0ravaWm8gU7GB+bBm3fJNaF3NWzZWMAvx/ifSzQuX9R gzrw== X-Gm-Message-State: AO0yUKVXPE8F8sldjb/4HHjpfGUffa/yYbaSJbWe5wn2Cl0GcTtUt+Mo km6K9cmD3H57OJkpupmDl0bWVQ== X-Google-Smtp-Source: AK7set++ux4zDvlZTZkBob7j+q8P/Nvl1U5PQw52g7pwTikQ/uSeogp80Ri1hXGWTgDvuE//f1qJ3w== X-Received: by 2002:aa7:cfd9:0:b0:4bc:403f:a7b3 with SMTP id r25-20020aa7cfd9000000b004bc403fa7b3mr5363100edy.3.1678556007257; Sat, 11 Mar 2023 09:33:27 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:6927:e94d:fc63:9d6e]) by smtp.gmail.com with ESMTPSA id k15-20020a50ce4f000000b004d8287c775fsm1440885edj.8.2023.03.11.09.33.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 09:33:26 -0800 (PST) From: Krzysztof Kozlowski To: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Hauke Mehrtens , Woojung Huh , UNGLinuxDriver@microchip.com, Claudiu Manoil , Alexandre Belloni , Colin Foster , Michael Hennerich , Alexander Aring , Stefan Schmidt , Miquel Raynal , Heiner Kallweit , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 12/12] net: ieee802154: ca8210: drop owner from driver Date: Sat, 11 Mar 2023 18:33:03 +0100 Message-Id: <20230311173303.262618-12-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311173303.262618-1-krzysztof.kozlowski@linaro.org> References: <20230311173303.262618-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 Core already sets owner in spi_driver. Signed-off-by: Krzysztof Kozlowski Acked-by: Stefan Schmidt --- drivers/net/ieee802154/ca8210.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ieee802154/ca8210.c b/drivers/net/ieee802154/ca8210.c index 65d28e8a87c9..ca1fa56cca68 100644 --- a/drivers/net/ieee802154/ca8210.c +++ b/drivers/net/ieee802154/ca8210.c @@ -3180,7 +3180,6 @@ MODULE_DEVICE_TABLE(of, ca8210_of_ids); static struct spi_driver ca8210_spi_driver = { .driver = { .name = DRIVER_NAME, - .owner = THIS_MODULE, .of_match_table = ca8210_of_ids, }, .probe = ca8210_probe,