Message ID | 20230311173303.262618-6-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 v21csp382301wrd; Sat, 11 Mar 2023 09:46:25 -0800 (PST) X-Google-Smtp-Source: AK7set/rZ6xUhFnR8inEE7f6y//PQH9mdctwQz1v4ue6E9xtyHk/eGEycgt26fFDmvWGjSKirphs X-Received: by 2002:a17:90a:19d:b0:233:ab9b:f86a with SMTP id 29-20020a17090a019d00b00233ab9bf86amr12874939pjc.8.1678556785361; Sat, 11 Mar 2023 09:46:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678556785; cv=none; d=google.com; s=arc-20160816; b=aLCsWHqY2tMv3qRrvru1ce4XoGHkeIBLEtJDR2c9m6bHN0R0yKoIjR2ObqYOzkrwt4 ftRMgBCIXB77yIp2nRYTi42DybguXOfZ4xdlkh3m39dWvxeLiJE0OSKeOJ4PAm1yPOur 89QK+fmk1H8hAXA8S9RHzscuPa8LNn+mDwVVK6djPEP6NCAOEd/rL/YBt5NInSCtXAmT Vg1Z6VUF8+5VofzwSJPnit8lNe3IoXWhXILvao/8+NbNs81I7+pZ99yWuKLBH7Aya0kU JWjrua9LgmtUPFt22CDVMhclv4URMBttRnQE9QJDqSxMoYxB2eraGckCvXJWS32NrdTx 7p0Q== 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=aXAmespG0M4hSiMCAu+5SVl3Gjs1X4fJ7l5m653N/T0=; b=LsEimY0vfc3OPuy1y6Au8wGdbeuPYQFuStI9zcv5mqwrALiIoHH/vFcGC+ObyVKsgW gFySWIllOwVAaXoz/gYBqDQUUzGFCsVJUKERxIfo6j7DPdeUuGdx7xXiovV6zD3VNiC9 L7eyJk2kSN0HSnOGu8L8IhG3IQ+H/aHA5GhS9tUTgV2PzBizm+xabg4yuUW6BYgq/MYY FyEde9amqgiCRgBC9Gc3w6mBNQ63PzP9kajuRlUWlGOpblfPehYRQZWT63+MViGVQ1ID VazlYI9t/69OJhZ518/UK+o4sMW7/eHxltuGz0C2eEMDwTRicZjfTdCE814KDw1HMpiJ rj3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=h61OLmcg; 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 nm24-20020a17090b19d800b00233dfb35a33si145005pjb.97.2023.03.11.09.46.12; Sat, 11 Mar 2023 09:46:25 -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=h61OLmcg; 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 S230229AbjCKRds (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Sat, 11 Mar 2023 12:33:48 -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 S229942AbjCKRdb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sat, 11 Mar 2023 12:33:31 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3747537540 for <linux-kernel@vger.kernel.org>; Sat, 11 Mar 2023 09:33:21 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id g10so4158421eda.1 for <linux-kernel@vger.kernel.org>; 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=zIKwB7rN6BK2o6ntqb63YKLfD9K/AbtE8qSUmQcVikPMMz3jTR19wIspyJlY8e7SRH HU62w7j6XPdz5qyZb9xr9ier3VjNTDgg2EKqXpLqNjOi3F/5oS/PH+lCgrrORmlAh9sL E6QlYms2Vt91RaMgBbuCS4cbwOU5Rvw5d4BdmndfWyJ8cONSyqrZ/M4//VtW/n3Jqbgb FNYYcaqJZRJQX4qVtESEKxajpfauZ+BtEAX1M1qGVpG7RHRBrujOaJbPjkQr6rTsZvQg foiXObvL+x4SWqo29jFpzjp9D7YvOyYrC7aYPMwboCoI2NFeQw5lUBEB8REDMvUIrSKF 3iAQ== X-Gm-Message-State: AO0yUKUEC1XoZgr9Kukq/CKvbGwsKe9fa/IQgdAnCd7Xb1EiGf+Axf5P rAm5d/HqtoNI2F6x6raguhcnEw== 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 <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 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 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?1760094359715054045?= X-GMAIL-MSGID: =?utf-8?q?1760094359715054045?= |
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/phy/spi_ks8995.c:156:34: error: ‘ks8895_spi_of_match’ defined but not used [-Werror=unused-const-variable=]
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
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,