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: 12011471 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73C4AC433DB for ; Mon, 11 Jan 2021 19:19:58 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2D40522CAE for ; Mon, 11 Jan 2021 19:19:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2D40522CAE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.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) 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-Google-Smtp-Source: ABdhPJzjSnGz3m69nDkME1UYSAct3l1QQN+GkRACjqqKTZWxnotX0x9Ssham7MB2ZUEAb0ssDpTGyg== 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);