From patchwork Wed Nov 11 18:35:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324127 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp622841ils; Wed, 11 Nov 2020 10:35:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJySziPRbGCwCsgHSfZR0cj0L0HR2GxX3EsL6PGrvs8oJJIrX/bP2eTAcb3HfxKVMphW8wqn X-Received: by 2002:aa7:9f5a:0:b029:18b:594b:fb6c with SMTP id h26-20020aa79f5a0000b029018b594bfb6cmr24875008pfr.45.1605119759572; Wed, 11 Nov 2020 10:35:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605119759; cv=none; d=google.com; s=arc-20160816; b=QB7WlgPFlQGzI0S6nLO5As8hBdUZPlJC6V7I+OY+jLk0FB6sOdgUFnxi0JINVSkozs odkwT+h1EBhsXuxNhggSF3GnHH4RVV+yXz8Ka6rgLzOKNaAI+OFczYt+EsGN495eZReN BsWwtqDekUVYi6uJgLxfCXEnUVgiYJzezvpE/VIQRsGm1ZzctcuFHfaeTEy55+e6lgJU wBQDHv3CVYEYIuS1erm1NIvhsCi/48DE9XRZMPYcjcke5x4G+Eb/onVusel2kzA0O606 tUOjwAlGTXkASGblKx9YvVtKMuSLv+QCqulDrhe8L8LD+q3JE2dvXOTa6LL5fpcs6Dd7 fXZQ== 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=6WOsltnY+D0CuXNrdxx1fcTV9NNf7nvbmHjf+SVNo8E=; b=qGIRdH/rSvc8mpjsCGHA68aYA1GwUl/0dwN//Ovql7Abq98nqpdFG8ICiqdJNP7kXe Z7CG6leUJoMoUjYqMa5lzAOAAZnYA31kw/Pp9YWY4gvD64CSLCmEW/IJvPeFlSHyqr9R PRHjbFVJRg5S19r6Eg3ddL0VvGJ916mA7zUMxooNP1H2fjVahFhuz4qkTvlxmtwlIafw G3jaxolqRkCXU9Dr69qNEn0F6Zyph0zMkLkxhEmE83VETbzV3KIVxpWXxbKG05cAUHQQ /dcBMFCtcc8OjldwkV2XqjjFBY7Qj55sDEc8Dh9FQnbIGTpJ+mb0etkv4BSFi7soDvu5 6rlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=uWL7G87a; 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 t3si2573103plj.0.2020.11.11.10.35.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:35:58 -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=uWL7G87a; 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 9D9316E0AC; Wed, 11 Nov 2020 18:35:56 +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 57CAA6E0B6 for ; Wed, 11 Nov 2020 18:35:55 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id k2so3527974wrx.2 for ; Wed, 11 Nov 2020 10:35:55 -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=eP0WyWZg5ruAlRDHyNqDbB7ackT3+aNOib1WfADr30A=; b=uWL7G87ad8BBVCkHBLVEpHZDR8zZqKdyrnOOfcEpLPyUY3xT+ts4pkohRGIbD+xnu8 /Iz+STdZtJMMEoeMJaIhC356yaZnl6WUZGi47iCmWDzKV0Mu+VkcfBm4HTxKQ+RO0KA/ HdkdQwGyTAqbmjccN90fWErcuo6zeYrO+h6Da6EK+C9xPXHLyLa6YAqONl16i3IQEvcU +3siVCh0rpVbt1upZqzW+MliM3OXB0129YlDV3PAHMl9JKSAwWTt9rrH9aI+w81zgyCA ulk7nZN40BMCJdrrUgJPMrIoFuerGLtgVecgPs39c3C4GsMjHzKzET9sK6WY6ikVhKpN dn6w== 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=eP0WyWZg5ruAlRDHyNqDbB7ackT3+aNOib1WfADr30A=; b=ZK0xrcnfV+5U95UDQErvWB54QKdrIf8MhIA1QhZ/GnHc90c7WubqkmXTGHa7S4Q8XP JkBz4KurguMvSj4XqxtI8xLjj+fa/wpcaLifOjVzPxtEy72zIpg/njYEXNzDO0QZRWpL K6FiZGw9OtwRvcxGd0NvZBDaFNYCDrvqUFGDAHaJ1YOSAvbvAaxNN3Cz1qNriXco8BFr 1nygiEt+Yb7Rscx/HX+FdBDFutR5lgsiDNdTvDIm3W8t2Hwc9kdamoqPjAKJXgsgpR1x bkgTDIDxUjAPCLURrXsnbiDahfgoVB8Dee9s3hXE/+JFSiXXll2Zq4DSaVv5h5+l8X1U 35jw== X-Gm-Message-State: AOAM530DV9q01NP9iHZdjVJ09zjXjvxhE+ov6EqQHJSWMC/E3tuSpqVf C3UaKlAE+yuQo0Z2ji5nNGwupQ== X-Received: by 2002:adf:ed11:: with SMTP id a17mr16771878wro.197.1605119753978; Wed, 11 Nov 2020 10:35:53 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id k84sm3558311wmf.42.2020.11.11.10.35.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Nov 2020 10:35:53 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 04/19] drm/radeon/radeon_atombios: Move 'radeon_add_atom_encoder()'s prototype to shared header Date: Wed, 11 Nov 2020 18:35:30 +0000 Message-Id: <20201111183545.1756994-5-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:2721:1: warning: no previous prototype for ‘radeon_add_atom_encoder’ [-Wmissing-prototypes] 2721 | radeon_add_atom_encoder(struct drm_device *dev, | ^~~~~~~~~~~~~~~~~~~~~~~ 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.c | 4 ---- drivers/gpu/drm/radeon/radeon_atombios.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu/drm/radeon/radeon_atombios.c index cc80651b25773..be96d9b64e43b 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.c +++ b/drivers/gpu/drm/radeon/radeon_atombios.c @@ -37,10 +37,6 @@ #include "radeon_atombios.h" #include "radeon_legacy_encoders.h" -extern void -radeon_add_atom_encoder(struct drm_device *dev, uint32_t encoder_enum, - uint32_t supported_device, u16 caps); - union atom_supported_devices { struct _ATOM_SUPPORTED_DEVICES_INFO info; struct _ATOM_SUPPORTED_DEVICES_INFO_2 info_2; diff --git a/drivers/gpu/drm/radeon/radeon_atombios.h b/drivers/gpu/drm/radeon/radeon_atombios.h index b7c76920feb7d..a895a7002c3d3 100644 --- a/drivers/gpu/drm/radeon/radeon_atombios.h +++ b/drivers/gpu/drm/radeon/radeon_atombios.h @@ -28,10 +28,14 @@ #ifndef __RADEON_ATOMBIOS_H__ #define __RADEON_ATOMBIOS_H__ +struct drm_device; struct drm_display_mode; struct radeon_device; 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); + #endif /* __RADEON_ATOMBIOS_H__ */