From patchwork Mon Nov 16 17:36: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: 324459 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp3503563ils; Mon, 16 Nov 2020 09:38:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxigImYDnpKufYPQM77U4db3s3rTV/ZO3JW2eQl+tMG3o3qT6sAfJaENlH01kxJPW2VjwS0 X-Received: by 2002:a63:3484:: with SMTP id b126mr247177pga.323.1605548284855; Mon, 16 Nov 2020 09:38:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605548284; cv=none; d=google.com; s=arc-20160816; b=iN1iiKlEqCWPWNxicrBSsPzaDWPCVheJ052NKLPKS/heXWGXj+Tu4UoAs/iqfBakQ4 /8K5kh1ZdHba6M0bAMwJ6flYPOq4TzARh8STv2VTPrc6AKI2nP+9w/PoZ7zD34mbC1Yk PpSB6kFjyD/PdUIF/2tGl/P3Z3wf9aMKL58BaB91FPt/lg5I0w4z0W9F87VWNU6AqVRQ 4DqoTie5nahKD27j6QBbCTbvjp9/xvoiDHfOh6Nj/WhqQIJfYG2oFz4H+EQQfWPMugpP jKq0W3hKKGNc+5xOjUloWvD0SYIzwQjoExDI2HBX+SPqzdd4wO4qp8btOcEBaCAAokUX h4+Q== 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=gOULjdtVbs6iZGl8jjCvSpF6tCnpFITbNdZAvqLQN5dFQH/aUyf24qIzDyA5NTilEq DkqOwOeAEQod2DxT4cDGP4ZznGkFRjO+ekpn4oN3yl+39nrsjAfqgzfM6It12aBEHtbT eq/ONOLqrABwJR4b5EQFw6CrQQt3RI/GGYd0PaK9OxrQx/YmPL9kegvcGnnB7YcToa36 qF3KzJ9ZrIqQHOx+5/dtfJgalVuiL+Kt0dyojPZrIa3ZxFd/IA0KBSuvweQKNkW8sxrV ueDXUUdaDaNaw9b3FfoY0+YbZuFlHMzWlslubDzyTIXpP8FTB2M1q4mNdUCif7eZQDT8 reSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=wN846j+j; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id e8si19817pja.67.2020.11.16.09.38.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:38:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=wN846j+j; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 8CAA56E07F; 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-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by gabe.freedesktop.org (Postfix) with ESMTPS id 085F86E04A for ; Mon, 16 Nov 2020 17:37:42 +0000 (UTC) Received: by mail-wm1-x344.google.com with SMTP id d142so19141wmd.4 for ; Mon, 16 Nov 2020 09:37:41 -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=wN846j+j1t9h9fPa28Onu7GZYXmQoYRLOxLBMdsgxmd2qjwO/2SHbYJ4aaZPTOwNwI Ie150qvycEdxzYdE6ALo/tJp0eHb8s/iM39uIWYiZQDcB4VODCCA6qx2PL3x1IxOyEzm pL94h3zfHi2M8NAko8DKtXEINUpu2UL/DlQGS7Zk5gfFe80wLQ5orA+eTl3yaAh0r6VC KFIJU5Qe6Hc25f0CT+oHuz4AYsncg/BtVJ0gYQz16eTW0QE8347rmKKa7A+A6aAKLWLK g+FRI4hv2PhqAzly5Q9dVAuFaGxdjBHlsW1nFIlcbHXoOuBALWhGlG+j2fgjcbRPY70Y evIQ== 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=RhFcgBlGdLkq11MIlLyPgP+A2IoLrkO2CkeBIyaT1kpIVu1BoBxuSaykz3Uoz5I5fB /TWDB77J/I1ufUSpkSKGjMNOEXy5yVBoLhd2qgyyaOIbz9/ERJYEYIzXuNWDY1HTp70s ENPCFmvaQj/9yfXINAfb95487HP1gMEQIaf7bpQmL4hQzR/H85fyBdug2kIuVp0K1UdO AR3QY7V77r7huGK/RXUUg2sa3k04x6/ayKJaWqIOjCk/zFqy53Cp6iLUpRHC8YdJKY8j n2zL0fPD3mgR23LVEEY8rbLLMamkDka2iKNN28PcB5PPdqHi6p4/vnlGsJqvPy1b549E Cgcw== X-Gm-Message-State: AOAM533m20Vyp4zvWHFceHJpOToh/f1tm7KHxdG8/vED9QNloj1LKfsx fex1sHMcbrrnrj6cPXpsK9Sjzg== X-Received: by 2002:a1c:c90b:: with SMTP id f11mr24711wmb.54.1605548260732; Mon, 16 Nov 2020 09:37:40 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id 30sm16942828wrd.88.2020.11.16.09.37.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Nov 2020 09:37:40 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 26/43] drm/radeon/radeon_atombios: Move 'radeon_add_atom_encoder()'s prototype to shared header Date: Mon, 16 Nov 2020 17:36:43 +0000 Message-Id: <20201116173700.1830487-27-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: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__ */