From patchwork Wed Nov 11 18:35: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: 324132 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp622956ils; Wed, 11 Nov 2020 10:36:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyshlQcCeEQFNEihAN2TsMKemhdXiKpgm3fAO4uWPI5hTLqJPqf+Jpufh/uH93JqultKAAV X-Received: by 2002:a17:902:b604:b029:d5:d9d6:1938 with SMTP id b4-20020a170902b604b02900d5d9d61938mr22109800pls.52.1605119768488; Wed, 11 Nov 2020 10:36:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605119768; cv=none; d=google.com; s=arc-20160816; b=ANqqBkcj6JJSfeUgcczfLDwptojdkDPAh0Ig8S4jCpDR5gk2Y6pfhbu+SH3c0iNjiS 71Lv2cnoAqop/qKEpKhvvpPH0Ii8oYsGd9CD3rGvDpy/QdDFQq7UKE+JsPb4es9QC+SU IKpkfnoX87FfCurgcj9QXL8pfG+jauGCTnmRs7FO1JEyBSrzGLVeorpUZW+mr41w/5ds ftwFrDWtN4ZEkEbPOMmfSHV5iL42WFpYmaS/VV/A2M3G2l6ZaeL0CASKAVXuNnv/2iS4 R4ZtC7eGAxgg1mtlOveFqN3JkU3nceQNZgQNqy1MTygB4UaFl+dgoozH9NWrpSgdR4AY XZSQ== 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=cRogsfPjvEl9nAEn61xyDYmXUv55fxL+OK9O51v1gDU=; b=i0heNHLO+sAoOQHs0hILAUsPhWXRenAIDXIv+jX30b6JEWlL3PnPkGCo8ln3j948cE l7HO4NOVTl0QGqeLkkSnmo93jTirzYssjBFBISGNFVdaRraZR6L8+LixJejzrfeqL+0d K1uEt+YTmGukAmRU5DCUvOywl9rwnivHqt2tO64Bz/hG54qMnYKMS/EBA58YPkduMb9N 0gjy+w74HYI2aY+swgL7+wCSr/gIqVY3rli46ANvr5fW3T/kkXPU+iaayeX6b2wXuG0L i+DNkhVLhnZkLNbK84/l1UuQM9F0vP+c+QnrsGGP+ur06d2iZng2oPOaYquAl2yZjp9O lIQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NwSfZcUB; 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 h10si2374992pgj.101.2020.11.11.10.36.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:36:08 -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=NwSfZcUB; 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 D96756E0AF; Wed, 11 Nov 2020 18:36:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id 28BAE6E0D2 for ; Wed, 11 Nov 2020 18:35:58 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id w24so3281648wmi.0 for ; Wed, 11 Nov 2020 10:35:58 -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=3URZpu7tsjM6Y8F+U84uwe7BiqZoOF3VMCws5wVhmBo=; b=NwSfZcUBkZP1B3bjdQpFGUbvYxY2on6Vnsld+oALrNLXef2TBlHsg9YkXO7WHGcLx9 bGcznb7awz7rQ7aaQR5UX0KF45TaerbkAayc+4dVR5LhAMdv1ILTvGbbBLPii3oga4rz 532wAYa4d9W06NIt3THXNul+qgEaZOA8jGQ9XNKjwRsjUWof8uq3GZ8p/h3MwP3TebSR RlnyfgsYbd3/wDW9TWSGaEjL4q2ACna09McJCVHevo90DxkZh3hqnNbVh2ed2ClFb8hi rhtJ8kFUsggqFT8wgGvXYnGhEklNgHV5ahw7FUzJndF+c/JKaMIGqKwfEAU55BsxMUxe 1Iww== 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=3URZpu7tsjM6Y8F+U84uwe7BiqZoOF3VMCws5wVhmBo=; b=Vy3C15ZXWfZvDFtY0AcvIiVY5VHTElbo1DRuKeMZlXQVLrcb4wloggGhMah4oPD4nC rRKaY5cU4UWOEmHjAbLNRld5fde7SFpuFVLNUGdaQ9X+rCSUQqGWAFPvKgweMQIXaPbv XAgMcbYlwCUw6A5TBlmToFIa8Hk7+Iab+67/Eum1BXbGlfVCmih3UZc2Pn0dsMJA3h+P rf+HwKoYCw0K2hgjWDXPQOXdRg1QgVK0knCcP71GoiBWinKL5nyCj97N10LTgmotfDPK cRNEfmYswkaD2KC7RmKxH/f81FJYHcglb9K9ICbXS9UDw4ifyQI6NQ1TueMCPeGu39vs ROYQ== X-Gm-Message-State: AOAM530pgMk+V0Zza47qpJqAeYLYRdWef+soZ9Z+jcMZD4hUJkNA7Zyx WCVhlePZDMaS7j5I/NLiFUmfzQ== X-Received: by 2002:a1c:1f05:: with SMTP id f5mr5424835wmf.98.1605119756738; Wed, 11 Nov 2020 10:35:56 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k84sm3558311wmf.42.2020.11.11.10.35.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:35:56 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 05/19] drm/radeon/radeon_encoders: Move 'radeon_atom_backlight_init's prototype to shared header Date: Wed, 11 Nov 2020 18:35:31 +0000 Message-Id: <20201111183545.1756994-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201111183545.1756994-1-lee.jones@linaro.org> References: <20201111183545.1756994-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 , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/atombios_encoders.c:186:6: warning: no previous prototype for ‘radeon_atom_backlight_init’ [-Wmissing-prototypes] 186 | void radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon_atombios.h | 4 ++++ drivers/gpu/drm/radeon/radeon_encoders.c | 6 +----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.h b/drivers/gpu/drm/radeon/radeon_atombios.h index a895a7002c3d3..fd03755e6fa2c 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.h +++ b/drivers/gpu/drm/radeon/radeon_atombios.h @@ -28,14 +28,18 @@ #ifndef __RADEON_ATOMBIOS_H__ #define __RADEON_ATOMBIOS_H__ +struct drm_connector; struct drm_device; struct drm_display_mode; struct radeon_device; +struct radeon_encoder; bool radeon_atom_get_tv_timings(struct radeon_device *rdev, int index, struct drm_display_mode *mode); void radeon_add_atom_encoder(struct drm_device *dev, uint32_t encoder_enum, uint32_t supported_device, u16 caps); +void radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder, + struct drm_connector *drm_connector); #endif /* __RADEON_ATOMBIOS_H__ */ diff --git a/drivers/gpu/drm/radeon/radeon_encoders.c b/drivers/gpu/drm/radeon/radeon_encoders.c index b60a373d3ead3..46549d5179ee9 100644 --- a/drivers/gpu/drm/radeon/radeon_encoders.c +++ b/drivers/gpu/drm/radeon/radeon_encoders.c @@ -31,14 +31,10 @@ #include #include "radeon.h" +#include "radeon_atombios.h" #include "radeon_legacy_encoders.h" #include "atom.h" -extern void -radeon_atom_backlight_init(struct radeon_encoder *radeon_encoder, - struct drm_connector *drm_connector); - - static uint32_t radeon_encoder_clones(struct drm_encoder *encoder) { struct drm_device *dev = encoder->dev;