From patchwork Fri Nov 20 16:21:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 329543 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 766CFC6379F for ; Fri, 20 Nov 2020 16:22:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2369C223FD for ; Fri, 20 Nov 2020 16:22:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="zKkQnsmw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729188AbgKTQWU (ORCPT ); Fri, 20 Nov 2020 11:22:20 -0500 Received: from mail.kernel.org ([198.145.29.99]:40306 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729111AbgKTQWT (ORCPT ); Fri, 20 Nov 2020 11:22:19 -0500 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F344B22269; Fri, 20 Nov 2020 16:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889339; bh=kDWYTEzSyPd1hDIkbd2Rs+DZbj+M61LYe2kWDDaSCCY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zKkQnsmwMXzf9Scyb5sPJAwuv7i6LiosuO6EMqlF1Ddfi2QfzfeSmiduYfSxAe72n 72Nme2pRfHAHtiPEb6FcOQsOYdMANOnWYyeAbUY3yteOz5nsbOUBErnm2RrkLnUBoh 0/kyr9mbk9BVmFxiH42QeSGOhOR8DZYo/lvaeoSE= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Lee Jones Cc: Krzysztof Kozlowski , Tony Lindgren , linux-omap@vger.kernel.org Subject: [PATCH 16/16] mfd: twl6030: mark of_device_id table as maybe unused Date: Fri, 20 Nov 2020 17:21:33 +0100 Message-Id: <20201120162133.472938-16-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162133.472938-1-krzk@kernel.org> References: <20201120162133.472938-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The driver references of_device_id table via of_match_device() so it will be unused for !CONFIG_OF builds: drivers/mfd/twl6030-irq.c:359:34: warning: ‘twl6030_of_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/mfd/twl6030-irq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/twl6030-irq.c b/drivers/mfd/twl6030-irq.c index aff2dfbf3bf9..97af6c2a6007 100644 --- a/drivers/mfd/twl6030-irq.c +++ b/drivers/mfd/twl6030-irq.c @@ -356,7 +356,7 @@ static const struct irq_domain_ops twl6030_irq_domain_ops = { .xlate = irq_domain_xlate_onetwocell, }; -static const struct of_device_id twl6030_of_match[] = { +static const struct of_device_id twl6030_of_match[] __maybe_unused = { {.compatible = "ti,twl6030", &twl6030_interrupt_mapping}, {.compatible = "ti,twl6032", &twl6032_interrupt_mapping}, { },