Message ID | 20230311173303.262618-9-krzysztof.kozlowski@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp379829wrd; Sat, 11 Mar 2023 09:38:10 -0800 (PST) X-Google-Smtp-Source: AK7set/ekfzl0C9qKo9Yn03Hrwhec5z6Hww+VVIsPkT8ofuacCykoRlwwXF/bHwRM6HiTYTMKOm6 X-Received: by 2002:a17:903:2441:b0:199:190c:3c0a with SMTP id l1-20020a170903244100b00199190c3c0amr35566867pls.31.1678556289792; Sat, 11 Mar 2023 09:38:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678556289; cv=none; d=google.com; s=arc-20160816; b=0Z5bsYc/7u6x/D767XSEeIO4HUte8sauEiKyHTK98+JK2K9zBJJpLVvXmNd/9I1aEd zrXPbTKA6S54WTwl7qBuLY5d9tQtRmbfkX1rtcU3m+DUvBODVcj/QBwi0RGXVZecT6A6 XuuV7V6kThZaQ61mOlBOyt/ZpGzdJtRgzrADFsBSt/o4mPr/G14d6T62O3Nlf2CwSOdj rl5rZTRvXytgSKv2B8qFAgLZNMzQy+653n0J91g6gvh4+BbkR4a6T68IW97YurVcOAOW JXe0DneqGYYBBBVYgClxCIhVwbmokj2Xt7tXzDetoG95ixmRAL/tNyXylIUW+7Xeg7BG BLNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=WPTGdDBL8b40RCmwJ/SrwI24KRXn2ceVZMzb8HuniE8=; b=bns3urDuNwTkWRoxysVluD5+IDC2RhQ4muAKmlEZaFsAPIP2UKfOARer6cKThzYRp3 dVHQUP5nU/FkcXV8TZ4wVpdUsBCmTJUNc6haXojd1/3vsLReaKRH4pOeMtdEtqdg9qSR xdMdCx3yboQwYiL8cX6PXbB+wpf05Zk+/k7SLkAePYDsf3StRbVfNo+F6SqBHLQKGpm/ rnckHIp9DvTIFgJ/UUx0MGtUvhKKrnGpyRNgr/ZMW/9sgIgqrBxkw6Rt58Lka7hzF4ze DRgJzXDIZ/zJFT2DIM10dnwkZo9ah4AvwvgBPMfJok1UCFcZUP6Sg7rgLJ+FMBoLgxAS vUbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RMJAnx3h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b15-20020a170902d88f00b0019ab35dddf8si2747623plz.323.2023.03.11.09.37.57; Sat, 11 Mar 2023 09:38:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RMJAnx3h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229800AbjCKReZ (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Sat, 11 Mar 2023 12:34:25 -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 S229848AbjCKRdl (ORCPT <rfc822;linux-kernel@vger.kernel.org>); 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 48901301A5 for <linux-kernel@vger.kernel.org>; Sat, 11 Mar 2023 09:33:25 -0800 (PST) Received: by mail-ed1-x531.google.com with SMTP id s11so33017151edy.8 for <linux-kernel@vger.kernel.org>; Sat, 11 Mar 2023 09:33:24 -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=ZuUjnOQ+ZlknAZ+jFHdirU5ZnGnmdWNUomHH/IpproksN12CDb/qZ3XdWNHhC0Db3Z KFqD3iqtxNdRxPprLT4wkKmwmjQThv827siKgU/3TrMCwLvn3yvQ/2pvK0XHrgc9gxk4 fsOG+DPc9wmi2uEiAZ89pIv0DTfTmnyYVVm8QZiVRoArdg7mEbbETNFh+8bR8JdTtmaq LMPobanV6ioCobYreYZOiphHxKcJOVTyGzMPaSIvLh0c+v1S4sxt+LNjXXuoLwHMFpQj zbLnx9PaWO4XWehGqHnJVonKCJcfPV9kUh6pr9Q1WquCF9a60icO6OtM3ffdsBXUJ869 Dbrg== X-Gm-Message-State: AO0yUKXUS4KpnhYp+NHKzNZJfSl17veX0YyeNDiwd78YW6CkLNLgM/H/ p59FUjsGigiZtYpshHgaj2/2lA== 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 <krzysztof.kozlowski@linaro.org> To: Andrew Lunn <andrew@lunn.ch>, Florian Fainelli <f.fainelli@gmail.com>, Vladimir Oltean <olteanv@gmail.com>, "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Hauke Mehrtens <hauke@hauke-m.de>, Woojung Huh <woojung.huh@microchip.com>, UNGLinuxDriver@microchip.com, Claudiu Manoil <claudiu.manoil@nxp.com>, Alexandre Belloni <alexandre.belloni@bootlin.com>, Colin Foster <colin.foster@in-advantage.com>, Michael Hennerich <michael.hennerich@analog.com>, Alexander Aring <alex.aring@gmail.com>, Stefan Schmidt <stefan@datenfreihafen.org>, Miquel Raynal <miquel.raynal@bootlin.com>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King <linux@armlinux.org.uk>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wpan@vger.kernel.org Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1760093840267060066?= X-GMAIL-MSGID: =?utf-8?q?1760093840267060066?= |
Series |
[01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
|
|
Commit Message
Krzysztof Kozlowski
March 11, 2023, 5:33 p.m. UTC
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 <krzysztof.kozlowski@linaro.org>
---
drivers/net/ieee802154/at86rf230.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hello. On 11.03.23 18:33, Krzysztof Kozlowski wrote: > 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 <krzysztof.kozlowski@linaro.org> > --- > 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, Acked-by: Stefan Schmidt <stefan@datenfreihafen.org> regards Stefan Schmidt
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,