Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4443178imw; Tue, 19 Jul 2022 06:45:39 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sA7/HlRDFbCmiZ1LJnqxEdtcViyEdu/zhC//tI/MApvAnbcFA6pZN0wfsJue3yQ4u5+8Lw X-Received: by 2002:a05:6402:5289:b0:43b:69a9:38c8 with SMTP id en9-20020a056402528900b0043b69a938c8mr12574767edb.263.1658238339431; Tue, 19 Jul 2022 06:45:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658238339; cv=none; d=google.com; s=arc-20160816; b=alY/cKc/3LLyqATcTsk20PwsO2HsovGkDr3wrrWjG0yk3LJbwvk5B2cDZaFltYhkEE g55g60h/4hdEUsSMejDYx/c5OHE4joNHaOgiYj1WmNqzznAznyGTA/TlH5TmBIRkNagF bcsT9a0JDzpKtGR3YZnIA0A7YEel9Pm1UEHGOkfa2dKn64nyY7NzVRu9lmUhrk4JjLpC jeLq3lBn3j+9Hq3jJI+cYrAjqWYr1meBhgs1Xi978Ykjfs3dy+WahauNntiMfne+qBvH PntQW/x/5uopEn/hEociybuWzF03AjwHog8BHSw15e3FhiS9//r0vpXFyLI0MLDGwXhl r2rg== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=WPWpclBK29Bh3xWAn1ubaMTVDWSFfu4U/zpEjobkfcA=; b=v0o6DZqJtKReavM9CgfZqKrEmbOr9e9MAF9C/G2BdNcXT0QmHTe0pol/ryIXp7z2xo TgXamc+CUyausALO3SRCPX1uSUFQP6cWMoYpx0gGZxeytzfY/E6i2yZGA219o+26lVfo BazqJqZwcih09sgKGdEKyF+Hiq/N8KJ5xVQsLLvg22fSOtdsdy6tO+aMbwxlncai5k6I phpDjyq6C+9w1mvsP2ofLFlI/LrbW7/dsDO7benmVsAmdT0kitw2JmVuagCe8Nnp0tAv oQM9QEpu0uxhi6yDqBJBug35khx3A9pDUME8Imza8ytfdOTkD3j3IOfoz8fgTr4eSUXo zCUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lGy3EjwP; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a056402121400b0043ae18edf05si11158904edw.613.2022.07.19.06.45.13; Tue, 19 Jul 2022 06:45:39 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=lGy3EjwP; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239365AbiGSMp0 (ORCPT + 99 others); Tue, 19 Jul 2022 08:45:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241572AbiGSMoI (ORCPT ); Tue, 19 Jul 2022 08:44:08 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 086E383F08; Tue, 19 Jul 2022 05:17:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 3CC39B81B37; Tue, 19 Jul 2022 12:17:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B3DCC36AE5; Tue, 19 Jul 2022 12:17:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658233031; bh=V8Bnn0Qdmea87DKi19dp6Ps/3Mkn7B5N1/5lffCMd6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lGy3EjwPWLuH2L9p7LuvZiVZzL+FdeNv8eXLq6pHeBF+zYR5AfZl/BUX04hEYygp2 g1wOMrTmWdEaVcsxnub/a4PRmkpYxkBse8hiIreE0GC9oJdDPDi+RhvmfPIgbrUTaA QQxz3S8WNhn32iRgAcV6qPGRmSG1uLXm86P95G/A= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Linus Walleij , Arnd Bergmann , Sasha Levin Subject: [PATCH 5.15 150/167] soc: ixp4xx/npe: Fix unused match warning Date: Tue, 19 Jul 2022 13:54:42 +0200 Message-Id: <20220719114710.954356208@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114656.750574879@linuxfoundation.org> References: <20220719114656.750574879@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: X-Mailing-List: linux-kernel@vger.kernel.org From: Linus Walleij [ Upstream commit 620f83b8326ce9706b1118334f0257ae028ce045 ] The kernel test robot found this inconsistency: drivers/soc/ixp4xx/ixp4xx-npe.c:737:34: warning: 'ixp4xx_npe_of_match' defined but not used [-Wunused-const-variable=] 737 | static const struct of_device_id ixp4xx_npe_of_match[] = { This is because the match is enclosed in the of_match_ptr() which compiles into NULL when OF is disabled and this is unnecessary. Fix it by dropping of_match_ptr() around the match. Signed-off-by: Linus Walleij Link: https://lore.kernel.org/r/20220626074315.61209-1-linus.walleij@linaro.org' Signed-off-by: Arnd Bergmann Signed-off-by: Sasha Levin --- drivers/soc/ixp4xx/ixp4xx-npe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/ixp4xx/ixp4xx-npe.c b/drivers/soc/ixp4xx/ixp4xx-npe.c index f490c4ca51f5..a0159805d061 100644 --- a/drivers/soc/ixp4xx/ixp4xx-npe.c +++ b/drivers/soc/ixp4xx/ixp4xx-npe.c @@ -743,7 +743,7 @@ static const struct of_device_id ixp4xx_npe_of_match[] = { static struct platform_driver ixp4xx_npe_driver = { .driver = { .name = "ixp4xx-npe", - .of_match_table = of_match_ptr(ixp4xx_npe_of_match), + .of_match_table = ixp4xx_npe_of_match, }, .probe = ixp4xx_npe_probe, .remove = ixp4xx_npe_remove, -- 2.35.1