From patchwork Fri Nov 20 16:23:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11921313 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=unavailable 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 AF917C2D0E4 for ; Fri, 20 Nov 2020 16:23:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4BC4D22269 for ; Fri, 20 Nov 2020 16:23:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="oQk4n6t+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730009AbgKTQXY (ORCPT ); Fri, 20 Nov 2020 11:23:24 -0500 Received: from mail.kernel.org ([198.145.29.99]:41684 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729999AbgKTQXW (ORCPT ); Fri, 20 Nov 2020 11:23:22 -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 A90952225B; Fri, 20 Nov 2020 16:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605889402; bh=b4u/t0Hst9rVcGF2Gll2KrBiXj/Rs/Ms1ZSr/qfr4Qs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oQk4n6t+bHcdcPjjQtvOOCwdEHG56qCd3TPvolN5j9amfJOg0ane3TwUS7DtOF8nV 9QJlK92mQxfXy1zpdd422CVQk/staQv8VJ+96ZENEy8keCi/5daF3c5D/L0LDy8ltO cv4KzWulDnaxZ2kpCFOPy4xGfMfHr9vS5QktGsFE= From: Krzysztof Kozlowski To: linux-kernel@vger.kernel.org, Dan Williams , Vinod Koul , dmaengine@vger.kernel.org Cc: Krzysztof Kozlowski , Maxime Coquelin , Alexandre Torgue , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 5/6] dmaengine: stm32: mark of_device_id table as maybe unused Date: Fri, 20 Nov 2020 17:23:02 +0100 Message-Id: <20201120162303.482126-5-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201120162303.482126-1-krzk@kernel.org> References: <20201120162303.482126-1-krzk@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: dmaengine@vger.kernel.org The driver uses a second of_device_id table in the probe() function by passing it to of_match_node(). This code will be a no-op for compile testing (!CONFIG_OF on x86_64): drivers/dma/stm32-dmamux.c:171:34: warning: ‘stm32_stm32dma_master_match’ defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/dma/stm32-dmamux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/stm32-dmamux.c b/drivers/dma/stm32-dmamux.c index a10ccd964376..ef0d0555103d 100644 --- a/drivers/dma/stm32-dmamux.c +++ b/drivers/dma/stm32-dmamux.c @@ -168,7 +168,7 @@ static void *stm32_dmamux_route_allocate(struct of_phandle_args *dma_spec, return ERR_PTR(ret); } -static const struct of_device_id stm32_stm32dma_master_match[] = { +static const struct of_device_id stm32_stm32dma_master_match[] __maybe_unused = { { .compatible = "st,stm32-dma", }, {}, };