From patchwork Tue Apr 19 13:36:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 564227 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 78894C43219 for ; Tue, 19 Apr 2022 13:38:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352542AbiDSNlR (ORCPT ); Tue, 19 Apr 2022 09:41:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352490AbiDSNk4 (ORCPT ); Tue, 19 Apr 2022 09:40:56 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 68BE53818D; Tue, 19 Apr 2022 06:38:09 -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 038E2616A3; Tue, 19 Apr 2022 13:38:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 90F89C385A5; Tue, 19 Apr 2022 13:38:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1650375488; bh=MZYlA7Z/cfhwWB+m0aX3wfxPDdGSvAoxapWbog01ZUk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MdZyrL2KRzGofp4P5QTIbBmZ0XyiPDEb8w8y28sLj+tarhQKLn07vB63wnc/YADun PU7PvbaS3DDxQTwk4r5YG2+bHNT4S4FLmZ/oPTK7Gd5u14hl/54byIoriPsb1/0/j9 B7tlavvL9imuJwBR+QRCpa1TkY5grKm440xc2QgNCXswxLctzeCsUmzlGTTgKIm64y deeYlDPZvYme04F6wXyybloglv6pE3/opuw9/Y/kzutWgv3lWUPl2TFn1k/LeqS+T+ pc0fhu1DxU6BEdl20vjgvKKR5517wr05DaOEJuhu+i3bk7HLcp24nnQYomoQZOSYSL c+2Hz7W+Q/R+g== From: Arnd Bergmann To: linux-omap@vger.kernel.org, tony@atomide.com, aaro.koskinen@iki.fi, jmkrzyszt@gmail.com Cc: Arnd Bergmann , Russell King , Paul Walmsley , Kevin Hilman , Peter Ujfalusi , Vinod Koul , Dmitry Torokhov , Ulf Hansson , Dominik Brodowski , Mark Brown , Felipe Balbi , Alan Stern , Lee Jones , Daniel Thompson , Jingoo Han , Helge Deller , Linus Walleij , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, dmaengine@vger.kernel.org, linux-input@vger.kernel.org, linux-mmc@vger.kernel.org, linux-serial@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, alsa-devel@alsa-project.org, Bartlomiej Zolnierkiewicz Subject: [PATCH 04/41] ARM: omap1: declare a dummy omap_set_dma_priority Date: Tue, 19 Apr 2022 15:36:46 +0200 Message-Id: <20220419133723.1394715-5-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20220419133723.1394715-1-arnd@kernel.org> References: <20220419133723.1394715-1-arnd@kernel.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Arnd Bergmann omapfb calls directly into the omap_set_dma_priority() function in the DMA driver. This prevents compile-testing omapfb on other architectures. Add an inline function next to the other ones for non-omap configurations. Acked-by: Bartlomiej Zolnierkiewicz Signed-off-by: Arnd Bergmann --- include/linux/omap-dma.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h index 441f5f0919c6..5e228428fda1 100644 --- a/include/linux/omap-dma.h +++ b/include/linux/omap-dma.h @@ -338,6 +338,9 @@ static inline int omap_lcd_dma_running(void) #endif #else /* CONFIG_ARCH_OMAP */ +static inline void omap_set_dma_priority(int lch, int dst_port, int priority) +{ +} static inline struct omap_system_dma_plat_info *omap_get_plat_info(void) {