From patchwork Thu Oct 19 18:23:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 155675 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2010:b0:403:3b70:6f57 with SMTP id fe16csp573633vqb; Thu, 19 Oct 2023 11:24:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH3XUcbqNud1PEHRlJRti8DZTgbRt7NTZLgb/8vBv6H69KAobMaVTTIprRyd47oyC8dLkZg X-Received: by 2002:a05:6a21:3286:b0:16b:cc6c:d728 with SMTP id yt6-20020a056a21328600b0016bcc6cd728mr3396933pzb.44.1697739845775; Thu, 19 Oct 2023 11:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697739845; cv=none; d=google.com; s=arc-20160816; b=PmNKRa83akBS6f4StUKdQUJWL+nGuhj6BBfFBUl91H703zvah9Cizj7mEniiClj8kY ZBbkMmyTMjTMUzFy7ZpAqUrCO6qKmqNpH2r1j82XqshBb4+4jM/Tntfp8jvYmOHCa8O+ d2miqRtZQR+XqCwHI2CLxr3UJpb3WT71adYOBmUNJfwU/PzfhVD7KmAI+nz2Er4+oKfe hL+DMQmI8WQxCTV6qK58fVCWUZHwJWlDbqcDhJz01R0KzRpTuXBU4lC/GpUNudEV1cTx Jq4upYxIOUG86v2lceqOc2ACPNHCthGMSVeSzt+aHr1k6q23t4BRmNdb6ldR4AYjCPSe pLWw== 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 :message-id:date:subject:cc:to:from; bh=fFkZbO4vMx0fKP71/OzTPXf/Ja62nWjUdlsbvXHUr7w=; fh=jBharJLOS88/9NUGYMw1jRWT3ifeJldRr4QUvqiR1m8=; b=EGmQX3xb0Q+7vf9gKpXR2JAEjBy9GKu7A0KFKUAS5lR1uuop9Q0corkFqx5T8/t+Mh 2M8E5DGW0xzoGynKg3G1iyak5VbLmVFVoyvkUVCFU/7X/QN+JsKOUlzwaZ5bXAO8mNH2 DQCQKUZv0zueqB7pJW0/eYx3HFJ4UmXdPt5So5tpwqc51glvJUjq1YMWKGKxr0ljt00v /vRvbI/3HQNrId/s/4pA/Xlo1QOzAeLDjW0AxhavfZ1m6/4v1SRgtAxlSw0fdN3R7pm7 H14y6wI8eSW4L/z1pnRL6QlOK3UVwcZ5Zs45KSiqtCHazNHgR6hf0ZeFk7sy9Nesha88 Hn+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id bw32-20020a056a0204a000b005ae39764b64si168281pgb.135.2023.10.19.11.24.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 11:24:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 6A6D681D55DC; Thu, 19 Oct 2023 11:24:03 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346386AbjJSSXr (ORCPT + 26 others); Thu, 19 Oct 2023 14:23:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346010AbjJSSXr (ORCPT ); Thu, 19 Oct 2023 14:23:47 -0400 Received: from mail-oo1-f41.google.com (mail-oo1-f41.google.com [209.85.161.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5CED2AB; Thu, 19 Oct 2023 11:23:45 -0700 (PDT) Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-581de3e691dso1786739eaf.3; Thu, 19 Oct 2023 11:23:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697739824; x=1698344624; 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=fFkZbO4vMx0fKP71/OzTPXf/Ja62nWjUdlsbvXHUr7w=; b=O5CI4X4eNiBBFgN32tJtQ+8i+LztCvXUGJ87N2IQnzQmTT2mpI1WUhVZCXJfaPGcI2 k/OTvMewjOoz6eHEvKhzIpIJWi2DRLGxpeBy686JZM1tVmABZnCeQ+PSAKFRClV4JYKR 5hR5anbkI0ywGpB6Cwy4TkcMy34WatGwOyI9+frxTOiC49j/ZmygPLuCxGCB8ze6ZzIx hHIk/KjG5gndvkMbRhitlWgLqbWHZMt4WQqAEV1CMZbaAkKL0nFwrpxFWEgNjr/cb9bn XtGY/eLWKjbUCfyNIuAPX/is4+2MDsku5AAvtj9iv6e97XPgTvj9H+hDjS/1fOTLqanY Elgg== X-Gm-Message-State: AOJu0Ywr0WyaXu+hNsMJzalyNEygXV2DeoMMFxBvX+qzs7SJeH0y0YyX DoRbOaM+jnfGDJwSezCyMQ== X-Received: by 2002:a4a:b441:0:b0:581:ed9a:4fde with SMTP id h1-20020a4ab441000000b00581ed9a4fdemr3537198ooo.1.1697739824538; Thu, 19 Oct 2023 11:23:44 -0700 (PDT) Received: from herring.priv (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id z127-20020a4a4985000000b0057e88d4f8aesm39553ooa.27.2023.10.19.11.23.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 11:23:43 -0700 (PDT) Received: (nullmailer pid 833096 invoked by uid 1000); Thu, 19 Oct 2023 18:23:42 -0000 From: Rob Herring To: Iyappan Subramanian , Keyur Chudgar , Quan Nguyen , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: kernel test robot , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: xgene: Fix unused xgene_enet_of_match warning for !CONFIG_OF Date: Thu, 19 Oct 2023 13:23:37 -0500 Message-ID: <20231019182338.832913-1-robh@kernel.org> X-Mailer: git-send-email 2.42.0 MIME-Version: 1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 19 Oct 2023 11:24:03 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780209256899297071 X-GMAIL-MSGID: 1780209256899297071 Commit b0377116decd ("net: ethernet: Use device_get_match_data()") dropped the unconditional use of xgene_enet_of_match resulting in this warning: drivers/net/ethernet/apm/xgene/xgene_enet_main.c:2004:34: warning: unused variable 'xgene_enet_of_match' [-Wunused-const-variable] The fix is to drop of_match_ptr() which is not necessary because DT is always used for this driver (well, it could in theory support ACPI only, but CONFIG_OF is always enabled for arm64). Fixes: b0377116decd ("net: ethernet: Use device_get_match_data()") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202310170627.2Kvf6ZHY-lkp@intel.com/ Signed-off-by: Rob Herring --- drivers/net/ethernet/apm/xgene/xgene_enet_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c index 56f2b3c229af..44900026d11b 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_main.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_main.c @@ -2155,7 +2155,7 @@ static void xgene_enet_shutdown(struct platform_device *pdev) static struct platform_driver xgene_enet_driver = { .driver = { .name = "xgene-enet", - .of_match_table = of_match_ptr(xgene_enet_of_match), + .of_match_table = xgene_enet_of_match, .acpi_match_table = ACPI_PTR(xgene_enet_acpi_match), }, .probe = xgene_enet_probe,