Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1980513pxm; Thu, 24 Feb 2022 13:31:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJzQWKxNFjqjBEtPS09NgZWDj1yktDkIko4oVaD6v3DP1FEarkfb12BegzYGxzP9/H9U+VSg X-Received: by 2002:a63:1826:0:b0:373:41d9:b14e with SMTP id y38-20020a631826000000b0037341d9b14emr3628823pgl.197.1645738263762; Thu, 24 Feb 2022 13:31:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645738263; cv=none; d=google.com; s=arc-20160816; b=cLn3LaOKbN8aeKUl1JDD/r2vrqEA79QWXNDwJELmV95xrgV9xF0NStZAtylioaEpcA sHMFnyLfp4Rx6LEYHuiLhdQLwpERfkSCWR2x8h3EJZ/m1KnkmXFBSXuwmKtVj2rMQPdO vmsJoA7jNRh7E1N9qTlnr7nl+SPL/LQ5KhC/XzFEWf2Y1Ou+5hh6aG4sT+KxHv1HFKW3 P4K/2W+pm/ZW8g04g4QNycitolS0Q0Rcecvw4av2wlEtbmcKYTUrWPwZhDiVIx7hNLkl VL8yexJOM+CwIiWnSZCGUR50v1uOjzZS5HrGecygegJlP/gdqo6C9tAZ+0om46a1rm8j xzCQ== 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=7IUvVKF5Pch8a16lx0MT86rwIlpqNss44lNM/kW3WVs=; b=SqyTnZhx/fnqJ6DhxiIaC6MyFcclG5qBcFh2zOLMYjUlqqbysgoWPN/gOrJ86Iz+0s k2cZfcvNAUmV819k1cyFvdpCs38QneC9Si8kndsgRoA1sPhlFeOh+pbjnLecGRyShF5V Krv4tPXVSpsIN5KGVbki7blINI3oPABNPUJs5HBbS/tYugnhkpK6jAgOVSaPlUo2Cnr0 pDR4Odw99Rg5ZjTD3QrC+y3+JRProswbiKu00T2DseLEuxoJjY6ur20OyxBrf8Kg85N/ vh6UGRpG7pjouo9iopbPkEpqirnWWIx1V9bOjmvzCNWskwGNWBttXjEVCZyWIMxrj2/R BVDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ne21DyBH; 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 y14-20020a17090322ce00b0014ff41f1e6csi320082plg.186.2022.02.24.13.30.47; Thu, 24 Feb 2022 13:31:03 -0800 (PST) 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=ne21DyBH; 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 S233525AbiBXTRd (ORCPT + 99 others); Thu, 24 Feb 2022 14:17:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233549AbiBXTR3 (ORCPT ); Thu, 24 Feb 2022 14:17:29 -0500 Received: from mail-oi1-x235.google.com (mail-oi1-x235.google.com [IPv6:2607:f8b0:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B549E0A7 for ; Thu, 24 Feb 2022 11:16:49 -0800 (PST) Received: by mail-oi1-x235.google.com with SMTP id q5so4354685oij.6 for ; Thu, 24 Feb 2022 11:16:49 -0800 (PST) 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=7IUvVKF5Pch8a16lx0MT86rwIlpqNss44lNM/kW3WVs=; b=ne21DyBH+0ZWEGvMo7Kz56PYmwP1GgCVw3i0R6NVkPQJMYyrc8sPuQItlSuHxv9VRc TXB7pCjba4j8XT/WvxjkN5JbZ1sdP2juBJu7YA/ESnLTa6kEBA+4SmpalQ92HXMMye1F 4MGZrYTIq1WdT977vBFe17BmposVWu8IjvsLstrHzkC6RtNDiizXLvU2JJmv/a2ZOnSv 6E4A/Z5M/vw965DFZA5o7kFCzhF56hgh4aeI2bscy2u0xjPAuhU7qy2gCRwDTZKwYDkC kr92WaJmPK7uTAOkB7Qdp3Cb739BrYnK8/uIhE9jrM30wlrmccSBM61ZnYAtOUSDvnWG wyDQ== 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=7IUvVKF5Pch8a16lx0MT86rwIlpqNss44lNM/kW3WVs=; b=OzU36oGaYS7FxCtc6ezLsEm2nCFV09j/82aHIad/heffckNyxc3iVISMe7KcLAdj6f 65hy7bBTufHfLLaASvFWznzQc8jPqeZeilX36pcELHTkyf/peuUapjiiWQsZewe9jGpd 32H6OA5U0n3rhajEAzEH0VLo5hFb3OF7js9/Tw0InSeI07TrJV0jJIFWeXuwJbtL5EaG BZqLmTAQzBDeV1GWL0Tgb1AQwB38kNi3Z3FUbOdEm/05t+qv3l9KyET7HWHkibsERTyi m2ZlvZeAgPrnDV32OiV5s/92xoYvBTAX5XcCW0eDByq1izGlLJlJ1DfCm23oxWGzIYvy chYw== X-Gm-Message-State: AOAM533AsVcsm9prMv7d0oes2EyqeLdFspZyHvsv82mZBsVYivNXvMMQ IEiWqM22sG03e9+G+5IOQm4= X-Received: by 2002:a05:6870:d1ca:b0:d6:87d5:4ab7 with SMTP id b10-20020a056870d1ca00b000d687d54ab7mr5944097oac.331.1645730208809; Thu, 24 Feb 2022 11:16:48 -0800 (PST) Received: from localhost.localdomain (189-47-54-110.dsl.telesp.net.br. [189.47.54.110]) by smtp.gmail.com with ESMTPSA id w3-20020a056830110300b005af14392276sm79509otq.62.2022.02.24.11.16.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 11:16:48 -0800 (PST) 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: siqueirajordao@riseup.net, mwen@igalia.com, maira.canal@usp.br, isabbasso@riseup.net, Magali Lemes , Qingqing Zhuo , kernel test robot , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] drm/amd/display: Turn functions into static Date: Thu, 24 Feb 2022 16:15:51 -0300 Message-Id: <20220224191551.69103-5-magalilemes00@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220224191551.69103-1-magalilemes00@gmail.com> References: <20220224191551.69103-1-magalilemes00@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 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, T_SCC_BODY_TEXT_LINE 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 Silence [-Wmissing-prototypes] sparse warnings from the display folder such as: ../drivers/gpu/drm/amd/amdgpu/../display/dc/clk_mgr/dcn315/dcn315_smu.c:126:5: warning: no previous prototype for ‘dcn315_smu_send_msg_with_param’ [-Wmissing-prototypes] 126 | int dcn315_smu_send_msg_with_param( | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Cc: Qingqing Zhuo (Lillian) Reported-by: kernel test robot Signed-off-by: Magali Lemes --- .../gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c | 2 +- drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c | 4 ++-- .../gpu/drm/amd/display/dc/irq/dcn315/irq_service_dcn315.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c index d66633bef2b3..357f89b4a8e0 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_clk_mgr.c @@ -430,7 +430,7 @@ static unsigned int find_clk_for_voltage( return 0; } -void dcn315_clk_mgr_helper_populate_bw_params( +static void dcn315_clk_mgr_helper_populate_bw_params( struct clk_mgr_internal *clk_mgr, struct integrated_info *bios_info, const DpmClocks_315_t *clock_table) diff --git a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c index a60543258a5b..831fd1494d60 100644 --- a/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c +++ b/drivers/gpu/drm/amd/display/dc/clk_mgr/dcn315/dcn315_smu.c @@ -123,7 +123,7 @@ static uint32_t dcn315_smu_wait_for_response(struct clk_mgr_internal *clk_mgr, u return res_val; } -int dcn315_smu_send_msg_with_param( +static int dcn315_smu_send_msg_with_param( struct clk_mgr_internal *clk_mgr, unsigned int msg_id, unsigned int param) { @@ -181,7 +181,7 @@ int dcn315_smu_set_dispclk(struct clk_mgr_internal *clk_mgr, int requested_dispc return actual_dispclk_set_mhz * 1000; } -int dcn315_smu_set_voltage_via_phyclk(struct clk_mgr_internal *clk_mgr, int requested_phyclk_khz) +static int dcn315_smu_set_voltage_via_phyclk(struct clk_mgr_internal *clk_mgr, int requested_phyclk_khz) { int actual_phypclk_set_mhz = -1; diff --git a/drivers/gpu/drm/amd/display/dc/irq/dcn315/irq_service_dcn315.c b/drivers/gpu/drm/amd/display/dc/irq/dcn315/irq_service_dcn315.c index 33367773699b..e722171f0d2d 100644 --- a/drivers/gpu/drm/amd/display/dc/irq/dcn315/irq_service_dcn315.c +++ b/drivers/gpu/drm/amd/display/dc/irq/dcn315/irq_service_dcn315.c @@ -42,7 +42,7 @@ #define DCN_BASE__INST0_SEG4 0x02403C00 #define DCN_BASE__INST0_SEG5 0 -enum dc_irq_source to_dal_irq_source_dcn315( +static enum dc_irq_source to_dal_irq_source_dcn315( struct irq_service *irq_service, uint32_t src_id, uint32_t ext_id) -- 2.25.1