Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp732671imw; Thu, 14 Jul 2022 09:49:57 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tfo0UmtXtCQU+l3/E/PBct9atZr5zJ2htM5iomYBga9NJLLGDDhTpYLPRz3WZha2Nu3FfO X-Received: by 2002:a17:907:7395:b0:72e:e6c4:53d9 with SMTP id er21-20020a170907739500b0072ee6c453d9mr1932967ejc.42.1657817396983; Thu, 14 Jul 2022 09:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657817396; cv=none; d=google.com; s=arc-20160816; b=AnBuISv7WRBAvu6Eo9yClZvP1wAqsQLcNqk/PE+X7ndb8v5kOWskwKEVaYFgnVY+b1 T6iVqn+unQ2cN5745HAV3MWBnr0d3uqQPOfSa/kQQcydfFaao2YNQe7vsMNuL07QFFHv Ek/EYLOPP6X/0/TYnNuqX3Q4klwZhoauH29IZcWzijbRVn0jbKrPzfuoLUyWh1uNJ/0o yOStO21COOqXn2W2t+63YxDDre9/GL99UsUh71xr8UDiu8c8ApSPsyb7RT6oGF4EG1kQ Ao9QMt7i8P4GPaAy4g4Ulx6syzU06hOi2Py3VbaR5eZtHD9q1JneGm8CqQkh4zy47Omg avIA== 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=RdVZJImhPYZeTsYOqZkwEU6PjuWsgnuGp839IvbTCUg=; b=OOoTxsMrlIML1qn8CN3WXZ5lhkHa+FPAfD+i4a2oOjoNELR6w8pIkv/rOfE1nhbIoP VPDl2edVE/IXve+1SqhhXK3hfsywdHsimMji4cNpz0NdnNJfkwCwxHUgWxEG7n0db3NW 3Ky53CaLNEbdXZWh6+UXTsWdbvjG6LxY9Fyh3mseBeTzpbiVbhiYcWn3Q9YZ6rV5+6yi rD5kaE4ZrSw3u1SM/4gjiALC1sFttuNKOxG7Yp/FjxJkqmsdpkui5A6O9i14IpasFgel sKcRwtoydzjuqw4PZsYzjVzeq+6DqtZzCo/9lBORjhrHfUdpMJUNC3WiYZtd7ichKLil dEaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@riseup.net header.s=squak header.b="oikR8EA/"; 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=NONE dis=NONE) header.from=riseup.net Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id rk12-20020a170907214c00b007262da1e51fsi2406652ejb.331.2022.07.14.09.49.31; Thu, 14 Jul 2022 09:49:56 -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=@riseup.net header.s=squak header.b="oikR8EA/"; 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=NONE dis=NONE) header.from=riseup.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239886AbiGNQsY (ORCPT + 99 others); Thu, 14 Jul 2022 12:48:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235187AbiGNQsG (ORCPT ); Thu, 14 Jul 2022 12:48:06 -0400 Received: from mx0.riseup.net (mx0.riseup.net [198.252.153.6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74DF26E8AE for ; Thu, 14 Jul 2022 09:46:01 -0700 (PDT) Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4LkL2f73xZz9svP; Thu, 14 Jul 2022 16:45:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1657817134; bh=oTt/xCCD/UUmSHwReWaxrUI1n297jYtleCZ9PTN2bMw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oikR8EA/PoKgRr+eQggjmUFyAVPka3BT4fG06Rei9Sqi8g2JdsxmT1tXPLUaSS7kW se5emkQw1QzmgahtP+fX73LwM8uJAfV7bC1VAtmLEGKV0FaHwbXIzzLPuNTwE5tyJ2 Z2waUMi0utT9UzX3ql1mJMZQkgw0dcoxkf4uzMjc= X-Riseup-User-ID: 78BA2B3056E721CAACDA863D27ED1DF81F1CA3751B3B5D38A9AACD4C31E50681 Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4LkL2X4Zf5z5vW1; Thu, 14 Jul 2022 16:45:24 +0000 (UTC) From: =?UTF-8?q?Ma=C3=ADra=20Canal?= To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , christian.koenig@amd.com, Xinhui.Pan@amd.com, David Airlie , Daniel Vetter , Nicholas Kazlauskas , Dmytro Laktyushkin , Aurabindo Pillai Cc: amd-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, mwen@igalia.com, andrealmeid@riseup.net, Isabella Basso , magalilemes00@gmail.com, tales.aparecida@gmail.com, =?UTF-8?q?Ma=C3=ADra=20Canal?= Subject: [PATCH 02/12] drm/amd/display: Change get_pipe_idx function scope Date: Thu, 14 Jul 2022 13:44:57 -0300 Message-Id: <20220714164507.561751-2-mairacanal@riseup.net> In-Reply-To: <20220714164507.561751-1-mairacanal@riseup.net> References: <20220714164507.561751-1-mairacanal@riseup.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS, 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 Turn previously global function into a static function as it is not used outside the file. Signed-off-by: MaĆ­ra Canal --- drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c | 2 +- drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c index 39f93072b5e0..c5a0a3649e9a 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c +++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.c @@ -251,7 +251,7 @@ unsigned int get_total_surface_size_in_mall_bytes( return size; } -unsigned int get_pipe_idx(struct display_mode_lib *mode_lib, unsigned int plane_idx) +static unsigned int get_pipe_idx(struct display_mode_lib *mode_lib, unsigned int plane_idx) { int pipe_idx = -1; int i; diff --git a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h index 47b149d4bfcf..6e61b5382361 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h +++ b/drivers/gpu/drm/amd/display/dc/dml/display_mode_vba.h @@ -165,7 +165,6 @@ unsigned int get_total_surface_size_in_mall_bytes( struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, unsigned int num_pipes); -unsigned int get_pipe_idx(struct display_mode_lib *mode_lib, unsigned int plane_idx); bool get_is_phantom_pipe(struct display_mode_lib *mode_lib, const display_e2e_pipe_params_st *pipes, -- 2.36.1