From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E5726CCA47B for ; Thu, 14 Jul 2022 04:36:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237635AbiGNEgy (ORCPT ); Thu, 14 Jul 2022 00:36:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237508AbiGNEgE (ORCPT ); Thu, 14 Jul 2022 00:36:04 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2E47CF2; Wed, 13 Jul 2022 21:26:34 -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 0F62AB82379; Thu, 14 Jul 2022 04:26:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BF7E0C341CA; Thu, 14 Jul 2022 04:26:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1657772791; bh=8UBj1z2lp/6daPvXBnEXV1Z/SWwo2LziTpTiD7CUaTk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ra9EDOKPwLYGsIN7X37Z2EzDY/9X+d/Et2s5og7IR/HC1dhE4NlJ7VkSeZVaerwoJ rtn4fOjr9Np7iQd0+8ot9UVdJeHTcftCx1MXHO4J3wRz78PUs5q7M2d+AmtnujHxJD DEVcezxz59Ul0LpP7RZtCRqTE+0eb/sYOhJOHQyrwNBVbD3uM4ZdqfQAdPYIEUHZec xmrGVnDmdk/px02kd7jmDXesEnFAp/zpD65jVO76gaRhzFaCRhCyMcOKhzbzDLl+6z Lzv9QwfDMkBn7VE18ttNpxegL9zN2oGamXp3hkX1b1qsPT7gxOvgC0Rwx+fj6ccrqJ ND/7FJOYMpqkw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Linus Walleij , Arnd Bergmann , Sasha Levin , khalasa@piap.pl Subject: [PATCH AUTOSEL 5.4 08/10] soc: ixp4xx/npe: Fix unused match warning Date: Thu, 14 Jul 2022 00:26:10 -0400 Message-Id: <20220714042612.282378-8-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220714042612.282378-1-sashal@kernel.org> References: <20220714042612.282378-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit 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