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 DF94AC433EF for ; Tue, 3 May 2022 11:12:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234665AbiECLQQ (ORCPT ); Tue, 3 May 2022 07:16:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234676AbiECLQM (ORCPT ); Tue, 3 May 2022 07:16:12 -0400 Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 263A135A9D; Tue, 3 May 2022 04:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1651576359; x=1683112359; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=h3g8eorJz4802t5ftV/zPjq8HQXG/+FZUXPCQKtK8mQ=; b=SJ42f9krUSQgeRwqdVqIm/fThchC5gjV/2ZAGEPYhYSFRl8LZMaXWO/6 neiDq4eDyXV33FgvizKrzFTVEv8qLoqcjEQKXmXF3WeWjn7wo8B+W4tNq 0dSjwCPyGAlrzjlnibRRrzeo6KiYNrq4R3aRjDm7WStkDPvAcHTfUQGIt nqsTqQ3o+SkmeoN9sWNWGYtVIKykOJ9eGg/ikN450PtzJhor1SHaUuz+w rtoF+inYlLXxaCe0rA9oL+slh28Q1/kFcylhAvBAbXTsCSs9Xpl9lG6v4 y5zstw/ftp/n8yrX9pIqTnbs9ITTFhLiPPqXeqhxTmc5VX4rXoUrW/6mN w==; X-IronPort-AV: E=Sophos;i="5.91,195,1647327600"; d="scan'208";a="162129457" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 May 2022 04:12:39 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Tue, 3 May 2022 04:12:33 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Tue, 3 May 2022 04:12:28 -0700 From: Eugen Hristev To: CC: , , , Eugen Hristev , kernel test robot Subject: [PATCH] media: atmel: atmel-sama7g5-isc: fix warning in configs without OF Date: Tue, 3 May 2022 14:12:16 +0300 Message-ID: <20220503111216.54352-1-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 638af8da2694..0cbe84d05eb1 100644 --- a/drivers/media/platform/atmel/atmel-sama7g5-isc.c +++ b/drivers/media/platform/atmel/atmel-sama7g5-isc.c @@ -621,11 +621,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.25.1 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 11FD2C433EF for ; Tue, 3 May 2022 11:13:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=3yBp4atJ1LBkWoFOMn49P7vk1/GBy6xZ3ViyENuc7kc=; b=bfoUnMhHG6hW3v DfDWyGubKhssyTxCt9extlL+pwysOnR3RU6myyiMxFpzxIF2rNiliBrcjrmORdzu9kFVecK8i1mBs bE8kRbSJFgQzQOScakZiNaQwRagGfFdqdWJ9ttxtxQQ4Q7W7QnP3smDMms4TUaTrAH7TQ9NpC/uBK rCmbktCJsI3IxCVC/qYadlDGTmXojT0fDqZT8NYzumRtGIFyR/n9uqD0ecskJsV64MkxJ6MIRI3gC Skum97lrzb867vuLeopUyQR5RyAd9OEYditjckQ0lvOwDg2g6falMVEGlw4vKCqQxyiHa9T+E6u2Y ba72TPsZ5UDeatdJ86Gg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlqSQ-005Yte-Vx; Tue, 03 May 2022 11:12:43 +0000 Received: from esa.microchip.iphmx.com ([68.232.153.233]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nlqSN-005YsW-En for linux-arm-kernel@lists.infradead.org; Tue, 03 May 2022 11:12:40 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1651576360; x=1683112360; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=h3g8eorJz4802t5ftV/zPjq8HQXG/+FZUXPCQKtK8mQ=; b=BpIvXK2ywFyX1B0U0vPqFVepghmOhz9k6K9D/eFZd8sNPmwgZF4hD7BX 1C1A0EcNxS8yclX9z2uD6B/EDHqOKKXTOiyNgcZZ2Exf6u9MEPKq8kBNF HNd3g6C3WYN3KL0WW/FvP4gdWiEq9dJybzabsI2l7JnwkTq+cpRI7uWSS cl8MTue71L4k2CrnS3/PjE/HooW9PXYLHXW2VpeT6unnbZinfokVDvV3v ZKz15QzBZF8W18g1FyBMfwWTTNlPt0Uyx3upN7ve8yWO9ZQIa8d5SRUZv B8PCHug9sc6m/4EQ6xStjP226ul2nxVKa2wSg0vikLsRldgow0A8Ywpe5 g==; X-IronPort-AV: E=Sophos;i="5.91,195,1647327600"; d="scan'208";a="162129457" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa5.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 03 May 2022 04:12:39 -0700 Received: from chn-vm-ex03.mchp-main.com (10.10.85.151) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.17; Tue, 3 May 2022 04:12:33 -0700 Received: from ROB-ULT-M18282.microchip.com (10.10.115.15) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server id 15.1.2375.17 via Frontend Transport; Tue, 3 May 2022 04:12:28 -0700 From: Eugen Hristev To: CC: , , , Eugen Hristev , kernel test robot Subject: [PATCH] media: atmel: atmel-sama7g5-isc: fix warning in configs without OF Date: Tue, 3 May 2022 14:12:16 +0300 Message-ID: <20220503111216.54352-1-eugen.hristev@microchip.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220503_041239_538933_29C47EC3 X-CRM114-Status: GOOD ( 11.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 --- 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 638af8da2694..0cbe84d05eb1 100644 --- a/drivers/media/platform/atmel/atmel-sama7g5-isc.c +++ b/drivers/media/platform/atmel/atmel-sama7g5-isc.c @@ -621,11 +621,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.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel