Message ID | 20230311173303.262618-8-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 v21csp380338wrd; Sat, 11 Mar 2023 09:39:42 -0800 (PST) X-Google-Smtp-Source: AK7set/b1zbHEGvF4CuR0u9Ac55AHOLDYEkl+GmW5k3q1Wb6f+dcLO8N7olEPvCZNsIsoTi4qmRk X-Received: by 2002:a17:902:e54f:b0:19c:b4e3:c65b with SMTP id n15-20020a170902e54f00b0019cb4e3c65bmr33927072plf.8.1678556382650; Sat, 11 Mar 2023 09:39:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678556382; cv=none; d=google.com; s=arc-20160816; b=MiolVXeOmGkRlXaIh8ub1RQ687TNlH2lydFvE2r/0ffTHCAdevbF50b2Kvt6xqhsGi SlkpLj8lTER46K+7Oc535WD9qo1J+tcD6Y9nodBz88Lm7VTPXeuYlvab5IHO2ckvnXU5 YkR1ka5fWMY6ZTwsIPTOq4H3k+htTKTQgIwq/Qh3iIlBN7f2C/Th1X0D3aU8s6pDupaZ gz+U5obCKHDDxCkQ5CbquO1dDVzfhJ3wLfVyZjBXqVb3zF07GNj6FLT6kjlFoBT206hs 3IAkf+De0uRGOuVfkRjsLKrPBs3jfKDzTMS1kX+rEgCTQwCNt2ter7l937Y2CXl/NeNY LVvw== 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=N0eIoQUlzBtNWdRZyomXaxMeOe08r5W6w3hU8zY2eLk=; b=a6kOmryV5YkU4rrVGgdszvnvj1HQDj1swOXwkapvE4CncCWiUeYredA3SVr2ApGoi4 e43K258JnqG6UHXh275zT14hezwJBZWhZgqOvRs1BL14uutTLGkQd7QyT7Jr+e1ivP7M QagEUo3JGfaZU5ij3CMAZO1ByIIcRq/FqX6+dIxkANH5CX0324bPfK8SiX31LqfGQ2RH dFfQ6nf/lqB8iPNLbp8r/ELRkA1tXkQBuOj3BVIEmOAawoMSs30NTJmdU+YXYbKllXD4 Y0QBzE4fkeq3RjsKWZhbLZoULcO+XgxV1zqydl3mJD46fTdxNZzHgnx1zfHddB1kbVKN vI8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="jQv/WlnO"; 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 kt6-20020a170903088600b0019894a59be0si2562820plb.566.2023.03.11.09.39.30; Sat, 11 Mar 2023 09:39:42 -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="jQv/WlnO"; 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 S229712AbjCKReJ (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Sat, 11 Mar 2023 12:34:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230173AbjCKRdc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 11 Mar 2023 12:33:32 -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 B3A172B62F for <linux-kernel@vger.kernel.org>; Sat, 11 Mar 2023 09:33:22 -0800 (PST) Received: by mail-ed1-x534.google.com with SMTP id r15so5842065edq.11 for <linux-kernel@vger.kernel.org>; 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=PAz0+i1F3h4mIlug94Lt759rYgnnFjqTIfmUOLRK6Ce2fnlEAA21jP9AZt8Rw4bTJN cfMjd3u6VhmL7Ddiv29fDte5NeZZ3/nHcDGIBH5KsbF/EIatAv2fbLEQ56oa3QxZZ6uH gL/F1VuDEOEawQ++KoDRQ43GLRYO1JoMKyvGTMtjr+b0ca5NQs+/A4pztjmMHJZcjCTs 8OOTKV2HWo2JgGW87KmOA2ZTVxjdSOPpndOXnEvFHjzbV6KpbRQFmhjovD9eiHxReAMD cwT9H0wTEzyqhfj36sdUB4YJGRKZYEsbN13aODve1UXRp4l5o5c0pqFf4TBYliWawoVz gYsw== X-Gm-Message-State: AO0yUKUkrsjyEVYbMPvmL0JzUZIWmSoXHmPU1EuHP1WI6VrPT6Q6b8cZ 6mAcoyMkfJFE6ePqcxRPn3n3QA== 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 <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 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 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=ham 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?1760093937135499240?= X-GMAIL-MSGID: =?utf-8?q?1760093937135499240?= |
Series |
[01/12] net: dsa: lantiq_gswip: mark OF related data as maybe unused
|
|
Commit Message
Krzysztof Kozlowski
March 11, 2023, 5:32 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/mcr20a.c:1340:34: error: ‘mcr20a_of_match’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
drivers/net/ieee802154/mcr20a.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Hello On 11.03.23 18:32, 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/mcr20a.c:1340:34: error: ‘mcr20a_of_match’ defined but not used [-Werror=unused-const-variable=] > > Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> > --- > 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, Acked-by: Stefan Schmidt <stefan@datenfreihafen.org> regards Stefan Schmidt
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,