From patchwork Mon Jan 11 19:18:54 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360545 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3139443jai; Mon, 11 Jan 2021 11:19:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgDUj3D3NGw2Fbo3wEuLGWZ+OJc/ps16OZZTeL6Owzz+QbN0/cg2foKWGPT80FbR3IQodt X-Received: by 2002:a17:90a:ba88:: with SMTP id t8mr329691pjr.229.1610392799129; Mon, 11 Jan 2021 11:19:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392799; cv=none; d=google.com; s=arc-20160816; b=A423eiQk4zVUKFxz9ylR2rhkbmPyxuCjnwZdxteZMfq0LBhFrXwxhb/n07em6g4R5e J1k9BZYlYaS5OQaWniW7qoykJHkof1knrSbc1GqKTjIyvhlEgv5M/gyVd5RWZ/rtOfCG FYYe72ZrN22671lVRDKY6L4zoaEmKrVXOmiLyihB44flSo9bTO/105ex6SiYbuA61bov eCAYtWcMh2H5w3JCh3kMsF/luqthl01AFvVU4y5xpUaBJDmyWpcfipZrHtEzb/0i1d+Y iGTvTC8WBS4v/7FR7envOHPaO0gMoXXVrs+pi1FzvVyLddPnMfgYBYi17p0hbd2wZC8Z 03Ew== 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=nhK/CjWaS4si1kRZQbqqyYKA47LZHJQn4HNEcO7VYeY=; b=WBKHRaluahgk0SddU954psteEf3U72ms993qC5pJ9szaCIl6CeISEkS8lHLFHhHNqk TVnHBc5xo/WZ8TI+8qM0DWCLNjydBVlfbA1xV3+2lzHCJiG3AjtOyQhtLaH2dS5THqrB 0DFGKFjamtWCPwsz32JNETDMCHnRrdKsSThrsoLXg9EIjg6R2t5EpdfZzk0MCN0t9O/O Oo/h+xjRZpuyqRX2JXiLxPB6asEUKP6lVhA/nTWwMNovksN63Lpt6T7iq5e+aXq+/Tfc gql4Ha4e4SQP6sThMos7jWY43GktgLMjMKxR7r/yYIYsjikqh1VqePv9Ne6SsvFVDZNz CLaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Y7hRLpaw; 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 a17si345062pgh.364.2021.01.11.11.19.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19: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=Y7hRLpaw; 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 23B0989E11; Mon, 11 Jan 2021 19:19:46 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2905D89DED for ; Mon, 11 Jan 2021 19:19:42 +0000 (UTC) Received: by mail-wr1-x436.google.com with SMTP id d13so879325wrc.13 for ; Mon, 11 Jan 2021 11:19:42 -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=qokjD6k+LHHF78mVRlZu4OQtVVLhVZTnUnkH0SWg7U4=; b=Y7hRLpaw1tA7qK1gE0XMTHNgfJoJa25sR2HTvgV5c7RjonfBp0XE2iRIsnCFMtGO39 S+NEpJl2eaEmALDQRKx8ppkwsCoVWE3be6ZZJFzOuP67Xvztt95hteobDRDSxOb/95MM lKRVIyo4wj/LQnNfBuNrjra9ty8cH1ugArBlzNWr6EHFKCOUdEWycKG234cNehdzJ+wP 0QDVGyYLbpKAFH1a21yyszuVT9kl0cgGtmbtDEQiL1HpMRc+hvrgqhNAQ37t/CyQBE/L UwaAKv90//Snerjrws6nYy8YrKhwdfpClNDZ0IvSLAcuPPQJeDDzpFV92/gqloYExeN0 eYzg== 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=qokjD6k+LHHF78mVRlZu4OQtVVLhVZTnUnkH0SWg7U4=; b=Hx6AGO/SlRj27FnPkbhyE7PLqlnvfFuTNvEa582cd6+sImP6gQIO1A2rWaAXzRzC9E J3IyLQ+wcSW1cFAVNf8FRnIhJlGR58z0PG7wU7pX6/2pLM9QuYKNVcxTV2w29FzJXFdB 05X+h23Gv3zNVNa600dd5EJhgqSvdym1OiqxEbco9a9oThtBBhiFePfH2x6zsBvYHYEA eWZ4rg3GiUdsFJ51lPMqtjp4qnyDykIWHASiApbc+GDdw4X/Z/540dtjwbpAa5HDEcXm JYAbpYpxqpUuHyrGxgTc0nv9NfjZxG/wueG4hsX8L/ryYuHkmDlE3ZMeL/tcnwMdJFM4 gNCw== X-Gm-Message-State: AOAM530GWA3Bh5R1wIN385Sas0V/NsNtCGaYJGRfjTjQ/NK8DrRPo481 1WPWucO5Sln64MuszC28KgijsQ== X-Received: by 2002:adf:c449:: with SMTP id a9mr570620wrg.281.1610392780828; Mon, 11 Jan 2021 11:19:40 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.19.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:40 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 08/40] drm/amd/display/dc/gpio/diagnostics/hw_factory_diag: Fix struct declared inside parameter list error Date: Mon, 11 Jan 2021 19:18:54 +0000 Message-Id: <20210111191926.3688443-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111191926.3688443-1-lee.jones@linaro.org> References: <20210111191926.3688443-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/diagnostics/hw_factory_diag.h:30:43: warning: ‘struct hw_factory’ declared inside parameter list will not be visible outside of this definition or declaration drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/diagnostics/hw_factory_diag.h:30:6: note: previous declaration of ‘dal_hw_factory_diag_fpga_init’ was here drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/diagnostics/hw_factory_diag.h:30:43: warning: ‘struct hw_factory’ declared inside parameter list will not be visible outside of this definition or declaration drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/diagnostics/hw_factory_diag.h:30:6: note: previous declaration of ‘dal_hw_factory_diag_fpga_init’ was here drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/diagnostics/hw_factory_diag.h:30:43: warning: ‘struct hw_factory’ declared inside parameter list will not be visible outside of this definition or declaration drivers/gpu/drm/amd/amdgpu/../display/dc/gpio/diagnostics/hw_factory_diag.h:30:6: note: previous declaration of ‘dal_hw_factory_diag_fpga_init’ was here Cc: Harry Wentland Cc: Leo Li 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 --- .../gpu/drm/amd/display/dc/gpio/diagnostics/hw_factory_diag.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/gpio/diagnostics/hw_factory_diag.h b/drivers/gpu/drm/amd/display/dc/gpio/diagnostics/hw_factory_diag.h index 8a74f6adb8eee..bf68eb1d9a1d2 100644 --- a/drivers/gpu/drm/amd/display/dc/gpio/diagnostics/hw_factory_diag.h +++ b/drivers/gpu/drm/amd/display/dc/gpio/diagnostics/hw_factory_diag.h @@ -26,6 +26,8 @@ #ifndef __DAL_HW_FACTORY_DIAG_FPGA_H__ #define __DAL_HW_FACTORY_DIAG_FPGA_H__ +struct hw_factory; + /* Initialize HW factory function pointers and pin info */ void dal_hw_factory_diag_fpga_init(struct hw_factory *factory);