From patchwork Mon Nov 16 17:36:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324447 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3503239ils; Mon, 16 Nov 2020 09:37:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJw2wekOvglIdP8MaH/neK9MCXYyCpdV90hGzTaCBHgjxxD0uAXuXigvQ4W4F8evfhYaWp0/ X-Received: by 2002:a17:902:a404:b029:d6:ebe0:6e57 with SMTP id p4-20020a170902a404b02900d6ebe06e57mr13933412plq.12.1605548258103; Mon, 16 Nov 2020 09:37:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548258; cv=none; d=google.com; s=arc-20160816; b=FcO5X+O7lbgdlMwpGta4ld9xeN2/3Qwijdnj8nCpcO1xiwH9Ar/+gVxA6U07tnohHF xRy3IS7nMJy2mRjUSASbVKFT2tK5HW7GfleQukzyH/OWs6wtttw8GJIKp8H9saKDEa0J G4RcomhplYpALs3wFKqvLzsj9Wn1/lPLo0DKIR8/1QuVlsY4BayS1zTlZ2CGTPgDiKji 165ksXo+UOXwpz/VklUgSGW71PjHdt+m53Qsik/A7/uVDoVRbhKMtk5V35MmPjI2ENej fxlqrh3pm0yj/4wu8h19SNQxtrHjLnGFyceblVkU17Ealwl+01HdXpMQX0Lqb4mTbo0c Bm2A== 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=vcd9Fg0dGY4X4aj26aOnXyi3le1MKBQA1WyS2UlwkE8=; b=cD1ak3prCoS2NdJMn1AQVyZJhEzou2cVzrkqMRDPfOndriOU7RpmDe1NbfZ7kY51RO GIjZnZmcCwRHvDteBXplmMVgRYJwsOFBKD4IEbCGDITe15XoRBsKHW/bFnRIqVph97s3 3blEDm9mEEi9umQaXsL1aliBzp8Q/wfvnwLSlgKwuOrRsH9Fem+OKXfQ+bpj9LKEiHbo KW2ltupK8EzSrqnBvY0wzmJKFRQQ7HN5/pq4HhWz+01U7eaiGbKrZJT2f0+y8nFpk+Es MyTruY4SzxXf1MB/cjuIKmrwQoLiBtz/GtP3JnB4XNWNbS9lPzpi9z0lGGkWBIv7fssU D+6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CmPxnfrb; 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 g15si5427pju.120.2020.11.16.09.37.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:38 -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=CmPxnfrb; 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 DF64F6E054; Mon, 16 Nov 2020 17:37:28 +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 8F9536E04E for ; Mon, 16 Nov 2020 17:37:24 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id s13so15698wmh.4 for ; Mon, 16 Nov 2020 09:37:24 -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=LOhlVom8ArIcUSlzkbPekEoXplId4I2upAMKLydb2GM=; b=CmPxnfrb0iveHS+EM+94RdsbI4La2NMSex8aL0XxYO+VsmiHxb1T/B0NVOroiN4eNy znBmDRIvsBXEblbIonPmhP54WgoTytMUlbfC+xD/LJkUwRKBoi5dfGThNDnjMMn1GPZQ HURBVacMhPpsqtVDiGkQdoi8T9Hvgq0fwOQyAVwuw7HQ1SQao+jOshpXOjMsm9DX+Jlo RBt20P0RIfkJ+fsKhkZNswBsAgph2o0G2IjIaLW5x+5Z0yIeauoJsnQIBu/uClSaKxod euCSaxmgg0cNnMcDKWUevDeoTsfpdsYbqv6Mrdxk8hn0lbFaeOjLcxwg/65wZ2ZVl5ti k8ww== 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=LOhlVom8ArIcUSlzkbPekEoXplId4I2upAMKLydb2GM=; b=P3Led8o4Pjag9tNhMReiaVfw5KN0YZXwpJMCpQKtfnFk+xq1/baorxqzmesh/eY8RK A1T/Vi65f6kDI0ECWOSafxunOU/LMqrULp7FAXOP6rl8i6vd97OvDu/wCgzKGOFTkYYO 7Jv1CZtngvSRqFeRZ9zn0Cll8nrWqGXd6yFkphZ135KK6IFwOLewoEnTNgKGwHnEUL4i aI6r8ewzLEXxAVfZrw5bosdk0hRGC7DEePwRghm6nKr5LECeiezkuNlDXxw1TsHNWS9e VhE7M3uNLaszoI+UmnQwvg8BNSdweUNWxVRCa1MqFQzeQEBDHXGHf/DmWi1X1/sqlWDh rjwA== X-Gm-Message-State: AOAM533d5yeZy+utD41zv+fXuymS+qABWmac2B8gjcgeOqkNCsYIAIfE CY+p+XOd2ADB3jhOQ6JZ7gnxgQ== X-Received: by 2002:a1c:bcc1:: with SMTP id m184mr5069wmf.132.1605548243272; Mon, 16 Nov 2020 09:37:23 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.2020.11.16.09.37.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:22 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 14/43] drm/radeon/radeon_drv: Move 'radeon_driver_irq_handler_kms's prototype into shared header Date: Mon, 16 Nov 2020 17:36:31 +0000 Message-Id: <20201116173700.1830487-15-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_irq_kms.c:53:13: warning: no previous prototype for ‘radeon_driver_irq_handler_kms’ [-Wmissing-prototypes] 53 | irqreturn_t radeon_driver_irq_handler_kms(int irq, void *arg) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_irq_kms.c:120:6: warning: no previous prototype for ‘radeon_driver_irq_preinstall_kms’ [-Wmissing-prototypes] 120 | void radeon_driver_irq_preinstall_kms(struct drm_device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_irq_kms.c:152:5: warning: no previous prototype for ‘radeon_driver_irq_postinstall_kms’ [-Wmissing-prototypes] 152 | int radeon_driver_irq_postinstall_kms(struct drm_device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_irq_kms.c:171:6: warning: no previous prototype for ‘radeon_driver_irq_uninstall_kms’ [-Wmissing-prototypes] 171 | void radeon_driver_irq_uninstall_kms(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 | 5 +---- drivers/gpu/drm/radeon/radeon_irq_kms.c | 1 + drivers/gpu/drm/radeon/radeon_kms.h | 5 +++++ 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index 2b9deaead99b2..211932d73b191 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_kms.h" #include "radeon_ttm.h" #include "radeon.h" #include "radeon_device.h" @@ -117,10 +118,6 @@ int radeon_suspend_kms(struct drm_device *dev, bool suspend, bool fbcon, bool freeze); int radeon_resume_kms(struct drm_device *dev, bool resume, bool fbcon); -void radeon_driver_irq_preinstall_kms(struct drm_device *dev); -int radeon_driver_irq_postinstall_kms(struct drm_device *dev); -void radeon_driver_irq_uninstall_kms(struct drm_device *dev); -irqreturn_t radeon_driver_irq_handler_kms(int irq, void *arg); extern int radeon_get_crtc_scanoutpos(struct drm_device *dev, unsigned int crtc, unsigned int flags, int *vpos, int *hpos, ktime_t *stime, ktime_t *etime, diff --git a/drivers/gpu/drm/radeon/radeon_irq_kms.c b/drivers/gpu/drm/radeon/radeon_irq_kms.c index a242b6053d47e..b8b7f627f0a9c 100644 --- a/drivers/gpu/drm/radeon/radeon_irq_kms.c +++ b/drivers/gpu/drm/radeon/radeon_irq_kms.c @@ -38,6 +38,7 @@ #include "atom.h" #include "radeon.h" +#include "radeon_kms.h" #include "radeon_reg.h" diff --git a/drivers/gpu/drm/radeon/radeon_kms.h b/drivers/gpu/drm/radeon/radeon_kms.h index 36e73cea92154..913c8239d5d8d 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.h +++ b/drivers/gpu/drm/radeon/radeon_kms.h @@ -32,4 +32,9 @@ u32 radeon_get_vblank_counter_kms(struct drm_crtc *crtc); int radeon_enable_vblank_kms(struct drm_crtc *crtc); void radeon_disable_vblank_kms(struct drm_crtc *crtc); +irqreturn_t radeon_driver_irq_handler_kms(int irq, void *arg); +void radeon_driver_irq_preinstall_kms(struct drm_device *dev); +int radeon_driver_irq_postinstall_kms(struct drm_device *dev); +void radeon_driver_irq_uninstall_kms(struct drm_device *dev); + #endif /* __RADEON_KMS_H__ */