Message ID | 20201110193112.988999-22-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500626ils; Tue, 10 Nov 2020 11:32:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxwlHbhHo6DZbiHf2kxTkYyz9xLjcnwKV/ddHHZkZs1136ftKw0fG3vymW78JTphRJiWff X-Received: by 2002:a63:d354:: with SMTP id u20mr17751005pgi.41.1605036723181; Tue, 10 Nov 2020 11:32:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036723; cv=none; d=google.com; s=arc-20160816; b=lPA6nwkfQ2kLIprWL3hbR6D9S3zdgk5eu9Q+YA0LGhbCUNyEUrdrH/8vSULUlZJEdU dcwjxqDvm9ubp5GpE9ZgviSkOgNRQ10nbT4dHLMhmHQirb5cc7yK5uKSeORiLnVkyZ96 76UiIpmn7RFhkA7G1N3xnkUncx2+YPmpWePf3koe3q2BDBuyPeUkywZYHPaGwdfuE+Ql O3HEvdiyysS0UCkngwuNvU4oJzWVyK8pDciBt80UhqnGOJt1HRhsGb7Nh+gek3zI8ifJ Oq/X8nSrs2g+Hy+D1UGgOInxvRzEMb2vSzTpz9aQuBgOjqxDx6rhMQ/7jiy3priuLDEi ABLA== 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=/87QScOlsWDUeUVYj5UGlfERHCuMLATz5LndX4ZkOyg=; b=jeG1dJRoHz4JNGaZZjWRFepCCjo1q3/iO5MtE59XBZqI2RKCHfS1kbIwwZtgx/hEPY TfPanIlmygLSe7W/6j9bFEdHhDJXSlIP/op2U9M/s2d37Kyhcpd9MABo/eGLmkiGm1x4 VZWeqxuQAWVxTdVam/0GZ08wQgzKO2haW23wRVcyL9ykenu+CjbwsvCuMZ8cMsYB1WCd QfkQ+FAGsXPUTvrHkturFtvoUj/a/8re4+uXc0xJbKatHu0jNSUq2NYiinGhKsZ4fMzQ w1MW/AvxIZKl1QiFqbuMLHPy1hmWXawltEKMRsq30vJz9wCFzJw1rYTbfhCqVwJFBBVa W/eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=T2jBka9s; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id y143si12709899pfc.56.2020.11.10.11.32.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32:03 -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=T2jBka9s; 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 BA10F89C1C; Tue, 10 Nov 2020 19:31:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id B254F89C0A for <dri-devel@lists.freedesktop.org>; Tue, 10 Nov 2020 19:31:43 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id b6so2666703wrt.4 for <dri-devel@lists.freedesktop.org>; Tue, 10 Nov 2020 11:31: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=1oV/yz5N1u2UPD8o5d2gv6s+B1t/DAHhi2RWlvWz744=; b=T2jBka9sse1tlWAYyyPE0QhmK8In9KttLjXZkzSHP9HTQh59UL/40LMvsaOD8atmkQ /TWk7zYAzAYQbisCj8BpF5ksv9i3B3BAXUWERHj21dPwub2Q7tGUgwLrjp+JfQo19C/D Bp1jE0K8gdn1LOpxjSXJQEyXczZv6Ec/nY+xktwe7ZVo8GlXpVLJQo6CTT9sNNG5q3Ou ia0p140uu4rC10i6nWaETjRb05b5JpONzJmbjMRlEA2UuhS7HzIxDW3SnL9hsE3z9dHC bh7MHMAS6I7Mj6xULAFQpElPU6/t3cB12HJ4Xt018r6BzPBjeIIigiRopDEGBzir8ssq Twzw== 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=1oV/yz5N1u2UPD8o5d2gv6s+B1t/DAHhi2RWlvWz744=; b=j485NnsGf2uJNR9kTmO7wFdII+mQ93M6Zx4DcOciU6I6WoArE9bsDGB6O2c+56U7Jr LTVMrMgWbfuC9VUqti8OiHGea6C01uQIMqbwH7aYTt6qkGZ7mtf3f1v1qyJkTyYUOqhB QoI+Z+cLQ14WbnPzPyxlGm49tZrm8FB0S02hcMLn7+G3Sa+X/+XHP9p/aNIDaNy++p3Z jPPd3Fl2Slgqhgax3/EREC6Fv509mprQ0RToLUvhv5LRLdU5EgWCW7kDgRhn10OSoYeQ 8vKmDCHnWbGC+cYHhw6ayLW9WRd/oqO+Uvxlr++LvMlxKbRZpM6j7rw3Pw18kjHqjhA7 mqRQ== X-Gm-Message-State: AOAM530p8TkOMGeh8jxb2S5aC/EL3n4AWuwTUld273c1JtHPzfo7/MkP CcLR4TDY21sThJ3ZngZqDyatLA== X-Received: by 2002:adf:f4c1:: with SMTP id h1mr11340915wrp.290.1605036702401; Tue, 10 Nov 2020 11:31:42 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:41 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 21/30] drm/radeon/atom: Move 'radeon_atom_hw_i2c_*()'s prototypes into shared header Date: Tue, 10 Nov 2020 19:31:03 +0000 Message-Id: <20201110193112.988999-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: David Airlie <airlied@linux.ie>, linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, Alex Deucher <alexander.deucher@amd.com>, =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= <christian.koenig@amd.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid W=1 warnings from GPU
|
expand
|
diff --git a/drivers/gpu/drm/radeon/atom.h b/drivers/gpu/drm/radeon/atom.h index cb93b83114dbe..efc05e33b220c 100644 --- a/drivers/gpu/drm/radeon/atom.h +++ b/drivers/gpu/drm/radeon/atom.h @@ -160,6 +160,12 @@ struct radeon_device; bool radeon_atom_get_tv_timings(struct radeon_device *rdev, int index, struct drm_display_mode *mode); +struct i2c_msg; +struct i2c_adapter; +int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap, + struct i2c_msg *msgs, int num); +u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap); + #include "atom-types.h" #include "atombios.h" #include "ObjectID.h" diff --git a/drivers/gpu/drm/radeon/radeon_i2c.c b/drivers/gpu/drm/radeon/radeon_i2c.c index aa61b3cb4049c..e543d993f73ee 100644 --- a/drivers/gpu/drm/radeon/radeon_i2c.c +++ b/drivers/gpu/drm/radeon/radeon_i2c.c @@ -34,10 +34,6 @@ #include "radeon.h" #include "atom.h" -extern int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap, - struct i2c_msg *msgs, int num); -extern u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap); - bool radeon_ddc_probe(struct radeon_connector *radeon_connector, bool use_aux) { u8 out = 0x0;
Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/atombios_i2c.c:100:5: warning: no previous prototype for ‘radeon_atom_hw_i2c_xfer’ [-Wmissing-prototypes] 100 | int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap, | ^~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/radeon/atombios_i2c.c:150:5: warning: no previous prototype for ‘radeon_atom_hw_i2c_func’ [-Wmissing-prototypes] 150 | u32 radeon_atom_hw_i2c_func(struct i2c_adapter *adap) | ^~~~~~~~~~~~~~~~~~~~~~~ Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Christian König" <christian.koenig@amd.com> Cc: David Airlie <airlied@linux.ie> Cc: Daniel Vetter <daniel@ffwll.ch> Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/gpu/drm/radeon/atom.h | 6 ++++++ drivers/gpu/drm/radeon/radeon_i2c.c | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-)