From patchwork Mon Nov 16 17:36:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324455 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3503491ils; Mon, 16 Nov 2020 09:37:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJw3Pl1stChnsrQS9OVUZFiLXqjhSp+up1D65bmSwHrf/XyGPfqicZYOjpQKAqwTkQ3CxGz/ X-Received: by 2002:a63:f24:: with SMTP id e36mr270149pgl.57.1605548279173; Mon, 16 Nov 2020 09:37:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548279; cv=none; d=google.com; s=arc-20160816; b=qGS7lR1XPX5MpTBu57Mqpw1suvXjrk0Uy1AxNYTUdf6yOMTC8vZG8+TV917V/tbdPi 0t6H1O6JJGlGwP76m4z8iBPnzeUQsH9jU9ExaDSu8Df+YTVJ8mnuayi8uCaVmUHPDpgs 6adYwqg1fNlUzE7ZVbgPWv2OOxA655wVcwqLmwFu51OEHAJY949tm2Znc55hT36VaPNq IOln9LlR3u+/sWJ+lDpPobWxwR9opkglurJ0rv5i1XoCqbo3/FHHQ2D/cCDtQuDAzOGJ /WnAxreO24Qgv+LuGHq53h2UbKynkpZTfRKqzu6mGuIkJLRTzKd32ojvIxDubf77lOk7 jrcA== 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=p0S17UxN1q+aCeA66us2XJLsw2o3wVCp8GUkzdy/p2Qwhjv73lt6jo5ZFl1vkh/q3h 0vd1vY4twkqNmSetEba3uq1f4gcWfl5831a+GlKtMCaA8Im42KQu4k03v4LW9jPslJB4 VffJ68LHfhnCemMR8/5qO5AhqfE+m6H+wDs9Wm+V0/erUvmeXDsXydDGpztgcN04sQmD cl+FDNqO83SHMRaNkZlNsXm+V8xUUVj+48Wx+kG2y8U+omDhCV53fFsKgcju6TcA9H28 aTX+o5/d3LFaRJIoq1rQP+tHq3GYF4nEU/LHLJlLXJUz3666sh1Jo/nKWxXFl1/GofIo lsrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=hJrk2c+M; 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 v6si16292957plp.384.2020.11.16.09.37.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:59 -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=hJrk2c+M; 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 00CF76E069; Mon, 16 Nov 2020 17:37:53 +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 415476E064 for ; Mon, 16 Nov 2020 17:37:43 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id m125so21586wmm.3 for ; Mon, 16 Nov 2020 09:37:43 -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=hJrk2c+MVVdRgOF38FOlxwZWmiyLarfSS1Z8YpKs4nyoSArMJJWYspiabittQjN7ge PEYx4sy7GfltMkTs9r1iIcNL2prnE133gYn55x1A92PuiVhze7KyJISv2G5hxR1c7tCo TKcGtqO9xPjRvnmgCca27nh5qDlemubQhWynuDC2ye9xIbz/1WKREnvkFuPTp9lqSJwB Lyt32RJ0UiU6AlAnqUlzu9N9RhT8UVpqrogxW+yNJyDb0z++8MYJYiULpdVM1c+b1Itw dDOykSolZ5VlKqsKfFuGndE76bz3Jj2OUe0QbLhyi1VnQlFaMcjB2sOqdiKFpvWAzWNg XXvw== 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=CJknQDJIwVriIp37CyGe+LFYV5xCiWRZIoZErM7klltyHQy0UKuK1pjt5yo+NLBnnz 0PPW04Q/eH09cYeKwUvRV3cxInBbxetLYwKaOwki1dzeKyOwdNMgRcd3pLI1PeyMq9F4 z9aBQKVXE6mi5OidgM7JrDz+uOpyzxI+wrMvOW4+RNJ5hjeKqCgb1EiNglfCcWWJECdA kGZ5wDS31wW4gO0+og7FJy/Orny7MfhQmwc6kFPHuLAOpTUAWZPEog8jz0jSKClFy4Rg VHSGmQ8Vv5fha+ZvD8YaBt9VXPbaNN1EHGYWufettVNanbuofK8jERkwOk16p2ec4AfG zhPA== X-Gm-Message-State: AOAM533UrXTUrMpe2ddv2HVhT4jxBRSjzvASjONbTM3RvVnupCxWKTYD TeFa2sHtdQW6TkxlTivS9dG4AA== X-Received: by 2002:a1c:97:: with SMTP id 145mr18960wma.72.1605548261899; Mon, 16 Nov 2020 09:37:41 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.2020.11.16.09.37.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:41 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/43] drm/radeon/radeon_encoders: Move 'radeon_atom_backlight_init's prototype to shared header Date: Mon, 16 Nov 2020 17:36:44 +0000 Message-Id: <20201116173700.1830487-28-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 , =?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;