From patchwork Wed Nov 11 18:35:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324141 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp623153ils; Wed, 11 Nov 2020 10:36:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJsyWai4uQsPA98WazxCD5Kota2hIxwVuKYFOYyFYW3wpGk4yrg5zUGYA9hMo2Ct+QqTWm X-Received: by 2002:a63:461b:: with SMTP id t27mr6471960pga.122.1605119783240; Wed, 11 Nov 2020 10:36:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605119783; cv=none; d=google.com; s=arc-20160816; b=eh9xAwRiQw4oaTTgcclroLWTOVwBnjIihZxoyNnyvfF5VnjlYIiGYF7yLiY3E6VG7y tNPx7wXvbU4Di9/kFYRpFx+zxKZdGcG/SKZMMgAo7e83NRuRz11SFZ4cOohCH2FO/M8X dLEceIRCKlJJeifbI7Qwo7cuByFDgF0Sb6aH26hxZFz/6qpOc5NoP9gcoy8HHuGO6omF bFezBWEU0fs278DuNHJPvdovt0zfXbD1K0I5JuXaPt/68b+LbHY3vrkjfIeRyqc5ey+C 7L0Cvn1CEWm7Obn2DxGyakgOlxabsVVenNGCIW/R0+WwI3JWN+TRJeVUqkWOUfY5nZ/s ltlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=pMord8ERFhqGkZ+OkbgQ54414A56VrJQD4k2srydzPs=; b=DJ8gqdg+oP33OZM5H6RBDQ/8vfX+gfn9rc3qe+XsGEDu2rk5IfcTQkYJktaIB4L/g/ TCHEVibkh0JIV9lNQl1Ct4wHOM06nwccIIOTyS5Bo+ForifyOojqTfabwF2Fa0EGH5iM ZfyHVJJuJi/GTpoWyYXS/dZ37MdeknsNZSDZkm6YpgQjpTxwgsEpw8T5ttdpOwL2PUrz cRDPMc+SsvPD2R6GY8ZUJzHOfBrPDC4NcEvSJx8ujLFM6xqQVD3+tpMzgAlYowbgQa52 NEpjQg2Z1TJG/OroBUi305kJhMK9t7nRIqoQfWSSgUVKb6+/VzXpvuESs4qUO6yXEFrX m8jg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=w++rpOsz; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id g23si2453892pji.81.2020.11.11.10.36.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:36:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=w++rpOsz; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7A5256E0CC; Wed, 11 Nov 2020 18:36:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1275A6E0C6 for ; Wed, 11 Nov 2020 18:36:13 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id 10so3175090wml.2 for ; Wed, 11 Nov 2020 10:36:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=spCm618rU4+U7z1bfdflo8X7NldT43iivpTuZ8WssFA=; b=w++rpOszkxweKlNZMXoxmKyy4U42RAzQDXbaasLv0JL6Mz+/P2AanrfR3DqMvCG6c1 6NYHQlNcK1yEneyt/TJesz+g5TEv6/JyNC/pI3IvwLglHc9XS5o1OSu4jFsJARQenUoq hlVMNdPMbEo/yCbB22dgrmPaYhbTe2sXVLiN4WH6c5/eTSKDSUwbrSpxpm/b/wxKo2l2 t6DEf/qObRqR0J5jb0GnJuV/3qiaKr3eUdjqwz8Y+DVyVz74dyN7lvLkK94HeFmurkGG X2mFN8tNmqv4Ps0arCz3R/jDCYaUObb4KFZDRR/s3vPci46Mdn1FuljOWkDgCvy892l5 Hg5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=spCm618rU4+U7z1bfdflo8X7NldT43iivpTuZ8WssFA=; b=iA/JlvTvxapmMtNR7skEquCo/JDm0gbG89e+0JGNqCWi2NO6q0zzLNAt51OIeBVmEO UPDMvQQKkHfRZ5koHqmnsBQDcXJQDzZOwQ9lmcedOOwa5R7H14v6Lu5ZxdtZPtOew6ki iACvAUMliCpHb+zU9wfAoAVqc6TVg9UCVrrY6lG9fevs2d562HXGbgpQgIM+TcOjtDFF 0v0qcqd0SjiC/vMZOuX518lGMHTfWVq1XG8EzGBypCyxqCv7ywa84waIdV1x+mWFjiNE Cfd82a3HaE+24f9FTPowYMBL8DdvMn3CagdUyM6skFN0/o4h8h7Z1HGQzDVPZWNSbpmK OXQg== X-Gm-Message-State: AOAM530NWsC/iLB43XWZIl7DW1JwQPqzj15JFebU9+wit1/gktY3t2Bn Vk4/GEiUBfaz6s977qh7L2DtwA== X-Received: by 2002:a1c:4808:: with SMTP id v8mr5734129wma.110.1605119771722; Wed, 11 Nov 2020 10:36:11 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k84sm3558311wmf.42.2020.11.11.10.36.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:36:11 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 16/19] drm/radeon/cik: Move 'Move 'cik_sdma_*()'s prototypes to shared header Date: Wed, 11 Nov 2020 18:35:42 +0000 Message-Id: <20201111183545.1756994-17-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201111183545.1756994-1-lee.jones@linaro.org> References: <20201111183545.1756994-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/cik_sdma.c:331:6: warning: no previous prototype for ‘cik_sdma_enable’ [-Wmissing-prototypes] 331 | void cik_sdma_enable(struct radeon_device *rdev, bool enable) | ^~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/cik_sdma.c:528:5: warning: no previous prototype for ‘cik_sdma_resume’ [-Wmissing-prototypes] 528 | int cik_sdma_resume(struct radeon_device *rdev) | ^~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/cik_sdma.c:557:6: warning: no previous prototype for ‘cik_sdma_fini’ [-Wmissing-prototypes] 557 | void cik_sdma_fini(struct radeon_device *rdev) | ^~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/cik.c | 3 --- drivers/gpu/drm/radeon/cik.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index 0330ee86a372b..4520ec4c7b2e2 100644 --- a/drivers/gpu/drm/radeon/cik.c +++ b/drivers/gpu/drm/radeon/cik.c @@ -129,9 +129,6 @@ MODULE_FIRMWARE("radeon/mullins_rlc.bin"); MODULE_FIRMWARE("radeon/mullins_sdma.bin"); static u32 cik_get_cu_active_bitmap(struct radeon_device *rdev, u32 se, u32 sh); -extern int cik_sdma_resume(struct radeon_device *rdev); -extern void cik_sdma_enable(struct radeon_device *rdev, bool enable); -extern void cik_sdma_fini(struct radeon_device *rdev); extern void vce_v2_0_enable_mgcg(struct radeon_device *rdev, bool enable); static void cik_rlc_stop(struct radeon_device *rdev); static void cik_pcie_gen3_enable(struct radeon_device *rdev); diff --git a/drivers/gpu/drm/radeon/cik.h b/drivers/gpu/drm/radeon/cik.h index 420207d19de52..d1bf541da5923 100644 --- a/drivers/gpu/drm/radeon/cik.h +++ b/drivers/gpu/drm/radeon/cik.h @@ -34,4 +34,7 @@ void cik_init_cp_pg_table(struct radeon_device *rdev); u32 cik_get_csb_size(struct radeon_device *rdev); void cik_get_csb_buffer(struct radeon_device *rdev, volatile u32 *buffer); +int cik_sdma_resume(struct radeon_device *rdev); +void cik_sdma_enable(struct radeon_device *rdev, bool enable); +void cik_sdma_fini(struct radeon_device *rdev); #endif /* __CIK_H__ */