From patchwork Wed Nov 11 18:35:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324143 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp623196ils; Wed, 11 Nov 2020 10:36:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJyAxrWzt08I8S/hbUIgA84ec3DEZ3kVAhfpl33xFj7REzEBbaLvXu5joe2rto7UlZFH6j7P X-Received: by 2002:a17:90a:f402:: with SMTP id ch2mr5410995pjb.190.1605119787218; Wed, 11 Nov 2020 10:36:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605119787; cv=none; d=google.com; s=arc-20160816; b=eKsHZoZISy2SidHbkyqZ0TVXn4Q90EVdBqo5pKk6Bo8qxXHmLHOrkuiU0vDTyPuYoU xsXn//uVtEP9C10XCXTWIVtGzPiIp2dnz2OXRUmFDad/rwa5b9blVSPHDcizSigLXigY gqqL9o57/XT+0mVUqiNpXNdTBhTmv6eVcWj0QdzdWKhU25bM3xcc6LIAqM9gMaYTubMO UGrsYDfw67BODus+JqCXtBJlB9fXc/lSSPq8F+nHxIjZkFZ2ulPkdaFDgTZHikw9teRL ZIcIQos8/MGeoVj+U/Y6i0Q8QmTLUrrNwmTVIw/Zy5KQFcaowaeaKWqRoRDMRdta7YWW gtAA== 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=fVW5dNIknCqNKjVqQAbRSeuANAYu50csc5frUQVv4cg=; b=QN9TM43yTdIwQuA+7OZwg2+AvyadPY0FIabxdCmObe40SUgkQNv3wHP5vhdyRlgw1B R73SDi0ZLX9SBtLBleM0oAvPaZMfzYle7J06wQ9yMjjuIDujWEpDMZvxmeZLW36Vv0k2 n7++5SfIO55Ud83e2bJJbEOah0RHnwU5ywX7xhCDBK4xeHeyh/Y6D8O2GPr3X9NbpTpz OdRj28aBihBw0PSKMpdzvk/2plmXk6x6DMKV+UMANeyAIUen1txKem8/swr7NRQXnAMu ek2tOWDtKq/o00uKFdbx/diVKPlZ9Weflod7qb0g7R1dkhsQgiL58vlsPWGtTYXVHxbc tDqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=gv9rARHr; 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 ls3si2669949pjb.20.2020.11.11.10.36.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:36:27 -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=gv9rARHr; 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 14B036E0DC; Wed, 11 Nov 2020 18:36:26 +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 2BB606E0D4 for ; Wed, 11 Nov 2020 18:36:17 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id p1so3479805wrf.12 for ; Wed, 11 Nov 2020 10:36:17 -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=1BMpKgrGRaaFsrowXlZeUlkXnTCJQ5S+7+zF8aRI5RM=; b=gv9rARHr4D0R1XbUNjjQpIHG+8Ukz+VROemjmN9deTxOLLwa57CGwe7Yw2nPVD5LkI x7sBA5S4Izl8Y+DLOybIvelf93pnTPj30GwSDjNqThbgY52WPq9pGugtalPjo4Me6wOi v3Wf9SH9nuttFyN/EE8mWWiXT3JxVUq06ieJknk5W231WtKu0+8a6uSy7vdh1HVUK8ea 2AC/M3H/iD7QdDK/feCxSxKB0ScDF6vwy8oQrAZTdgXy/8X1ALdG+Vxo9y/csOsWa8Qz txo6oqrG/NN9rdWgI6GsC3//RR1aBRg7CpXQRIiN8lqFXulSkUJ5ArqmT2m75r2FCIsu /yXQ== 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=1BMpKgrGRaaFsrowXlZeUlkXnTCJQ5S+7+zF8aRI5RM=; b=QMKsT4AAirnBjSVva6fqRfVBS+7KlrhJ6I0XXGI9M5pzWu7Fbyft77Q1ov7bD9hKZB f5LiHEJX085ByNxRRry097r1wtJz7ei/owkxVNTjzcEKwYAE42dCg0hBbQq7DdSYpokF AskI7SblHUNduiBi/3VYEQMu8EKhnS6IEafXhZTGmzsOdmA+XpPidE4VcXh6cWPYQ0Ec 1uYYxErjoyoz+i2cXzyj9SM6CL1k8zb6EySeu4zEEVv8o6I//FJcxx3ecgjFdonzDUtg HSuDfmQgV3b+iuNT0iz69Rh4RzRo5Oa2WSMt9XV2SLjETIJkKmHwMPveasNuRu2TRH/U Ns+w== X-Gm-Message-State: AOAM53184TszPRWOonvtyNYzFNnPJv2vYaMgKsLFnp9TadU2SPpwsXYt Grtogwe4hSVu5OHD/Ld7c77IPw== X-Received: by 2002:a5d:474d:: with SMTP id o13mr33192388wrs.178.1605119775741; Wed, 11 Nov 2020 10:36:15 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k84sm3558311wmf.42.2020.11.11.10.36.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:36:15 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 19/19] drm/radeon/evergreen_cs: Move 'r600_dma_cs_next_reloc()'s prototype to shared header Date: Wed, 11 Nov 2020 18:35:45 +0000 Message-Id: <20201111183545.1756994-20-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/r600_cs.c:2343:5: warning: no previous prototype for ‘r600_dma_cs_next_reloc’ [-Wmissing-prototypes] 2343 | int r600_dma_cs_next_reloc(struct radeon_cs_parser *p, | ^~~~~~~~~~~~~~~~~~~~~~ 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_cs.c | 3 +-- drivers/gpu/drm/radeon/r600.h | 4 ++++ drivers/gpu/drm/radeon/r600_cs.c | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index 53b75cf201958..0de79f3a7e3ff 100644 --- a/drivers/gpu/drm/radeon/evergreen_cs.c +++ b/drivers/gpu/drm/radeon/evergreen_cs.c @@ -28,6 +28,7 @@ #include "radeon.h" #include "radeon_asic.h" +#include "r600.h" #include "evergreend.h" #include "evergreen_reg_safe.h" #include "cayman_reg_safe.h" @@ -37,8 +38,6 @@ #define REG_SAFE_BM_SIZE ARRAY_SIZE(evergreen_reg_safe_bm) -int r600_dma_cs_next_reloc(struct radeon_cs_parser *p, - struct radeon_bo_list **cs_reloc); struct evergreen_cs_track { u32 group_size; u32 nbanks; diff --git a/drivers/gpu/drm/radeon/r600.h b/drivers/gpu/drm/radeon/r600.h index a259976a95913..21fe44198a966 100644 --- a/drivers/gpu/drm/radeon/r600.h +++ b/drivers/gpu/drm/radeon/r600.h @@ -29,7 +29,9 @@ #define __R600_H__ struct r600_audio_pin; +struct radeon_bo_list; struct radeon_crtc; +struct radeon_cs_parser; struct radeon_device; struct radeon_hdmi_acr; @@ -50,4 +52,6 @@ void r600_hdmi_update_acr(struct drm_encoder *encoder, long offset, void r600_set_vbi_packet(struct drm_encoder *encoder, u32 offset); void r600_hdmi_enable(struct drm_encoder *encoder, bool enable); +int r600_dma_cs_next_reloc(struct radeon_cs_parser *p, + struct radeon_bo_list **cs_reloc); #endif /* __R600_H__ */ diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c index f20b619466816..dc68e538d5a97 100644 --- a/drivers/gpu/drm/radeon/r600_cs.c +++ b/drivers/gpu/drm/radeon/r600_cs.c @@ -29,6 +29,7 @@ #include "radeon.h" #include "radeon_asic.h" +#include "r600.h" #include "r600d.h" #include "r600_reg_safe.h"