From patchwork Mon Nov 16 17:37:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324471 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3503812ils; Mon, 16 Nov 2020 09:38:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/ODtDHHvZ2o6nkq8xpU41jtClBnLEp867AhwiFrz1Jz91OF6rhKw12joQGoCGjwhPMmsg X-Received: by 2002:a17:902:59cf:b029:d7:e216:9260 with SMTP id d15-20020a17090259cfb02900d7e2169260mr13101800plj.74.1605548303967; Mon, 16 Nov 2020 09:38:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548303; cv=none; d=google.com; s=arc-20160816; b=RIDRJsmg/MMMr9E/geHUUJWn9s1qmjadHckkC4SD4xWb2NLUmD4H6Ij18UA5f0ILJ2 doO+QZbCLOm/zZidc5VXAG4Q9YxzfFWsptXh7BTMtAJ39sS2iL4vDZLn7W18C9eIVcnq 74WG6aA9iUCjOsia1lqwhAf59zyceSpqn1nScTt+FIMVmosbc4X09A+0n3FRZ3uG9l7Z EP8lGole16hGLFFWgufeafZqpPxMmtuw3uQdcqKeMzNrjfwAEvvsB0djgLtPOnl/QY5E OtSkBGOM0ZqbeIMf7SVfbkWe0Onir3W0CGv6Ss67+MM42OPkRUpwKbwj57s1jkPe2Ose tZzQ== 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=K7zaZYLT1TW90KGgw7yBCdCfvIx/KrxLQsmPbB5p+xc=; b=QDkHpW6d06jEQOoap80hTyljgsigKTyj4P8+k4FvMB8MxyoCxsh4Uso9YQ0ZHEMa56 0jiJsRouF1WehI/HWNB5LSDWKJYGjpmTC5Ksd9YawBnHVEYBAqLsYgd3jJgUfryikiti 0awSxcyNzuXtntVKrfIKb4OFWSV6tmKUapY1eZcP6mrcKN8iKIQaEqR8g9YjUXzJcfyN AtoCe1N5T4RfQ68S1gApOtLlRPdANaO4GCNwrfpWH9w5RXxmBLa4FRLj8d/GsGc/h5ko lv0fPQgPRgKcyvAT+TDoTZllF0kdYgYXGexehVFgermmoleuqvRF0AI6fDqyfCTlvQUe 7i3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UuKytIDb; 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: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id nk17si14906pjb.77.2020.11.16.09.38.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:38:23 -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=UuKytIDb; 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 BEF3A89AB7; Mon, 16 Nov 2020 17:38:18 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 9A7E06E08E for ; Mon, 16 Nov 2020 17:38:03 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id u12so12421709wrt.0 for ; Mon, 16 Nov 2020 09:38:03 -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=6EGHBJr/siM/pdwXEUEQclk4ZNpHlp4udszmTbY7hrM=; b=UuKytIDbOl5cWtgBiIsWcmk9ftgGmt0ocZumuYxm/bwx2yewiFf7ODuEWIWUObEHwt u/6foaKVEKE7gFlKbWuWb0Y7knKW8H+gYjQY8UEn4ujHVnNw5RXWGtFUC6ISAdzmwmS7 +3KmvW/h75YvcbtZcJoSTl0bs3A2kvABq1p1AuAdFzEnSvx8QjhtCxz7Bo7ZoPVxkzbi O8qEVO0+JppHqjPK2rDiYgMvBNL6IEwVh5R5YP5L5vGzYCyEc8RMaYWqnmkwkaJoYA/1 6gcjOKEOJXxmVUbCAj/WEQRbp0GDt435I6cxJCgWzRVcdAO/isl87S9qubkTrh8VFn5S VD/g== 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=6EGHBJr/siM/pdwXEUEQclk4ZNpHlp4udszmTbY7hrM=; b=jiO1P9FmBhsvghMtLR0Uzh4lotw9cw/83AnY7xjJfenD9mX/FPX9eqx07/Ou0D+9yx p1ptrj4gGy4Fstr4MQ9OyDD4ODGOargjFiuPkv96Pfg+Bcm2aPyp2CTGaVfZq6OajJYk MBl6rtQFwxlGBulcu8r7FLznCDUJSScoMB++L1xf0oFGFPyDiTrK9lkpe0JfC2cM+uik eyxP9iJazpGzpJOWfeCIIF1sHquUxHqGM0zGfXL8Bv/3loie4wpX/lZGff/RgQlpsKrb il7ZwVD94Bg5m2NFS83ilteEpHbXTvWdRcVOR3HpwbWgzBif/RJnWbGCp5uNn6tepumt NYQg== X-Gm-Message-State: AOAM531GqdecRDHbnkRjq37LbnJsbSpT4dgRC5zokDO0TvQLPwxMK0vF ExFLXQiPnZgYBgoUJat77JDDvA== X-Received: by 2002:adf:9e48:: with SMTP id v8mr21997979wre.55.1605548282267; Mon, 16 Nov 2020 09:38:02 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.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) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 43/43] drm/radeon/radeon_drv: Move 'radeon_gem_prime_import_sg_table()'s prototype to shared header Date: Mon, 16 Nov 2020 17:37:00 +0000 Message-Id: <20201116173700.1830487-44-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_prime.c:43:24: warning: no previous prototype for ‘radeon_gem_prime_import_sg_table’ [-Wmissing-prototypes] 43 | struct drm_gem_object *radeon_gem_prime_import_sg_table(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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 | 4 +--- drivers/gpu/drm/radeon/radeon_prime.h | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 211932d73b191..7a0989b397da1 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -55,6 +55,7 @@ #include "radeon_ttm.h" #include "radeon.h" #include "radeon_device.h" +#include "radeon_prime.h" /* * KMS wrapper. @@ -129,9 +130,6 @@ int radeon_mode_dumb_mmap(struct drm_file *filp, int radeon_mode_dumb_create(struct drm_file *file_priv, struct drm_device *dev, struct drm_mode_create_dumb *args); -struct drm_gem_object *radeon_gem_prime_import_sg_table(struct drm_device *dev, - struct dma_buf_attachment *, - struct sg_table *sg); /* atpx handler */ #if defined(CONFIG_VGA_SWITCHEROO) diff --git a/drivers/gpu/drm/radeon/radeon_prime.h b/drivers/gpu/drm/radeon/radeon_prime.h index 11b7f80987834..24ddfd4b48a6d 100644 --- a/drivers/gpu/drm/radeon/radeon_prime.h +++ b/drivers/gpu/drm/radeon/radeon_prime.h @@ -35,5 +35,8 @@ int radeon_gem_prime_pin(struct drm_gem_object *obj); void radeon_gem_prime_unpin(struct drm_gem_object *obj); void *radeon_gem_prime_vmap(struct drm_gem_object *obj); void radeon_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr); +struct drm_gem_object *radeon_gem_prime_import_sg_table(struct drm_device *dev, + struct dma_buf_attachment *, + struct sg_table *sg); #endif /* __RADEON_PRIME_H__ */