From patchwork Mon Nov 16 17:36:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324457 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3503531ils; Mon, 16 Nov 2020 09:38:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJzB+JHrlQsD+wFWwOzncokBIE3a+JqJVSKf6woxjl1bBogV2cwzBG273bWj0VS7MAU2nPQZ X-Received: by 2002:a63:1514:: with SMTP id v20mr266989pgl.203.1605548282003; Mon, 16 Nov 2020 09:38:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548282; cv=none; d=google.com; s=arc-20160816; b=WVSOYhV+5rp/r1KkXU+a1BnLoNqmlDQS8YjiGta+5mMRJWKHivDf5XQwHpqeC/25l9 wKsjkQhWWPka5LY55S9Jr11vsUEoaKwVjtGLJH3x7vKJB4cjV+fRc/rKyMcBQZpsezJU 5RZbw1PiQRcSkhhZ3VPpVLkqv/p2qvzvUHU7ILjE6Ie1oJdq3p8vCSnEly9rcuEfXNR0 IhxzGU7txeXfVsmK5iWC/rIPX0hQw3rWIEHcEca4W9vFkCzAteaE2nVs7Mu9hkubBY0l qwFtZuCzEg6nz/SMXAo8E2EUw2PfD7qWpnyxn1RSWgqPmAh6XpBfdt7xOAA/VjfFQhOZ 7zMA== 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=F9sMm9BEgbN78YZkmZqXTcvqaZ8MuqRiqnS3OSjvL0enBZUJP/4n0G+qFUrFJEtiAF dXcu8+9Hu21LjFsZ4iW75ptsdyBC3wRBl5sYHgjbRwBIYPytVgNwLZ9+qW+drAuroSRJ i75qwTnw3Dmcb9VQZcBKns4d/zf9iL2VnKs6yn8r82QHL+WGw6tYKS40vse2MikTTrVI 1iB9ByPKqLnX+lSnqMd8tka93r250+wB6agNsrr/N+L2N8vnb6zo9EsGX40rE/8mnsfn AohJ3ATGCjNMZbfONmjiOOmdBLMwdZOKcRC8ncQHa23eB+h6+moCNfsMfYiMQYz8RkY5 AY8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=U3XpEpiW; 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 u23si13252pjy.80.2020.11.16.09.38.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:38:01 -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=U3XpEpiW; 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 020286E06D; Mon, 16 Nov 2020 17:37:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8D3676E061 for ; Mon, 16 Nov 2020 17:37:39 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id a65so32238wme.1 for ; Mon, 16 Nov 2020 09:37:39 -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=U3XpEpiWRsz0j+hMtLDZ8ijrHq2pxzt4Q63ge8BICYDILPrM0Uk4Znt6t3gnNNK6TA NlOKoWX3AV2dY6ZopWymRVjS6pKydRf3Qy9yyqC+dsxNtmX1UWDNjK6g1ijj8+MSV1PS diXcNe5FtP7YT1fRvskacyGs+kp2Rj2sSYX2lkHzUuwA+ZHhRI4Cll4N/5sRzHkFYVaq MkX1VQC13yUvBzlVxq3Hmv3pczoGHnxuBNInJfWzFE11iZ7h0ZMcoMLObo7M9IgVC4/R k6amszu3ErtAEjGk8HeP0Ws64DknQnHPnko2q4YWihbQ/WiOE45rttjDJudtgCmsouyQ M+7g== 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=WU96sko8KB1pn5cuA21dz4DsPvUYH+o8i6PpvcS7/LzovmdwulPj1ajzE9ej1298FI F1BgnzF54EcXwqrp9q3o/3GoezR5q57aQCq7WKVGHKm/tpxoZnjeQd8DGjZMUWy153Db psLtHVxIEYei4L1VT8LLFWb/LV7vwsngxc5OmfzJcQyDqYycxY8qvDa1snbPChuCb6d8 oz+roRtko1a6wcIlhncorKg+5mYVezWxL1ITcw8kwBe/CRcl6uwxBk+vFcGb3ui/UnJA UK8PtQPYN49Eo2I/C+mvRdC6YIYZ74N00m55kRhrkoPhUB/81tED+KELEDsPhYsVTwFQ Do9w== X-Gm-Message-State: AOAM531xL2mOJwPC9cnDI/0Li4dfwD/U/+itiZDrhZVYVyK/6e+7/vOS m3jwHhuxCscVC2aw6YXhiZ4Edg== X-Received: by 2002:a1c:b0c4:: with SMTP id z187mr16321450wme.113.1605548258220; Mon, 16 Nov 2020 09:37:38 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.2020.11.16.09.37.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:37 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 24/43] drm/radeon/r600: Move 'evergreen_rlc_resume()'s prototype to shared header Date: Mon, 16 Nov 2020 17:36:41 +0000 Message-Id: <20201116173700.1830487-25-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, 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