Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3124212rwb; Mon, 15 Aug 2022 18:43:47 -0700 (PDT) X-Google-Smtp-Source: AA6agR6tSvgR3a3j+++jYZJKknXGyRW4hypi1gvQc2o+RJ8o2TGbkmkPusdfwWO/64xhtm/CGipF X-Received: by 2002:a63:485a:0:b0:41d:ed37:d937 with SMTP id x26-20020a63485a000000b0041ded37d937mr16485924pgk.336.1660614226830; Mon, 15 Aug 2022 18:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660614226; cv=none; d=google.com; s=arc-20160816; b=YYvfFDSUFdM3lHFgEkkC8jInzfYkHdro1d9c/X4rLpWbLIW7+NuCtUV3WuMDrJXTjY d09tdItEhlmThYvBM85Ut+pZ94bI5gyVSMLtcB/xXrFWCjniffyTyGb6vR6ok0CZVVSE x4hD677JwUt/5bCLnIVeTt3hPWGGt+ErUAAqEBbG1DkQ3NK9lpnffYJzvY34nqxCxYyv mLSMjq3v/mxUxLQVDSrdg+ZMvI1Zq5s43YdeOHCCSXgOpMQa8n3hiijvsVDAg2FgQm6V +rBpB39olrYcfs5IdS/4znalBAdEKyZ9KXvThoiKEX3Yknt40/ObJqJsaHwHgKWapIOK 7wLw== 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=N3a/x3bDmrB8kncc3cy716NxUKS9HzWn7KYBvULjn5Y=; b=MQo+avcx0C/RKNeIT4wZWWLTRyZx/P8NW1A2Ju6h88fqm6XV4x3INVLNwSFyHaggZ4 8y+5gZWsdE/GzvaNu8WY1RpSkB0q+cce2I6yzZU8bR8HfjQohuzPsgyMOjBVmYbqcrEq HtBoBHrHefalijCr2NTgGuZLg1AuRNPcYVAUyT+eL+/yR23TPB48H6AH4EYv6kFF5sYr 8GFXxNW4YgnzkSSYfBuyNOk5gVh7sS43fVrtIvVP7aJGMcPS7Ozv2pBdrKNiZSs60QCm dCqfN4PlQB1pQcLVIeQw0Vjl72AhUB8PxS2E7gF4/roDQHM6fSoq0tu78NgW8tB5UAdu OX4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=b6mE249Y; 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 r75-20020a632b4e000000b0041d9a9f2e7csi12378490pgr.646.2022.08.15.18.43.35; Mon, 15 Aug 2022 18:43:46 -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=b6mE249Y; 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 S1357157AbiHPANH (ORCPT + 99 others); Mon, 15 Aug 2022 20:13:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1356941AbiHPADX (ORCPT ); Mon, 15 Aug 2022 20:03:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4263D16CCD8; Mon, 15 Aug 2022 13:25:07 -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 913B261093; Mon, 15 Aug 2022 20:25:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5DB65C433C1; Mon, 15 Aug 2022 20:25:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1660595106; bh=mNt363BbGutMZ6Z1x/izic53rXbcVevjrO2YbmfMRKs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=b6mE249Y0aUZ1F39Rko0G7Nq+EAoANxZe7rYMax2dQDC3T7kGLjYJfbsR0a7AaqZZ 3rkYTo+h3lIq0K5AN8gy9ZKb2AN42dHgA/KvDU8lv1RUjqFbSn3nTTeJaMnnOJdqap Wx7WM8KauVdUoUYzXpu5XzoaNQYisR24+Z87GZ90= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kernel test robot , Miquel Raynal , Andy Shevchenko , Vinod Koul , Sasha Levin Subject: [PATCH 5.19 0616/1157] dmaengine: dw: dmamux: Fix build without CONFIG_OF Date: Mon, 15 Aug 2022 19:59:32 +0200 Message-Id: <20220815180504.291639276@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: Miquel Raynal [ Upstream commit 7811f2e7fd6a30d96eaa1fccf57b07694a8cad27 ] When built without OF support, of_match_node() expands to NULL, which produces the following output: >> drivers/dma/dw/rzn1-dmamux.c:105:34: warning: unused variable 'rzn1_dmac_match' [-Wunused-const-variable] static const struct of_device_id rzn1_dmac_match[] = { One way to silence the warning is to enclose the structure definition with an #ifdef CONFIG_OF/#endif block. Fixes: 134d9c52fca2 ("dmaengine: dw: dmamux: Introduce RZN1 DMA router support") Reported-by: kernel test robot Signed-off-by: Miquel Raynal Reviewed-by: Andy Shevchenko Link: https://lore.kernel.org/r/20220609141455.300879-2-miquel.raynal@bootlin.com Signed-off-by: Vinod Koul Signed-off-by: Sasha Levin --- drivers/dma/dw/rzn1-dmamux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/dma/dw/rzn1-dmamux.c b/drivers/dma/dw/rzn1-dmamux.c index 0ce4fb58185e..f9912c3dd4d7 100644 --- a/drivers/dma/dw/rzn1-dmamux.c +++ b/drivers/dma/dw/rzn1-dmamux.c @@ -102,10 +102,12 @@ static void *rzn1_dmamux_route_allocate(struct of_phandle_args *dma_spec, return ERR_PTR(ret); } +#ifdef CONFIG_OF static const struct of_device_id rzn1_dmac_match[] = { { .compatible = "renesas,rzn1-dma" }, {} }; +#endif static int rzn1_dmamux_probe(struct platform_device *pdev) { -- 2.35.1