From patchwork Mon Nov 9 21:18:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320989 Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp3000515ejb; Mon, 9 Nov 2020 13:19:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwX1FZJAmQnUH0Y0qVsA9rnBNm5xx1xfnCDr+aornoYPPvAH7yFNlTS6x3sabNJM531094N X-Received: by 2002:a17:90a:5908:: with SMTP id k8mr1170019pji.222.1604956780674; Mon, 09 Nov 2020 13:19:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604956780; cv=none; d=google.com; s=arc-20160816; b=TPM34FoZhrVR2uOvUi+QN8EIx2KtVZR7f+1NN58G9u/dv9KBHlugm4DePaFG8OWrKm eRDAFOcD3A73IBUYv2x+uUF7lkW8FdKptZTUXXJ/wLI8J8yGEIuJaIsajhmWkg8wgItR hURC70QjgT/Bh5YvN+gFNDXjSj3VuBJcMYrNnhALC4RBBA5SmgkxpwpKB3tTwQQm3EAd xjSqeGxtaU9/7SGXM1p2jQc+nwQdwX6gYkuwhDywdVyBfSKPlhAtcUsgN37fnwzpmsyw K7llDaC7s/5Yt5dX+HFc8RjUgKTfgQUmo4c18jAiHlzLtCYgJC7plP8aTSfmT3/yPNlv V8Kw== 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=KSMfgIisA4x/hAjfmuu9uOjiIAAO9PoT2qmxqcUueRY=; b=NnxR5Ut7Sux1gjjCILzZ10uRxA9ugnDFotPhRof+AcNFmtrTJm7+B3dg7orFvZwV7q Cwo+C/dzWsNdaOg+SyARGWaKrpNrUNmefFv80QNWxHSTbKiEetk5tJea7RfE4oAI6Gkj ORyTR1cAobBp2DkFfPMpKVgguHBY2eo5XDjo8QMtuXz0wcBQh1PnbESoIzyjzUzwoVS5 tR2rqDoFR7PSSjyXbjS+aQwE+W+Rt/5IxRPT/G51+o1rMpPvKIRyLXU64rHbvMsQhJui YU87jXhu93woEG/VKfb06vlYfMPc+gHdsH8EpsAQeXkqft+8/1AhcsxzLSf6e/Z0sFE1 52vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=KFykpLfC; 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 cp5si510773pjb.104.2020.11.09.13.19.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:40 -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=KFykpLfC; 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 BB0CC895C4; Mon, 9 Nov 2020 21:19:37 +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 2DF63895B6 for ; Mon, 9 Nov 2020 21:19:35 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id a65so923151wme.1 for ; Mon, 09 Nov 2020 13:19:35 -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=mP6ncVP3tb6PBoh8PR+HhOmxf1xJDs0FPGkTnD+ivtc=; b=KFykpLfCS//ZsH9E/r0koc17hviNUTM0dyZhwgahRURu3RDlD7WSTPyYvfI4R8B37N ZFI3daldAmSN6II7vkZ85e3c/io1Z3RNNLihM2vj4e44wuAlM7r5dqaY2pDwC8H5SDhx MVXosMn+hWDvCRWFW3ZAc6jqRmjlJQqoWzd+x45NGezmyeXfjnPyZNr4TX3GenC0Kslv 8jDKQGDpJUYd5tCK0MisiUthJtNJogiZomkAVQ4mIqAEpuMMcUSgIerN9BLCTgEJ9vGL +NKWgQHleOmv5Wx5VeN25Eq5miaw3qZyfxGB+zMrOE+/foVnBu/M/3DohTb7/Dk+ROoN 7rXg== 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=mP6ncVP3tb6PBoh8PR+HhOmxf1xJDs0FPGkTnD+ivtc=; b=PW18GpNVmoL8nmLeW9vx4EQfPmttBo57hQ8qkXhcNE6D29dv8wZ2A0N2I9CWoZ73wK eO0OvAyw+Pg0MEcGOIubD1+hxc1v/7VqpIstkcHUaUwthTxhc2c+DZsn2eg4P0yg8cmV 4OgTfgbV/ThmRWAJbR52vMC0hs84lbmBC5ln4qraMTQKscq1vLRM/5TUxEZjCAA1Qten N827mpBLVrcLC4Scu6k3+6E+yrTTrqgt/lGz9IZVZ83wm6VUGnWir8tiG9FH3JMW+Vr1 OeTWf0+j5urMP2vGhkynwKInXah8VdK4HEM6PWmcEAKZ+FRohLaGXKqYmcJAP6vZHSIR vuEQ== X-Gm-Message-State: AOAM530i7RVVD/XUYjEz/kKEOV28JD9NrzDPIef5/Y8rvmEPGTcsfY4D wkkeiFlI6bkLWbLC+/ur4/nSrg== X-Received: by 2002:a1c:7f14:: with SMTP id a20mr1125386wmd.95.1604956773891; Mon, 09 Nov 2020 13:19:33 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 71sm15170630wrm.20.2020.11.09.13.19.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:33 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 13/20] drm/radeon/evergreen: Move 'rv770_set_clk_bypass_mode' prototype to shared location Date: Mon, 9 Nov 2020 21:18:48 +0000 Message-Id: <20201109211855.3340030-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201109211855.3340030-1-lee.jones@linaro.org> References: <20201109211855.3340030-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, dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/rv770.c:1138:6: warning: no previous prototype for ‘rv770_set_clk_bypass_mode’ [-Wmissing-prototypes] 1138 | void rv770_set_clk_bypass_mode(struct radeon_device *rdev) | ^~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/evergreen.c | 1 - drivers/gpu/drm/radeon/r600.c | 1 - drivers/gpu/drm/radeon/radeon.h | 2 ++ 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index 14d90dc376e71..3541a9444be22 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -223,7 +223,6 @@ extern u32 si_get_csb_size(struct radeon_device *rdev); extern void si_get_csb_buffer(struct radeon_device *rdev, volatile u32 *buffer); extern u32 cik_get_csb_size(struct radeon_device *rdev); extern void cik_get_csb_buffer(struct radeon_device *rdev, volatile u32 *buffer); -extern void rv770_set_clk_bypass_mode(struct radeon_device *rdev); static const u32 evergreen_golden_registers[] = { diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 6e780b0109995..9587792503525 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c @@ -112,7 +112,6 @@ void r600_fini(struct radeon_device *rdev); void r600_irq_disable(struct radeon_device *rdev); static void r600_pcie_gen2_enable(struct radeon_device *rdev); extern int evergreen_rlc_resume(struct radeon_device *rdev); -extern void rv770_set_clk_bypass_mode(struct radeon_device *rdev); /* * Indirect registers accessor diff --git a/drivers/gpu/drm/radeon/radeon.h b/drivers/gpu/drm/radeon/radeon.h index 421f6b26512ed..32a2c894ee3ff 100644 --- a/drivers/gpu/drm/radeon/radeon.h +++ b/drivers/gpu/drm/radeon/radeon.h @@ -280,6 +280,8 @@ struct radeon_clock { uint32_t vco_freq; }; +void rv770_set_clk_bypass_mode(struct radeon_device *rdev); + /* * Power management */