Message ID | 20201110193112.988999-20-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500607ils; Tue, 10 Nov 2020 11:32:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiBY4pNOSJvMU7nPCd9LgguRzj/LTuv2/VADuWwHAZlBndhgx4iGb7az4vX8Sgc4mvTRi0 X-Received: by 2002:a17:90a:5916:: with SMTP id k22mr742474pji.146.1605036720309; Tue, 10 Nov 2020 11:32:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036720; cv=none; d=google.com; s=arc-20160816; b=uheXPUGLrmQv+K3IKBgphFrZVa33+T5+jnwpylQZbYndGXE2WhdZ6E2ntCk7Rd///8 kY4Un0KWV0uXGwMkWSFUu9K9TU9HXyEIhWnY3o2148c49xR5H6eoGB4GjIFIW6yW/7Yp vs8Nvfvk0vzxUsoFUOc5IWKZVXkDHxekIWKlb4fk/MET5Lpto3C+HY2idkOe/ere1IwB isDw92CAvsKgbJM5kvzIrgbPWCzC8/CDe6RhE3tAej2/ElwZ1g2l8nlvSzNYdpUZH4Cf cleVqtQb6yPl5hBzKOAVI+uQOk4pgY4v7KSpjfsMEEPOiVhz2Y159H42k6Yio+KAmL88 heEA== 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=hEkQ/1Bm6VotIjpv5KlBa+ZJi2UwSSz0V//ycv0HlHDdYwM7guySGu5m6ExSwD3mB0 9tjKM5kgy7KD2JFrCeXBZbwUFrtDc1ReXLSffTjqDyEvn2repAwbvR/jkitiSCJcO3+I a8KfMQhPFsR5HlJxXLyO05d5MOLGgd6pq8/2ViVME/JvPk2FHdKpdpfmd/l4Fgyjz0q9 ZXiGWkDnzJ7TIqUodurQi5cHDEtCzbvL/VJtDVxUmaeY6O6v+cjgZoM2SK0+AG1f2RUw 8xSv7IsJzpsUldzXW3ThqKUuVPjGlRehm+gRovfvsfdHm51P8psonUsPG3QhcD5yl+C/ jbcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IWSDVKQF; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 12si12518837plo.94.2020.11.10.11.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32:00 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IWSDVKQF; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 0990989C1F; Tue, 10 Nov 2020 19:31:50 +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 6082A89BF8 for <dri-devel@lists.freedesktop.org>; Tue, 10 Nov 2020 19:31:41 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id a65so4311526wme.1 for <dri-devel@lists.freedesktop.org>; Tue, 10 Nov 2020 11:31:41 -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=IWSDVKQFg3hpW8WwWnraoONM854vSPQmeNeTXUPVHV2/Mrs0NRUEKMoXn9yMH91a+B 68ndDNvEffubTXaT7qdx8pdnKbe0bn0OWdVSy0Y4ttygX7CeW5rC91Cf7opxRCPpTZ4u mJ5Z88gfhGnngt/P+SIBa18MYmx+vzsnUTjS1lupg/L2S15JCAy38Szym/o6fDNcFpS8 zspEldGMz285nlZIgF2gy0AGAGL7PAs8AxLYCSNIHCbxlVdqoD46QmdMHn4Wn7W6Xc6V AK9qL5k45Pr4fW60coQpZkbVQ8AHoZD6WE+mdwv3lRwL36VWbSOS/7hPW10x66D2uFiN qbNg== 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=r1a68KUwaK0esADHBzmL4ciWzg9s35NaWuA6haRT4IjXIymMwK9zplCYG4Ac/ABgyD h0WsgourJwRtPjmaLtuZjat+2dbEiCD8dtXXF4c2hJ3JOpbMCL1/QMQck6JwGD5PvFKD olUiarBa7dJF/kikMJDoWArR2Zzi1pPzz8JElSCJjFUgeacZNtYh83aL1c7TJjE881Dz 7zRE2ff5psBbTTuH15p3ARzJT5XFXeELklgKrcVcurAIzISg2pOJiCKkarLmehmrT1fL ZnutMiDMonn1KrJMjipoHKVxKiew6Y0/yQOvtsa9TI1/spIIE2KqM9UcVwwXCPa9WyVp czpg== X-Gm-Message-State: AOAM531huW2Tn+eJ4U5Iqag/9s/bazL7/A40sY/D2WQk8U1vFH9VtDAw scbSCRTAs8g17RcAfgBIo8Z4lA== X-Received: by 2002:a1c:66d5:: with SMTP id a204mr699617wmc.184.1605036700071; Tue, 10 Nov 2020 11:31:40 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:39 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 19/30] drm/radeon/radeon_drv: Move 'radeon_mmap()'s prototype to shared header Date: Tue, 10 Nov 2020 19:31:01 +0000 Message-Id: <20201110193112.988999-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Airlie <airlied@linux.ie>, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher <alexander.deucher@amd.com>, Gareth Hughes <gareth@valinux.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid W=1 warnings from GPU
|
expand
|
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 <drm/radeon_drm.h> #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__ */
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 <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: Gareth Hughes <gareth@valinux.com> Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/radeon/radeon_drv.c | 2 +- drivers/gpu/drm/radeon/radeon_ttm.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)