From patchwork Mon Nov 16 17:36:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324450 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3503302ils; Mon, 16 Nov 2020 09:37:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzUVgLpc3FGrow/HeL17plAzsJ7hrf4pgEqDubqvAETuJJSqDeU8+xeS37Aez67a2JK+pvB X-Received: by 2002:aa7:868d:0:b029:18a:ea7b:342f with SMTP id d13-20020aa7868d0000b029018aea7b342fmr15195949pfo.68.1605548262932; Mon, 16 Nov 2020 09:37:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548262; cv=none; d=google.com; s=arc-20160816; b=XGR1383NCbZY+3m3kknh7eCtgOl+YipMcBWOakKoT6iu0Y/fb/VTQ/SPvCi2WwpE/5 74h4pVyWFLADwNn6pdLlYFzCTNXTmP7XMU6JRescTa+N6aeJn552OPpHDcAOQMEU6qGE UcNNaBovGvumvClWl2dESd2TVJcxziaDcQ8KP8rBRShUeM1aH55Ea8hG7BbJYA93PAa/ u1ge/TwOmaQiyZka3iW0gA6q/WZfwvTO5IJ2AMRyw3wdvVRL6zoZ3Ss8svclgFv8PJ1i JGVLBBmwOrZnPosUb0mdVoe0yimRcqcB8GNADwTFf7G12en/GBhHBJ760FWV/1vfUFT4 zvmg== 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=OJv5AiZH+s8nAE1tQPur3igOsR+M7q5t+IXz4aDhvKs=; b=gE9jp6x0mHGClXCyj28mAtyNoElohkUSemTlbpBKWMJNOwsYqhsj3a/B+WQHJIubSc GDvRNuhDFWErLlCdsy/yv5LzF+V1B45lf79off2HE2ZWrkmsByX3pxBrkB8X1mWo5gH2 s1Z5apcMfxTy0njviEqM+PWtXxFnBkq7GazM38DxK4G3VY9XHdvnnzp5csUjaJzLkv12 4t1VnN1pRkVHgCgMz7D7cqldjA2tkhwKDQpPzEmkLlol5BhczkDVmfwTi09DCDDqzxzj tznZjevr5bi1woZ5Pkz0X3Lj1PwY0vw9PRJ1MLGd5hISdCMk+8LO2G5qAGTlwNP9LJHB OPkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=V+ElGLhI; 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 c201si16178249pfc.257.2020.11.16.09.37.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:42 -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=V+ElGLhI; 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 352386E08A; Mon, 16 Nov 2020 17:37:33 +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 651756E06D for ; Mon, 16 Nov 2020 17:37:23 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id w24so37164wmi.0 for ; Mon, 16 Nov 2020 09:37:23 -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=BSn+OXUyqlvsEb5g4HG7YJio2FrFxnG4RAzoSpJ37n4=; b=V+ElGLhIkl31Mb6P/M3XGUqM6iyTGUDvmxvcJhvSe07Njk+hFpmjbacneoTsjLTfSA sFaHyOduil4Gvo0/pfIxP9JJGg9xIs4lJ6PC/K/1BjS5gzfuKAtS4dA3U/06gExWEepW z34W2YW39i60AK8MaVWa5tWhHqmxnSpDAcSwTB7TvxuMDO1A6bNFQdF9k66dM1xEHqv7 +U3CyMQ83XgpjYOueCkvHHKJV8TuCuYa8gCaCPC1qX1Ro21fGH6DH24sQ4vz9p4c35qp vypuRQj7FtZdT32r2KCrzyTF4ZPSx0btFEs2MYm25/t3tW94aqCkVKeabvJsqDXn9AJW ULeg== 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=BSn+OXUyqlvsEb5g4HG7YJio2FrFxnG4RAzoSpJ37n4=; b=IdO1cJbJ62ToDV+cIMvZ48T6l0xmTlTR6wmGf0OxyrMFD5DDmip3fhA6k2/2M0mxtA +v69+moR+3BwaygEeTPpc20BFOudhODdihp9MZ3lb7BgyQd3RBUCupYQ8RP5kHra4lhA nJfqfYjDhej1eO0CHHG77jT6DPVdBJ+APPSYTbzcBGI6/77f4JKgl2RA+7xvIpZrS8vA JvLbrpA1axi6WTBfphPaHH8Sg06LRbV+0NRvEcmH8XHfLS6UPSEKsfXPrH/ekCv4GMHz heB4LWG1Fj4TVOzQOo6MnArZ/OKr+w7BE+kRZ8xFfIuSSPjcXOaZhzU05GQEJFHcft8L It9Q== X-Gm-Message-State: AOAM531qfi7xB/gyP8Ti7hxoq4Qi/LHOM7PHJJviQFo3O7iEwiNHr9lk Pe94w+mlGPDiPIHdqoKxPqMJpA== X-Received: by 2002:a1c:2b05:: with SMTP id r5mr16513667wmr.179.1605548242110; Mon, 16 Nov 2020 09:37:22 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.2020.11.16.09.37.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:21 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 13/43] drm/radeon/radeon_drv: Move 'radeon_mmap()'s prototype to shared header Date: Mon, 16 Nov 2020 17:36:30 +0000 Message-Id: <20201116173700.1830487-14-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 , Gareth Hughes , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_ttm.c:931:5: warning: no previous prototype for ‘radeon_mmap’ [-Wmissing-prototypes] 931 | int radeon_mmap(struct file *filp, struct vm_area_struct *vma) | ^~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Gareth Hughes Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon_drv.c | 2 +- drivers/gpu/drm/radeon/radeon_ttm.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 536b246b9a6aa..2b9deaead99b2 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -51,6 +51,7 @@ #include #include "radeon_drv.h" +#include "radeon_ttm.h" #include "radeon.h" #include "radeon_device.h" @@ -125,7 +126,6 @@ extern int radeon_get_crtc_scanoutpos(struct drm_device *dev, unsigned int crtc, ktime_t *stime, ktime_t *etime, const struct drm_display_mode *mode); extern bool radeon_is_px(struct drm_device *dev); -int radeon_mmap(struct file *filp, struct vm_area_struct *vma); int radeon_mode_dumb_mmap(struct drm_file *filp, struct drm_device *dev, uint32_t handle, uint64_t *offset_p); diff --git a/drivers/gpu/drm/radeon/radeon_ttm.h b/drivers/gpu/drm/radeon/radeon_ttm.h index 91ea7141bc812..4d7b90ee27740 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.h +++ b/drivers/gpu/drm/radeon/radeon_ttm.h @@ -32,5 +32,6 @@ struct radeon_device; int radeon_ttm_init(struct radeon_device *rdev); void radeon_ttm_fini(struct radeon_device *rdev); +int radeon_mmap(struct file *filp, struct vm_area_struct *vma); #endif /* __RADEON_TTM_H__ */