From patchwork Mon Nov 16 17:36:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324475 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3503915ils; Mon, 16 Nov 2020 09:38:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJxRvXMwOUKxeI5U7piz3A73GPQizno7BFAoFjsSvstP9Z3qzBice6u6bC4maCBsM8crZBoM X-Received: by 2002:a63:db50:: with SMTP id x16mr256865pgi.205.1605548312448; Mon, 16 Nov 2020 09:38:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548312; cv=none; d=google.com; s=arc-20160816; b=bTZQb+2crGeOqFavU62NI3GHUSQKLIpVNgbrC6ekA2KGmTAIiulRIWSW5WqsRsgSzv KyNh6I44AULkfHpSsrE4mY6b5HQ5KYvNjXFo1wZhc9dtvrK7YgYo2dq80ZYO6GgeIyqH Em/fXRp8f8vDj6FLf4zzGfbAm3ljYBGMqA51gjwLWVDniEcAn1eSU+Fl0IWPBnBe2DK5 HZxwgnGQrUYcmjzaNN17UEY3MAoGBiMBeU6uBfct22GvaxHJYYzVOuNXf6BvDandlhd/ QijtX1lgD+7ovziv2eW2/MhFlzTvYixXwtaoggH0tfy44l9EnIKVwyZ3Ij28Mq/xrfPE VphQ== 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=Vb2aawfp43Mi7/MVNiEeTSnQa3U752PpTuMSG0HXvGM=; b=CqqJ78UTgFag29oThdIBaV2vA9ljl3GH+WS0WURL7XtrU8R716BnU3fjEW1tILyTBs eMEpsgR11wWl4ip12Y7WUwOcOCRch69EeXdpg7hpFpmdicEPLA0Wh/cL7yEAuJmSPBOi ROK8+TGa016yccwadyYDQtgbhy77ja+tw56JP5VNO14GgG0DWIPOYiMsKYfsl9qtVArb 3cfzt/l5CPzzYpogWvwY2/KV7jv668E3UKJ+XeoQxRhNNhJHi52Lj2MmM5fWjJzZWc8+ HK0PGwAFFbZqGAD1woIVNfJUoOxlJPo7u+FtM0zeU2tRT4t8O9Bm4LxMuveSAgPKWsBI c8XA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=L+oMJVXx; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id w11si8249pjf.113.2020.11.16.09.38.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:38:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=L+oMJVXx; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 2CDEA6E9DF; Mon, 16 Nov 2020 17:38:29 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 171D46E09F for ; Mon, 16 Nov 2020 17:37:57 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id c17so19606208wrc.11 for ; Mon, 16 Nov 2020 09:37:57 -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=z5yx6D1LL1mWDIdbOcLaEDy3+e3cP8sILj2hqS9Zmtc=; b=L+oMJVXx9EMl4mh+bUkSyWc6ZsznYzTN9o/3eRri4X0NRlvMNWNqnxBqBkwgRByrAo S0YBk/0ZbUbEgQC33LIHX6VsvjaegjdE31kUMTrHVZbJAGoKJeY31+/chdLLZkmZhXyh IKrFDhsb/E3Mo7AcvEE05zKwMPDR2yHeiAFTAQmWXdEa7mlcKJ7fWIzJdrg/NHw4uCTR UirIeKolIisdhu4AO1Vgop6f8jxP5LHeQu6Wq57KGlZ9Ghl9UY6EIeeLQpRKhaoHdgZE 7solyMQ6JcSANJehQQrpPE9xiw2u/hn5rmtbWnd02b0KPSibjLJQDvttOjd9bFF11BcI m8CA== 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=z5yx6D1LL1mWDIdbOcLaEDy3+e3cP8sILj2hqS9Zmtc=; b=mFiJPHBnrRsCSVxI9CHSfKaNfcFkzyExMTbf1Jc/BxYL/4mXnrJJvjNS6ezL0yaMO9 uT8JOAw6cAfcwlAU+A/GI5Wjm7n8jAP/J9gSiSVwxavCNCjMGimn2aQRPz+VKqjtC1PM GHu6kQj6PfK8TBOTmcHY5BBG4oVqs+2MzOiPprxDD5xO///0fyzc8ZXHwHLLun0yBcap q8Vkpc3Oc0RGZgEPCbs+yt8OPTKFEbIqMKDPXJZDxIUiPsnSTy9O86ygxSoTc3qFQLkw OutBVMHVK4Fvcp1z8627AGiSLdMDTjcwvQzQiuXA8qCw4stdj9+bwi5TJoeEgVi7oVGB zYFA== X-Gm-Message-State: AOAM530DBK56bgqZD+Am5ayw0M+d+08hu+YI08FDHDUf9rY8fJafbfAq fzr+rIH/G3N8lnK8s8HVrcxXgLfNv7VKl4fL X-Received: by 2002:a5d:5643:: with SMTP id j3mr20002425wrw.43.1605548275782; Mon, 16 Nov 2020 09:37:55 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.2020.11.16.09.37.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:55 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 38/43] drm/radeon/cik: Move 'Move 'cik_sdma_*()'s prototypes to shared header Date: Mon, 16 Nov 2020 17:36:55 +0000 Message-Id: <20201116173700.1830487-39-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201116173700.1830487-1-lee.jones@linaro.org> References: <20201116173700.1830487-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 cef0f3111cd3a..2af76463906ad 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__ */