From patchwork Fri Nov 6 21:49:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320851 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp1657161ilc; Fri, 6 Nov 2020 13:50:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzF74AeJ9QRRuRJON4LwzTwaR8Q+XRxyXe4WRkhJ8HcK8qij/ZROAgzqmJbYw7ZBbNgO2xx X-Received: by 2002:a17:90a:7784:: with SMTP id v4mr1711930pjk.60.1604699420749; Fri, 06 Nov 2020 13:50:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604699420; cv=none; d=google.com; s=arc-20160816; b=cRwJWGAEt7MCQMHNpHmp3hGQQnVz+fd2a+DxrK/g45P0SS6VwikQtllj8mp1e2W4DM mnsOeATxK7HQAqyDEJukC52hhDZr211KrwLiuFbMhLmHy5OT+KoU2Aig/FTdRklHrejq zl8scwBke7zmLlFjymcoMSf4dHqoIsrB7DILQoMjy6Fym2Qp/aSW8iRToQ7qyXgvxyWI FU7qmSqByEIyxv+WYyU+UEvXx1FTcq10TF0lg8y5knUGTRFExEbxbCd+3ZPHg61GoESB UppemgNwRYUxAf7Ajjx+T9oX9eP6mNGPS4L0nekgL8M/rpcCnvqXpP6/Cw1f0ynS0Ir7 189w== 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=7BbUR6uCgS8CkWR/vu/bZu4x8DXhqQxXFInLojMksuk=; b=lsiaDlLied43vW0s47d1+64K332LUeHHHtYUDtoQsScvEEE3w7jadWtmsiZcRCspBb mta2I5+igvNGlznnSdJ2yAme5uz3X/eGY/mbhJxmZa+6cBZz2k7W2+/KZzvMmBxWb58t V6bN0ketw/mVbHArNoqlq94ODu5Pfm3TR1N/AVHvMi/SF7/+Cd1syqLwSnazcKN9w91G wi62+wt0ULlK/p+aNwHOP315WNaadcBGLotJSBm96paULc4UWa6tUtrFMSnCcYqxN19h muyK4Sp0qDEkd1x+OJLGm+L9lQvBG0Shr8/CztSk1dMLccWoy1rKtQuXhJ3ob59x+blV nwrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Oia3Jh4+; 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 w2si2053877pll.338.2020.11.06.13.50.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 13:50:20 -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=Oia3Jh4+; 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 7BA346EB2C; Fri, 6 Nov 2020 21:50:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 07A766EB25 for ; Fri, 6 Nov 2020 21:50:11 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id n15so2791771wrq.2 for ; Fri, 06 Nov 2020 13:50:10 -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=SjA8v4JLA0wt0cf7/uKVTogVLZnV31tTyBrzOli6fTM=; b=Oia3Jh4+Z4jZyw1RDFWjabOewBGewQgIFa2hSMdeANo/YNjwRKSyyHR/LmjPTFtqt1 s1PWVzmYK/yiFcYzVOiScC7s9flKEXDvrwkM8+oFQquVQSrvMGl3gMbuKiDFQZsoSMb0 rVNafzN6YaSO41UutCfcOGF7aLMiRl5tBPvTD3hz392MP3sMQmLcsT4BykIuFqirx8xj L0xAzBNZGRx/MvGtnG1EMg+6rETJR5G94Dl9+sR3bxebp6rscL2fgQ57Y0TR5TU2S0dL hBmeBZSxQW/agwFMc4PH6qo9+jx7lpTW+LKLienKAzuco0zomsAXcRe7G/4pzTNyydrt sa0Q== 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=SjA8v4JLA0wt0cf7/uKVTogVLZnV31tTyBrzOli6fTM=; b=Y4dyr9lHJq/ckIWIOamNXr8UGqCSeqPTze2OYAfduGBiGbVphPRZRsLW736CTTE+ts Op89rhZtz3ig2Jwbr7FeHIE71AU0Y/ygAHkQ6qRfvD9IgYUUSFxRDKllSKtusj1vFdOf FKJdERMlbNj96+XZvE+EibmLX0igoKw+v6YvFPY22dY03I0RERnUnYr+olvoKkUUjPnU Bg552Z/wnS1EnUmfw3LADoF8aN8uNgG4lv0OvIy/8y7X5cxH07UwWj9j4LRYYDIVshHT Va6QtPDAIDUc177wzj2/n/eIHmxOE4/wdgfOfhonxU8M5kmK6z3KktGY3uovalwZFoLb bl9Q== X-Gm-Message-State: AOAM533hvunc4XqFZF46bQnIV78qYIc9P9iKfNHll4TAoADCxgtcDirj vDCtbOHKUOelmh07Kl3dJONl4g== X-Received: by 2002:adf:c14c:: with SMTP id w12mr5035604wre.40.1604699409717; Fri, 06 Nov 2020 13:50:09 -0800 (PST) Received: from dell.default ([91.110.221.236]) by smtp.gmail.com with ESMTPSA id t199sm3981084wmt.46.2020.11.06.13.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 13:50:09 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 13/19] drm/radeon/radeon_drv: Move prototypes to a shared headerfile Date: Fri, 6 Nov 2020 21:49:43 +0000 Message-Id: <20201106214949.2042120-14-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, 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): 62 | void radeon_driver_unload_kms(struct drm_device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_kms.c:105:5: warning: no previous prototype for ‘radeon_driver_load_kms’ [-Wmissing-prototypes] 105 | int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_kms.c:619:6: warning: no previous prototype for ‘radeon_driver_lastclose_kms’ [-Wmissing-prototypes] 619 | void radeon_driver_lastclose_kms(struct drm_device *dev) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_kms.c:634:5: warning: no previous prototype for ‘radeon_driver_open_kms’ [-Wmissing-prototypes] 634 | int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv) | ^~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/radeon_kms.c:705:6: warning: no previous prototype for ‘radeon_driver_postclose_kms’ [-Wmissing-prototypes] 705 | void radeon_driver_postclose_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 | 6 ------ drivers/gpu/drm/radeon/radeon_drv.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c index bb7b33e535f81..e0d664e9e2feb 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -112,12 +112,6 @@ #define KMS_DRIVER_MAJOR 2 #define KMS_DRIVER_MINOR 50 #define KMS_DRIVER_PATCHLEVEL 0 -int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags); -void radeon_driver_unload_kms(struct drm_device *dev); -void radeon_driver_lastclose_kms(struct drm_device *dev); -int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv); -void radeon_driver_postclose_kms(struct drm_device *dev, - struct drm_file *file_priv); 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); diff --git a/drivers/gpu/drm/radeon/radeon_drv.h b/drivers/gpu/drm/radeon/radeon_drv.h index 173deb4634146..ac7970919c4d3 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.h +++ b/drivers/gpu/drm/radeon/radeon_drv.h @@ -118,4 +118,11 @@ long radeon_drm_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); +int radeon_driver_load_kms(struct drm_device *dev, unsigned long flags); +void radeon_driver_unload_kms(struct drm_device *dev); +void radeon_driver_lastclose_kms(struct drm_device *dev); +int radeon_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv); +void radeon_driver_postclose_kms(struct drm_device *dev, + struct drm_file *file_priv); + #endif /* __RADEON_DRV_H__ */