Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp4374429imw; Tue, 19 Jul 2022 05:35:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vAxh0hARSK18wHA4GpCIFz36ORqBzsqYrG3y+yNSISy8s2eckw4ItdrKH1BDWFJ1SVrrJb X-Received: by 2002:a05:6402:2786:b0:43a:dc4e:ea63 with SMTP id b6-20020a056402278600b0043adc4eea63mr44662590ede.175.1658234131683; Tue, 19 Jul 2022 05:35:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658234131; cv=none; d=google.com; s=arc-20160816; b=g4JEVK7ZFkQ50n588FDZFfeAC0jxXavwzYmWQWEgHC+C/LGZARSwiBFmQSety9vr3z uzt6F08PrBYJuEk+2BHFzYjVKfmU+sVpvgDGp0SRwzXCNEBKi17xClWXcMJx9ZYIdW8i wuNyg3OBOllsoUiQix+B3gkT50cHCDHOjJPsiQMufc9hXxz0CYW602u4iyxZXIBC5iuj 5WALJwsA73Y+w0ZgZvZV5B1iPyt8NGotSdchjdeLX9uRMem1qI8mA0GwEOCa/ldPJ5zV mKTWT9L+j1wcwihIgIdt0wjlPfAugNUckbhfU9SOxaTBm8k3sDRx+EZ9fvW27uPHoFsl lZyQ== 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=5pHY586LSp3aiMd3hC16D5ZftWUbAgB2601rMD6Be7E=; b=L1+8P0lLB+uEjC/vR5y59k7JiHi3xctFOHQAMBJMg1s34qfFIanRjM8pGliKH4jykm pCHx/Rda8nQ96y5tvr/5ipFbSW0zVlUj5emF2SSDyXfXei/4FDkN5eP8iSkMpzAf2dsE bTk6r9wLFbH+iGwyRj4NY7XOAkZDX5MydlhAhdQAl5uS7IFuVNbv12rFfa4+rfhc4HFS zUEXNXYQXhwre1x/3pO36Q8GYfZgt4bONCFRC0ZWzN7X8j4/6zeIRk2wOwVNjvMjcBrb gwzPewjvuclmPW/YhnxkZl0KARBE1GRLr09SOSW/YxlhBLgGpUgfiEYQviAr2oMsnd8H f62A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=i2UQCDNf; 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 hp17-20020a1709073e1100b0072b2377bab0si22639426ejc.649.2022.07.19.05.35.07; Tue, 19 Jul 2022 05:35:31 -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=i2UQCDNf; 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 S237490AbiGSM1v (ORCPT + 99 others); Tue, 19 Jul 2022 08:27:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239685AbiGSM0P (ORCPT ); Tue, 19 Jul 2022 08:26:15 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80EFB14D1F; Tue, 19 Jul 2022 05:10:12 -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 dfw.source.kernel.org (Postfix) with ESMTPS id D5CC761632; Tue, 19 Jul 2022 12:10:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A43FFC341C6; Tue, 19 Jul 2022 12:10:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1658232611; bh=8UBj1z2lp/6daPvXBnEXV1Z/SWwo2LziTpTiD7CUaTk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=i2UQCDNfshLGYrrV6gqkw7pJssPUlCMyU0Sj5slIBIfLgyea0NBtfQnsVGxwjXQxK Xw2uuzmUeibKFVsmLW84smCf58A+Q7IHhmkGlG8dB471jCTiFFO9FAkByZWzSLoLXT Ii76itwqENfpNY1Yt87AQrfly4yDPBMGp5AX9BO4= 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.10 098/112] soc: ixp4xx/npe: Fix unused match warning Date: Tue, 19 Jul 2022 13:54:31 +0200 Message-Id: <20220719114636.308662588@linuxfoundation.org> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220719114626.156073229@linuxfoundation.org> References: <20220719114626.156073229@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 6065aaab6740..8482a4892b83 100644 --- a/drivers/soc/ixp4xx/ixp4xx-npe.c +++ b/drivers/soc/ixp4xx/ixp4xx-npe.c @@ -735,7 +735,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