Message ID | 20230311173303.262618-4-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 v21csp378815wrd; Sat, 11 Mar 2023 09:35:02 -0800 (PST) X-Google-Smtp-Source: AK7set+XsJs304M5Z9RVXWKJbCnJ5PAQtgbbl2fU0fLSnujU4Sf4af7Nk0DFI7RjmxTzebuRieY8 X-Received: by 2002:a17:90b:4f8e:b0:237:f925:f46 with SMTP id qe14-20020a17090b4f8e00b00237f9250f46mr29979649pjb.24.1678556101826; Sat, 11 Mar 2023 09:35:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678556101; cv=none; d=google.com; s=arc-20160816; b=iqOEYPULaI9T8ejqlweA7qTY031hGXaoqtqjnFTHMQ+sh93x29ZzBGUFQ3NqJavKZG In4C7XqTKbEAjyHbpiobxeVNGIL82Jzz1mbuo1zFQ8UevSSXXtAGC7nrO7i0xd7RtPVJ R0ZXtsHNkH6zRYqYglrTOOiNE4JoBKh/ZzT+V4rFjmrCjmUz4im6QMjUtKppSMT8IwW3 L+qidqFoynz+Nxgl4hmrAFSXbMm+GqK3cXSkhsjpVci6uuBxUx78xtOq24uwz3Jwxnm8 SeGv+wY3elJ04FxNAk2Iy2fStwnsHM8AaUI/7i65aJiYcHiZFY/V2xsJ47xoXJ6mibAn I4+g== 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=cV5jhwqAFb9J/sgkVfjUP7KhaalS+CKZT6hVt29t4R8=; b=BUoZxFuIrUWkWpP5yKQYYYBtAPan8JwS1kuKQyjWIxSxkAc/VwpD2fOwpqWM6YZciL yzqZmFfP94FArFLrSEniiQ3u0eOPQxew7bmuoYX5yOFJjgXvRcw868OwTY1KSeqa7RUe vdccUa7ySPKbI7gW7ZibXPUv1XrpU3nFC6QO+0MneEBiL3OrPQEX1TjIgTHkYsmDVY7s U7X93offJwbuwfa+qiX7J/4QbzlrJscMI+wig6U/oykTiQ4OVFxle2eOoR28rfczh8WB CZkaaar2A5UGSw1SqWyWjGd+2cvxcnD2ZObAIoal7W7cQPCOjHqayk3kGBEKAqQEqrQG jShA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MYvjilFc; 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 v6-20020a1709029a0600b001926e41c963si2612662plp.31.2023.03.11.09.34.49; Sat, 11 Mar 2023 09:35:01 -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=MYvjilFc; 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 S230089AbjCKRdj (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Sat, 11 Mar 2023 12:33:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbjCKRd3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); 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 0B9A02917C for <linux-kernel@vger.kernel.org>; Sat, 11 Mar 2023 09:33:17 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id s11so33016512edy.8 for <linux-kernel@vger.kernel.org>; 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=4rYuA/KBVH3WOEbNt4kEOQstg8zR329Z9QFk7Zgv5Z3cYmYxtqwHStgnjuVh0mLZqZ +4nFKXGn0xMLEK72gVkzGkDrwOn08ljaTRmXo00fn6/JT8XQSJE+Z+eLPXsZBih1Ag3v 2lZQyAZx7oYdK+4QgHmPYe+gnI2wI72fKBGfdq53gA5TgHE1hAJaWjywcrEjNvHu8NVc ZSqruTKCFcePKBi82jhwpgiU57NsiXEjLtWNy7FgnAYKUdbdjsi4YjR/EiUDdrXVSRXH hkYEOJyU/YhST4YshVOgKxDepLGwaSgQDRmtlCqC+v/qk9Hg44RD6cFxWbplCUNRShT4 VBGQ== X-Gm-Message-State: AO0yUKVIajyl624lkEHyWoQKjMPJiBTEwdgNcvcs3ieI/lJcqTk7NGXS ALjF0fnJ4Fxm5nusxBVYIxYWWye7dbmbWscEB6o= 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 <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 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 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?1760093642996765042?= X-GMAIL-MSGID: =?utf-8?q?1760093642996765042?= |
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/dsa/microchip/ksz9477_i2c.c:84:34: error: ‘ksz9477_dt_ids’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
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,