Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp1269582iob; Fri, 29 Apr 2022 01:16:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxqmBqHeLlcVnTlcMooF5TlZiExCGOu502r988QulPCKIgsa901ipGYi9Zp3sRTwMT2IC6c X-Received: by 2002:a17:90b:4b4b:b0:1ca:bfdb:edce with SMTP id mi11-20020a17090b4b4b00b001cabfdbedcemr2594443pjb.85.1651220183721; Fri, 29 Apr 2022 01:16:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651220183; cv=none; d=google.com; s=arc-20160816; b=PIU0qrpkNRdti0ZdOyADbMFDXx6s6p0Gl04tr1wyj2DvjP1FPHgmwSwuan/AebWKEc 5WG+D63Gd77J5LlemGXAlVqW85O7A+SQUP1OxI/q2KjJKA3Al7vUG5gyfla4k4oLsvoi e66tfRFs1Ek7NG5K+WVy9OkoSq/JAubhF64IZhhpuUAcqiymeAl4XoxGMb6aIbaaVGyU 7iGPaafiOUhRUHvFc4o936TXs8pIJzIdjGBDIwRVT4TuAhZz5zqAMIQkJRtgV5Ctq8YZ J78dzdR9S0HBJ+CiL2PfWB6FZIq2QAP60DOpWXE2g85SJlIwR7UEbMrlDQIZeJ3Rs7A9 6Dbg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=O6gFmarVrelhE/+WxUjAhKlfEnM4o3hEnYrxNVturO8=; b=sK41WSjfGaCFpgTEwvdowKRWzzvs4fDTXVXH1fohGvxxHG5nUoMvnecD3OFWM849D4 G0W7jmXA2qWhkQSepPhtVRYuA0Gu04VPiglYNTIOkJwiZFwf61AE8qCT45/GmQ3Te8Rm eUJ1h1ukBx8CluaI+BQZCabtnEECpSd75rTHQcu91J3jjJdtSAhAPAkNYC2pzdHOzeR7 DJ2gUECYRqRfGD++ctTiDVVl5hKrB+h4s8p1Dk8szZnTdQVsO+4wYo5TsGhLKYdhjs3b rqXBdAjDLzTQq5mGq9SsqdChMpYUgAKTZjagP+D/Fk6pGpxjHkwvT1J5kLQ7HibQMSzq oJlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PMnGMBkd; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l4-20020a170903244400b00153b32092adsi7205691pls.158.2022.04.29.01.16.09; Fri, 29 Apr 2022 01:16:23 -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=@kernel.org header.s=k20201202 header.b=PMnGMBkd; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347408AbiD1NjT (ORCPT + 99 others); Thu, 28 Apr 2022 09:39:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42662 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347389AbiD1NjR (ORCPT ); Thu, 28 Apr 2022 09:39:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA8D442A33; Thu, 28 Apr 2022 06:36:02 -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 4C8A260DED; Thu, 28 Apr 2022 13:36:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12470C385A9; Thu, 28 Apr 2022 13:35:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651152961; bh=yIaVBevNnUct48c1FDbDUtaqNwTUvvToj1PXt1VbxdA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PMnGMBkdRsKJEoGLQgofnWhOiCqvLTEuwVgsYTALGgohsq0jhEv6labHfq30uHEau 5yAEwuCYfJ2ZLWRoHeWsEj8NRgA4h57+1ptZ/G8M+U1rgHNsludJNc6MesziV7DG8K dqW8bC5h4//uNSr2VWbQDF07r3t7GoajTJEU62fnrIpholeg4f3ZjJ+uRNnVwPZ+cb BOW2am2YKYPfPZ++7zHgEOQ2+BPoa2hFZCH3SuAloTEbKDxoUGD0mtxvGm9OJ/CPJU ZruEifKXb3QIYMm90nxkuzGoQoGFL4qZYtBNyW2Rgi4uocmMmUTvP+Bu1lReh2B7mU YfEkd2r5CNrPQ== From: Arnd Bergmann To: linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: tony@atomide.com, jmkrzyszt@gmail.com, aaro.koskinen@iki.fi, vireshk@kernel.org, shiraz.linux.kernel@gmail.com, nsekhar@ti.com, brgl@bgdev.pl, linux-kernel@vger.kernel.org, Arnd Bergmann , kernel test robot Subject: [PATCH 6/6] ARM: omap1: add back omap_set_dma_priority() stub Date: Thu, 28 Apr 2022 15:31:58 +0200 Message-Id: <20220428133210.990808-7-arnd@kernel.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20220428133210.990808-1-arnd@kernel.org> References: <20220428133210.990808-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.7 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 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: Arnd Bergmann One of my multiplatform patches went a little too far and removed a declaration that is needed for compile-testing the omapfb driver on non-OMAP1 platforms: arm-linux-gnueabi-ld: drivers/video/fbdev/omap/omapfb_main.o: in function `omapfb_do_probe': omapfb_main.c:(.text+0x41ec): undefined reference to `omap_set_dma_priority' Add back the inline stub, and in turn hide the definition when omapfb is disabled, like we do for the usb specific bits. Reported-by: kernel test robot Fixes: 52ef8efcb75e ("dma: omap: hide legacy interface") Signed-off-by: Arnd Bergmann --- arch/arm/mach-omap1/omap-dma.c | 18 ++---------------- include/linux/omap-dma.h | 7 +++++++ 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/arch/arm/mach-omap1/omap-dma.c b/arch/arm/mach-omap1/omap-dma.c index e504f65cdc1b..f7e62de427f3 100644 --- a/arch/arm/mach-omap1/omap-dma.c +++ b/arch/arm/mach-omap1/omap-dma.c @@ -99,7 +99,7 @@ static inline void set_gdma_dev(int req, int dev) omap_writel(l, reg); } -#ifdef CONFIG_ARCH_OMAP1 +#if IS_ENABLED(CONFIG_FB_OMAP) void omap_set_dma_priority(int lch, int dst_port, int priority) { unsigned long reg; @@ -129,22 +129,8 @@ void omap_set_dma_priority(int lch, int dst_port, int priority) omap_writel(l, reg); } } -#endif - -#ifdef CONFIG_ARCH_OMAP2PLUS -void omap_set_dma_priority(int lch, int dst_port, int priority) -{ - u32 ccr; - - ccr = p->dma_read(CCR, lch); - if (priority) - ccr |= (1 << 6); - else - ccr &= ~(1 << 6); - p->dma_write(ccr, CCR, lch); -} -#endif EXPORT_SYMBOL(omap_set_dma_priority); +#endif #if IS_ENABLED(CONFIG_USB_OMAP) #ifdef CONFIG_ARCH_OMAP15XX diff --git a/include/linux/omap-dma.h b/include/linux/omap-dma.h index 254b4e10511b..6f6c31e3fb93 100644 --- a/include/linux/omap-dma.h +++ b/include/linux/omap-dma.h @@ -294,7 +294,14 @@ struct omap_system_dma_plat_info { extern struct omap_system_dma_plat_info *omap_get_plat_info(void); +#if defined(CONFIG_ARCH_OMAP1) extern void omap_set_dma_priority(int lch, int dst_port, int priority); +#else +static inline void omap_set_dma_priority(int lch, int dst_port, int priority) +{ +} +#endif + extern int omap_request_dma(int dev_id, const char *dev_name, void (*callback)(int lch, u16 ch_status, void *data), void *data, int *dma_ch); -- 2.29.2