Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2928471rwb; Mon, 15 Aug 2022 14:14:05 -0700 (PDT) X-Google-Smtp-Source: AA6agR6YEsO++Vdab6dPJ9G4mYwCagDkqmAae6rL/Fr3BX/DuSNCFXtJivXT68ZCb17L2FBdkJ8y X-Received: by 2002:aa7:9f1d:0:b0:52e:2401:e630 with SMTP id g29-20020aa79f1d000000b0052e2401e630mr17741549pfr.18.1660598044989; Mon, 15 Aug 2022 14:14:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660598044; cv=none; d=google.com; s=arc-20160816; b=wqcawRfg+MwKtOwXaor5gW1Ad7mNKsHMj88cY6UF21S5qDxo13wRdhHJ7t4cqOu3q+ MXVjKWL+d8uZjZpEeCbIcz5sbULV942RcS6j662aOd7/0i+D0YMkqOJ097RbsaI7wg9K Kd50i3O2D0sZjUsTJys6TGuUovEGKzXXJGn6uhBfzan6gZRv9ik5+CvDc3zH6fqAYbo/ Jntl5zLVnuba+0r2tIq+J9GYqbJIm7Rbfl+kE5cU9UdX+Yf25ivT5I9yQGHGLFLnB8B2 HFg7juQGe2LAYPys7k9ROK02s3mc+uxWjFg9FW72m73Ql8qpV0zyoknISUwAYqhiM2K9 qrVQ== 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=DELHKghuCX12bni13yFrPNQnGHmk9F2ZfnZ8cnMPzeQ=; b=SmwmrgqT7Z2sfHbf53J4V5iKNo6ifSnX+uoym2J/B3WjEUCzRtKoo6prgP9qLkT3+Q FqZp+YRE0XkWFiBfisDTw++8iIOyzIs0Jb7CzseS2o0SIQvsP4OTfWHfp+6zLJfvNwaH 1wQsUxsYHnY19JwlS3cFCN0tc8H1an5Zdbaic5U9lpp3OSHWxwADIH9/M+fWtDikobKX DGVVnosq408NV2oZj0QgukJMV26P81AfadIb5/K8Bb2830usoPXEB38czyB6vttwp+X2 F+tq+mf+tgRDcQmwoT+J1WxspJ0//eUgmGHmaCWcBghnAgrVEjgRfzfNvPQO/hrgZXQv jVKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HaEyb97X; 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 t22-20020a634456000000b0041a03c39d5csi11439577pgk.696.2022.08.15.14.13.51; Mon, 15 Aug 2022 14:14:04 -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=HaEyb97X; 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 S240191AbiHOU6K (ORCPT + 99 others); Mon, 15 Aug 2022 16:58:10 -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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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,T_SCC_BODY_TEXT_LINE 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: 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[] = { ^ 13 warnings generated. vim +/microchip_xisc_of_match +610 drivers/media/platform/atmel/atmel-sama7g5-isc.c 609 > 610 static const struct of_device_id microchip_xisc_of_match[] = { 611 { .compatible = "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/media/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 = { SET_RUNTIME_PM_OPS(xisc_runtime_suspend, xisc_runtime_resume, NULL) }; +#if IS_ENABLED(CONFIG_OF) static const struct of_device_id microchip_xisc_of_match[] = { { .compatible = "microchip,sama7g5-isc" }, { } }; MODULE_DEVICE_TABLE(of, microchip_xisc_of_match); +#endif static struct platform_driver microchip_xisc_driver = { .probe = microchip_xisc_probe, -- 2.35.1