From nobody Fri Oct 24 20:26:22 2025 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 49F49C00140 for ; Mon, 15 Aug 2022 20:58:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231553AbiHOU6N (ORCPT ); Mon, 15 Aug 2022 16:58:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347007AbiHOU4L (ORCPT ); Mon, 15 Aug 2022 16:56:11 -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 9A5C23C15E; Mon, 15 Aug 2022 12:11:53 -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 5ACE8B810A3; Mon, 15 Aug 2022 19:11:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0AAFC433C1; Mon, 15 Aug 2022 19:11:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660590711; bh=yoQg6NKdMlJWBXAeCm7pQmdhWY0gthNK7cvvUtgPvxU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HaEyb97Xx8tDya1NemuXuHw7u9z2tnzBiJ8tbwHY5pZkVUgA4SLUNwLCkpKcuxvqH oOPkKM+PTi5Dzvcmeo9Z53LbkPL2YHjjd3qv9UL9TWy5Ms4OajZW7PLOq2uvK8O0/L HzW/GVwqDL/W6Swu8G9RqoQ9At2PMcRgiRcnfqc4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Eugen Hristev , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.18 0347/1095] media: atmel: atmel-sama7g5-isc: fix warning in configs without OF Date: Mon, 15 Aug 2022 19:55:46 +0200 Message-Id: <20220815180444.139026910@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180429.240518113@linuxfoundation.org> References: <20220815180429.240518113@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" From: Eugen Hristev [ Upstream commit b2bae4b8e637dd751d27918a6b27bd5abcd08859 ] All warnings (new ones prefixed by >>): >> drivers/media/platform/atmel/atmel-sama7g5-isc.c:610:34: warning: unused= variable 'microchip_xisc_of_match' [-Wunused-const-variable] static const struct of_device_id microchip_xisc_of_match[] =3D { ^ 13 warnings generated. vim +/microchip_xisc_of_match +610 drivers/media/platform/atmel/atmel-sama7= g5-isc.c 609 > 610 static const struct of_device_id microchip_xisc_of_match[] =3D { 611 { .compatible =3D "microchip,sama7g5-isc" }, 612 { } 613 }; 614 MODULE_DEVICE_TABLE(of, microchip_xisc_of_match); 615 Fixed warning by guarding the atmel_isc_of_match by CONFIG_OF. Reported-by: kernel test robot Fixes: c9aa973884a1 ("media: atmel: atmel-isc: add microchip-xisc driver") Signed-off-by: Eugen Hristev Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/platform/atmel/atmel-sama7g5-isc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/media/platform/atmel/atmel-sama7g5-isc.c b/drivers/med= ia/platform/atmel/atmel-sama7g5-isc.c index 07a80b08bc54..e292a8d790a3 100644 --- a/drivers/media/platform/atmel/atmel-sama7g5-isc.c +++ b/drivers/media/platform/atmel/atmel-sama7g5-isc.c @@ -612,11 +612,13 @@ static const struct dev_pm_ops microchip_xisc_dev_pm_= ops =3D { SET_RUNTIME_PM_OPS(xisc_runtime_suspend, xisc_runtime_resume, NULL) }; =20 +#if IS_ENABLED(CONFIG_OF) static const struct of_device_id microchip_xisc_of_match[] =3D { { .compatible =3D "microchip,sama7g5-isc" }, { } }; MODULE_DEVICE_TABLE(of, microchip_xisc_of_match); +#endif =20 static struct platform_driver microchip_xisc_driver =3D { .probe =3D microchip_xisc_probe, --=20 2.35.1