Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp120825imn; Mon, 25 Jul 2022 11:31:32 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uzG8vu62GXGG4OmdhIewU+slkL/xzzplE2vCKLajqKyt0XgWrUTSrnx3gR1oNzy2rkE6Cu X-Received: by 2002:a17:90a:e2c1:b0:1f2:5e1e:d0f3 with SMTP id fr1-20020a17090ae2c100b001f25e1ed0f3mr15245535pjb.23.1658773892611; Mon, 25 Jul 2022 11:31:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658773892; cv=none; d=google.com; s=arc-20160816; b=vizgIca6xTuCvQrKrOw5fDB3+QBcZf8lvNrXOJwqOEqM+JvQBef55YtKARe+XW5WFU 34CRuQydqTB2cKdixRsMLCD4fLEz9kmpniRpz5XCmSFOf4wUzpcLIUEJb6PIHqd8r4Yx mPrsGhsZGtvI1xvB+sVjEX6xrE9aH5QXsyGBZ1wcFGassSauUKcKnlpjznFtGG9K6waG MSNzsMA5QFOUNbfJCEbiPw3tGWWGxlnDQfqH37qoQ/o9LKk3ADQIwxg4xw4i8PONH0iC bpn+WxmC6l1YiW9N3/0uNZz17f8uemR1ODICuv25wHGtl6qEfxCFxwDfnbOIuxm9bL/1 rBwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=eTeP+TldfgkfAXSzy1V8ncfEUb4W/6ytY8GzN1ilhyI=; b=G65+ABluc00V/5WzsYCaDPp7O34uCreQ/BdgkIe8TqA9gsJetUrIkrIWF/NnTQRHZT q47nFJ0G7/+2+4Lmw3e/R1ESL3hxc9gRGlC8eLf6WZbn/zk3Z11+9/gjlm549j8bN98O PqqgpB/bpoELV4wApAPkHSoOW3GJZHor9KFYrsW/HjpWOEAcEx9cYQUpJzn+GByC3GdL K1Yirzk1rY9O8Kr9FaiCI+rnNMAOJkm7bdqoguQQGDRAUZcuCGeXZi24qo9uCV5YjJDs 4SwrLAfqA5FaSdu68vVdOMFv+5YIIQbtX+og/eifpCTkpMfav2Rfus3F6z9fIoct31Po A2PA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cFq5dak1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r1-20020a170902e3c100b00163ebcaa03fsi12942173ple.312.2022.07.25.11.31.16; Mon, 25 Jul 2022 11:31:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=cFq5dak1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236292AbiGYSTP (ORCPT + 99 others); Mon, 25 Jul 2022 14:19:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236428AbiGYSTE (ORCPT ); Mon, 25 Jul 2022 14:19:04 -0400 Received: from mail-oi1-x22d.google.com (mail-oi1-x22d.google.com [IPv6:2607:f8b0:4864:20::22d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26C551F2E7 for ; Mon, 25 Jul 2022 11:19:02 -0700 (PDT) Received: by mail-oi1-x22d.google.com with SMTP id w188so10268769oiw.8 for ; Mon, 25 Jul 2022 11:19:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=eTeP+TldfgkfAXSzy1V8ncfEUb4W/6ytY8GzN1ilhyI=; b=cFq5dak1CUNX5t6urCDWxM7ZYCWavLOdxJeq/nwiGtJlBWECHijpixPUXS9ponYGfv nQc4cR+dW7CSGXGzFUTykxBexz5pc71MGThj6SrtttalFwxIYw1gb07pQKiG/0xK99Rr UlIP9vpl7WN5po+O/Ff0fHeNoX1OY3heU8/LXKqNIz5IcgREE+zHMpt5qQfEDV0WrVQa cLY7Gm3WxfCW2EvZVckkeXwZtmaFpk6Ks2yGNLelBEXeYXHfQDRvUlIOj1+c5vC8vJOL Jl/zjSKp8hNB3Xat4dFSdGl+0pzkDq5CvNDqrOXgXut2vaSF86FTpvbNspETgaovvb/I 3iJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=eTeP+TldfgkfAXSzy1V8ncfEUb4W/6ytY8GzN1ilhyI=; b=IrsTBclq4O12RNJYkoTt0u2Eq3n39cR+OvO6KhqgSB2DxRoDqsACOdVbpO8ua5Vcwx R5AZT6ha0o8+SM00PfUXxZroR0ontKmdYSAbUECg9dGZJ3Zu/jJTqg7/r3tYToXzXIij V2h5EjTqwAfSXrL6Q0xx2qHqVXk+siFzf2COE28u6Q/a8XWDQ9sATJzWR44k46EgcB42 e6A56maLpYjk4hQWkjU9foXMjLiBokqJq+1sNOLEY8RQ3s3QOQeoThdvT4EJziagIKVs juuPqwPELfkn9zlvqFBGseXhHqimeRtGH3HRT2pquRAc/RFyjNptLmxob1SjbtyoElCu cDwg== X-Gm-Message-State: AJIora+Rc+O/oZY3oxiyZGYX20gXevWNTD54HEZe95KYddYg55eMrpKS tpy5YQN5fdfk0BOknT9K7Hw= X-Received: by 2002:a05:6808:120a:b0:333:54f1:351 with SMTP id a10-20020a056808120a00b0033354f10351mr6192878oil.70.1658773142222; Mon, 25 Jul 2022 11:19:02 -0700 (PDT) Received: from fedora.. ([2804:14c:bbe3:4370:95da:f07f:e927:6958]) by smtp.gmail.com with ESMTPSA id m42-20020a056870562a00b0010db1a8d931sm5358484oao.28.2022.07.25.11.18.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jul 2022 11:19:01 -0700 (PDT) From: Magali Lemes To: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch Cc: mwen@igalia.com, mairacanal@riseup.net, isabbasso@riseup.net, siqueirajordao@riseup.net, andrealmeid@riseup.net, tales.aparecida@gmail.com, Magali Lemes , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] drm/amd/display: include missing headers Date: Mon, 25 Jul 2022 15:15:59 -0300 Message-Id: <20220725181559.250030-2-magalilemes00@gmail.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <20220725181559.250030-1-magalilemes00@gmail.com> References: <20220725181559.250030-1-magalilemes00@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add missing headers to solve the following warnings from sparse: drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn20/dcn20_fpu.c:656:17: warning: symbol 'ddr4_wm_table_gs' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn20/dcn20_fpu.c:693:17: warning: symbol 'lpddr4_wm_table_gs' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn20/dcn20_fpu.c:730:17: warning: symbol 'lpddr4_wm_table_with_disabled_ppt' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn20/dcn20_fpu.c:767:17: warning: symbol 'ddr4_wm_table_rn' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn20/dcn20_fpu.c:804:17: warning: symbol 'ddr4_1R_wm_table_rn' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn20/dcn20_fpu.c:841:17: warning: symbol 'lpddr4_wm_table_rn' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn301/dcn301_fpu.c:217:17: warning: symbol 'ddr4_wm_table' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn301/dcn301_fpu.c:254:17: warning: symbol 'lpddr5_wm_table' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/dcn31_fpu.c:53:30: warning: symbol 'dcn3_1_ip' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/dcn31_fpu.c:117:37: warning: symbol 'dcn3_1_soc' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/dcn31_fpu.c:197:30: warning: symbol 'dcn3_15_ip' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/dcn31_fpu.c:262:37: warning: symbol 'dcn3_15_soc' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/dcn31_fpu.c:293:30: warning: symbol 'dcn3_16_ip' was not declared. Should it be static? drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn31/dcn31_fpu.c:358:37: warning: symbol 'dcn3_16_soc' was not declared. Should it be static? Signed-off-by: Magali Lemes --- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.h | 1 + drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c | 1 + drivers/gpu/drm/amd/display/dc/dml/dcn301/dcn301_fpu.c | 1 + drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c | 3 +++ 4 files changed, 6 insertions(+) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.h b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.h index 2e088c5171b2..f1319957e400 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.h +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.h @@ -28,6 +28,7 @@ #include "clk_mgr.h" #include "dm_pp_smu.h" +#include "clk_mgr_internal.h" extern struct wm_table ddr4_wm_table_gs; extern struct wm_table lpddr4_wm_table_gs; diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c index eeeae52fe6fc..45e9f4663abe 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn20/dcn20_fpu.c @@ -30,6 +30,7 @@ #include "dchubbub.h" #include "dcn20/dcn20_resource.h" #include "dcn21/dcn21_resource.h" +#include "clk_mgr/dcn21/rn_clk_mgr.h" #include "dcn20_fpu.h" diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn301/dcn301_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn301/dcn301_fpu.c index 7ef66e511ec8..d211cf6d234c 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn301/dcn301_fpu.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn301/dcn301_fpu.c @@ -26,6 +26,7 @@ #include "clk_mgr.h" #include "dcn20/dcn20_resource.h" #include "dcn301/dcn301_resource.h" +#include "clk_mgr/dcn301/vg_clk_mgr.h" #include "dml/dcn20/dcn20_fpu.h" #include "dcn301_fpu.h" diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c index e36cfa5985ea..2d11a2c13345 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c @@ -25,6 +25,9 @@ #include "resource.h" #include "clk_mgr.h" +#include "dcn31/dcn31_resource.h" +#include "dcn315/dcn315_resource.h" +#include "dcn316/dcn316_resource.h" #include "dml/dcn20/dcn20_fpu.h" #include "dcn31_fpu.h" -- 2.37.1