Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3091948rwb; Mon, 15 Aug 2022 17:56:00 -0700 (PDT) X-Google-Smtp-Source: AA6agR7v1sMGSjiZbapXRvrsMtkGV1W3wBGgdjvt0iiwPlqTWfCo4eRyJeqRRL6NepBqzKKnkOSe X-Received: by 2002:a05:6402:25c6:b0:43b:7797:d953 with SMTP id x6-20020a05640225c600b0043b7797d953mr16634997edb.254.1660611360343; Mon, 15 Aug 2022 17:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660611360; cv=none; d=google.com; s=arc-20160816; b=bcnl6RRK3d1yjvsgDVj05AZuC5dqTWVQ4+nDw9SbnOsfd5Eha29y9ejFdhBzB0q0v5 JRDbvFFgg2vExXnsJv9v3lwqoQCYf+Z3hicr4POm45fsTQWtPCduFapv/8aobMYuxxFh gvl5pYeF0WNUNeJt9PnGAS/XD+bh4KSVvpoJj/S0sX56AlZeVp7MFfJHvHQieGH+g3Js TVGFWuFl31ydX7hFtvgoTXBieZl/mkXL8S49OMJLGOOPFvplKtuboPw9ewYEoo20y0ot lEPGJ82eIOuviE0pg/MYfyrkbkMcoGc38qhRX9B/nbroOqVWBqm7HVkFW2LW3lVllunE 0eDg== 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=W/SRbdyYgHe9S+fvzqAmNECxqBzzlbmEmF2y3BKyblM=; b=TMWW0y/+xnPMWcSOV5nPAb39uIC7uNUJ97holv93mTIyATbVUr/te56leBjvE3kkVJ jH/af943mrd1Kdq0VKSTG/duO31LZ5N/38wKa1ywhFICPhGMUQy8VvyR1/OLHkMGYXkj WWgUStpuSzCoCtDv+3EonEGwZ8fXQ3HHECr3f0qGC8rBco5P/hnDIJdZJVSkZK5wQwMc NyzcOUrmI3rgbweYXdRrsqxIn0CBoETTB1xt7hJ+jHdKjD6ETSn/JdT0uMP/qoldeuhm oEdVsG4JVCPR4cWkFZ34hz3rMURcabmO70KXZekCQyGtHJhdNUDymQ3lI5JNiJ6bQDTh dSxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=sHim8nfm; 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 e10-20020aa7d7ca000000b0043d708d50c2si8450996eds.159.2022.08.15.17.55.34; Mon, 15 Aug 2022 17:56:00 -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=sHim8nfm; 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 S1354387AbiHOXpD (ORCPT + 99 others); Mon, 15 Aug 2022 19:45:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354246AbiHOXln (ORCPT ); Mon, 15 Aug 2022 19:41:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E95C6433; Mon, 15 Aug 2022 13:11:24 -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 7B91D60DEB; Mon, 15 Aug 2022 20:11:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85DD4C433C1; Mon, 15 Aug 2022 20:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660594283; bh=o34sXTUOndZN7rms7dNvsb0g/+O2h6wCiBKKVS7Ego8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sHim8nfmBydjRI28isEKeC0ViG3roT5k6w7B2S1tdkkjpQU9Cc/LQnIX5ZwxdLV2K 79e2SjjvHsM/E3S6lNn3MposXO/3zErHatMow1VlPVpFVnfK4neRcjZzM7ZQGi/Sst 0P4n1hJasux2HlY8eE+i1CNpAF68EkH+ftYG5JTY= 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.19 0371/1157] media: atmel: atmel-sama7g5-isc: fix warning in configs without OF Date: Mon, 15 Aug 2022 19:55:27 +0200 Message-Id: <20220815180454.551441709@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220815180439.416659447@linuxfoundation.org> References: <20220815180439.416659447@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 83b175070c06..8b11aa8340d7 100644 --- a/drivers/media/platform/atmel/atmel-sama7g5-isc.c +++ b/drivers/media/platform/atmel/atmel-sama7g5-isc.c @@ -591,11 +591,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