From patchwork Fri Nov 6 21:49:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320852 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1657182ilc; Fri, 6 Nov 2020 13:50:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQeai/Lr0ObPsNRAHuJrvxmDMhGnTPpEpE1EwW10wQ03948ipriypzWUC0+FF/Eb1pwQO5 X-Received: by 2002:a62:7883:0:b029:18a:e054:edf1 with SMTP id t125-20020a6278830000b029018ae054edf1mr3602763pfc.70.1604699422694; Fri, 06 Nov 2020 13:50:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604699422; cv=none; d=google.com; s=arc-20160816; b=hG64wc1+rcyd7C0LR1MZTUYj3AgmiP34XRfU/LrGLYW+niqDaVZs/dqxKm5Af36roT dg4Ue6peu0g/X8aDePUo4bwvE6McNq1evg3de6g73DLkSp648bMzN/aQVaNXdU3kq55W ybvqpYoyL8r+BBpPaeU2EavPMd74ACOWM8gwyUW1y2av1I3xXjZijn6/EIex6cOL+ycV vFPB6gNnFxU7vmUjJeEDtLq9+L6kmRjl5GhOL9F7ZKCzj7fy1rW5SP3PdsuCeSGGPskv FF7fxeq67YECBXPuJrZ7dXmtXyWRG52+sD1HE60CTBJ4Jye8c2rxOE5n5oFwtN1FDbyt XPkg== 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=LDHo8BUNURxST+bo1UHsjcOMPIqn1JW/9WvLv2Y2UJo=; b=zzihVs9cXImekVd3k+QLdJOWhei+s3Dz4zOIwN/Ro/rWVxRhG6rECWvT/SUe/9zIa5 QSz16lYLkzTtF+/jtMpXu1L3xqic0U62vVpdOB5MI0p4BdFyU7KpBw/BODeC6LLMdxs7 jwSVhXi44cNjWB2bJTO9xsctNVs3y7OXfi9ti0FfnlmdjLbRv59g+o6dl9KVwR1XGGGp 9yZFj6x1PVVl4NbztBg1phStukb63xAoJFOd38sRfAWSURMwVQlprIKtgov8wXjvZajr ATIEfMjhFDZi3mpWMhpnXbLfcfBP1+9ndngjJ4RRNrzQ9AoXkbtw+JrPcV2EkrAEf+a+ S+eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=eXZxFJ0D; 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 p26si2171016pgm.183.2020.11.06.13.50.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 13:50:22 -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=eXZxFJ0D; 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 AF4126EB26; Fri, 6 Nov 2020 21:50:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 631B46EB2B for ; Fri, 6 Nov 2020 21:50:07 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id c9so2843724wml.5 for ; Fri, 06 Nov 2020 13:50:07 -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=xaVwrMr6e/jbnTc5qGRYSEriQiljvoWqO6b2JcTWvj4=; b=eXZxFJ0DJnXnG4PTRnW4zbY40yCi26ZRguq8FgTlJbA5SNWLBT9jWR5zy1R2sUX1TM CMHOP+N7nrftop8HRYZB+EagLdSwgk3Z/SXWWqj/O97kqn1n+TDDyqo8b0KoNy3bReyb HPe4pHgcNYeo3m2J+aH4PH4Lc+6HNLQwlmWJ1Yqo5OXuPcc336PxwRnc7u3uPpoqoeQm EcbvtA9V1xc983pr9fJX2OQTH+ogpHZKb4opW6oKP9iDkH2ZS+wUuhPTYB4AH4SQRTiJ i7HVBe4elFUAD88VJK0DZAAZSjIQE0ehoP3LF/KWBD7ru9eGI0jGKdsWChjT9uWyOavh emoQ== 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=xaVwrMr6e/jbnTc5qGRYSEriQiljvoWqO6b2JcTWvj4=; b=msP+F7cn5+MMtvlCf8jqBhdrC6CeUVGOPJHAa7gXDDbEGNN16rIqCEaBz86aAiFAvS Ev8ARzSkNiP1yr2ItAo2M3VeEhNOWgfxwvNpmY2teSCalhSxRpIrJ6mg/T9QnvarNdd1 xdFGGmKzuvo3m9jwP0RUsLS3Z4hnSO5dAutqixbO+5e5UrqPIw23VKGouWs/Shs8E6Q+ 1l3p8GOAa4JrB2GopUuRd2IsZy6KDSYOPXavZPzkUjR1DcQPSyaWDvlsxyacZX/T0vK1 yn3iXtJLQF7vD2+cCtVThCt+98YZrb2wwfYx7unf/GTgcx2J4YWSo5QZw8YlkGYCtnOR k/3Q== X-Gm-Message-State: AOAM533h+QRUYiOmKsS6sxLlq642tYY9LhIGkNygJeeuxUYPOw9MJZsr PBf+vtoiI9QvdUm1FbuQi+VIWg== X-Received: by 2002:a1c:5605:: with SMTP id k5mr1502624wmb.99.1604699406015; Fri, 06 Nov 2020 13:50:06 -0800 (PST) Received: from dell.default ([91.110.221.236]) by smtp.gmail.com with ESMTPSA id t199sm3981084wmt.46.2020.11.06.13.50.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 13:50:05 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 10/19] drm/radeon/radeon: Move prototype into shared header Date: Fri, 6 Nov 2020 21:49:40 +0000 Message-Id: <20201106214949.2042120-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201106214949.2042120-1-lee.jones@linaro.org> References: <20201106214949.2042120-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, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Unfortunately, a suitable one didn't already exist. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_device.c:637:6: warning: no previous prototype for ‘radeon_device_is_virtual’ [-Wmissing-prototypes] 637 | bool radeon_device_is_virtual(void) | ^~~~~~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon_device.c | 1 + drivers/gpu/drm/radeon/radeon_device.h | 32 ++++++++++++++++++++++++++ drivers/gpu/drm/radeon/radeon_drv.c | 3 +-- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 drivers/gpu/drm/radeon/radeon_device.h diff --git a/drivers/gpu/drm/radeon/radeon_device.c b/drivers/gpu/drm/radeon/radeon_device.c index 7f384ffe848a7..ad572f965190b 100644 --- a/drivers/gpu/drm/radeon/radeon_device.c +++ b/drivers/gpu/drm/radeon/radeon_device.c @@ -42,6 +42,7 @@ #include #include +#include "radeon_device.h" #include "radeon_reg.h" #include "radeon.h" #include "atom.h" diff --git a/drivers/gpu/drm/radeon/radeon_device.h b/drivers/gpu/drm/radeon/radeon_device.h new file mode 100644 index 0000000000000..c8e6dd2005224 --- /dev/null +++ b/drivers/gpu/drm/radeon/radeon_device.h @@ -0,0 +1,32 @@ +/* radeon_drv.h -- Private header for radeon device -*- linux-c -*- + * + * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. + * Copyright 2000 VA Linux Systems, Inc., Fremont, California. + * All rights reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ + +#ifndef __RADEON_DEV_H__ +#define __RADEON_DEV_H__ + +bool radeon_device_is_virtual(void); + +#endif /* __RADEON_DEV_H__ */ diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index f5f1cb700d873..560267cc25892 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_device.h" /* * KMS wrapper. @@ -300,8 +301,6 @@ MODULE_DEVICE_TABLE(pci, pciidlist); static struct drm_driver kms_driver; -bool radeon_device_is_virtual(void); - static int radeon_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) {