From patchwork Wed Nov 11 18:35:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324128 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp622855ils; Wed, 11 Nov 2020 10:36:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVoFLtxAFpW7dbjJfFAskQEVgq33PwOkQxGDyRyhH81Mp0LRmfuMXofC07M556yEDGwR3d X-Received: by 2002:a65:50c5:: with SMTP id s5mr22680560pgp.399.1605119760914; Wed, 11 Nov 2020 10:36:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605119760; cv=none; d=google.com; s=arc-20160816; b=ILCnERS95BeBJ5b1dgG2zxC/iemJ4yJAL1NBqLw+ZkmyBXLHQunVLqWOadmA1lEYFo AGbk/dWSeu62AxV/sAD6PD/iPTyZz4dJFYF57EL+XvTjjak3pVcMDfu+xMpCZlCtMaN+ EJaUUs/jMNd3B4OhSNgdLbq0czJxJElOFry25jGuE0OIQgCJsP7hc7OIT7CE1PgxT29f njg3LLFiUzufQzCaqQVZgE5lrqAONm5aAcYVcr/Cev/akSfIvMDyCbncnFoiStZ8plhH wI7HoGXRQ3vc0yU7GSGeQu4nCr5GfrIX7GwRdNnxb7c+sE04fVToiDbl5slGhLlhsgDV k6jg== 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=aWCjRmlGYkhmYN2qNXDv29hF6E6fBjezzKEW13N80JU=; b=p7oxZoXVNEKNQbm2NUytfd1O9U0uokqd1eAKF531Jf/ObKBf1oChbeyFvNCopJ/MR5 RxJwb2Du+VupYBsBEglYNdud/Gz25qEoE13ZPIPDdUDT/PVUt/l2Q9Ip8wiuovONGrDP DMNbPltk2EL1AxkpC23cQNUy9Al6V10Az6sEPaGfneeBSk9iNyunH57ApGZgMe2+QDAt LfDuOwCljhMcXx9T+yfrpShO5yBDptYsHzUb+2O0TU/QH8egu5kaNBcjhWHzfGQfV4rv bZR8OpNUAyanefuAC/TU9DneDQSsBQftr7Rz+W9MAvAHZBI+bfWiESpzrHRzrlkMBmdQ rodA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=pZ+Qh5Ir; 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 s188si2450266pgb.6.2020.11.11.10.36.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:36:00 -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=pZ+Qh5Ir; 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 AD3496E0B6; Wed, 11 Nov 2020 18:35:56 +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 B9F076E0A8 for ; Wed, 11 Nov 2020 18:35:52 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id b8so3528477wrn.0 for ; Wed, 11 Nov 2020 10:35:52 -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=pyNxvxME2tG4MioZh0DLPpucvuaAdYEDiX4yy0UM7tE=; b=pZ+Qh5Ir0/lUkjSQsdZgT0qNsnE0Kwon6ayRY4sx+bJ7U2t95+wam8fCVcVYBQy3hX AuDoAsSXTh3xeuT4E4r2i+u0RRFD1EiCY9T3C0Xgkq8wSfVcPtW9PVHnim5Cnp+zsmT9 zz112QT7ngXkmeKYTV3biTKexdGTYGHonT4el6Xo2iPzUX/ZkfMN3Du0t7dd80eMKzZP f93rAUQgaRHJzbR7P9KIZYs5AM0iFg4IUBa1MtgtG3Q/Owj5iXYPEx9PjJBnC5zbS6C8 xR3zEPCXFZNsjaNtqFCbfMXBHlp+C98S3ZNNEW8ePYQAYo/iIenIqSTFaMe9Vs6uQnEw sEYg== 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=pyNxvxME2tG4MioZh0DLPpucvuaAdYEDiX4yy0UM7tE=; b=eluTqR7YOQRKS2WOt9VvmqpOtcIUTsFrmZLXPpuIpfnjf+ombsP0XJof09nxKi/qa9 +hCcjkCzegaSE8/JZeUYBtDMgQMt0IH5xjfOlNbL1L6fn6ziiuicuoPDGZ+QcBGU/XrO v8hX4zJxU4JTUCliUS7MPLWEv/rMT1yt++wsAIdzXPh9b5x51KtbfINffjZbrDZLyBty QOsw9jHFE8m8TncsXo09iR1M1UjukN6L7pIV6RaQpX0eMZoEP1nf08nzEBtzDOk0bmgp lwKGt0aPxRPFmMkP4pMV5kO79auWrYl7xBngkKVQPQhl9iwclzTRdJJeu1YCDYVxmjp4 tPcQ== X-Gm-Message-State: AOAM533jRrWGrcWe/Fcvg4VWHxnoM8iGxOsq9VoWZ99Df7fAuF6b/5Bo ppv4YcDO1BIlEJyuNR21DKwwVQ== X-Received: by 2002:adf:de91:: with SMTP id w17mr30549664wrl.84.1605119751376; Wed, 11 Nov 2020 10:35:51 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k84sm3558311wmf.42.2020.11.11.10.35.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:35:50 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/19] drm/radeon/r600: Move 'evergreen_rlc_resume()'s prototype to shared header Date: Wed, 11 Nov 2020 18:35:28 +0000 Message-Id: <20201111183545.1756994-3-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, 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/evergreen.c:4380:5: warning: no previous prototype for ‘evergreen_rlc_resume’ [-Wmissing-prototypes] 4380 | int evergreen_rlc_resume(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.h | 1 + drivers/gpu/drm/radeon/r600.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/evergreen.h b/drivers/gpu/drm/radeon/evergreen.h index eb46ac7776951..f8d772e612a48 100644 --- a/drivers/gpu/drm/radeon/evergreen.h +++ b/drivers/gpu/drm/radeon/evergreen.h @@ -48,5 +48,6 @@ void evergreen_gpu_pci_config_reset(struct radeon_device *rdev); u32 evergreen_get_number_of_dram_channels(struct radeon_device *rdev); void evergreen_print_gpu_status_regs(struct radeon_device *rdev); u32 evergreen_gpu_check_soft_reset(struct radeon_device *rdev); +int evergreen_rlc_resume(struct radeon_device *rdev); #endif /* __RADEON_EVERGREEN_H__ */ diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index 94e8815e5067d..b44e0c607b1b1 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c @@ -39,6 +39,7 @@ #include "atom.h" #include "avivod.h" +#include "evergreen.h" #include "r600.h" #include "r600d.h" #include "rv770.h" @@ -113,7 +114,6 @@ static void r600_gpu_init(struct radeon_device *rdev); 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); /* * Indirect registers accessor