Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp6290318rwn; Tue, 13 Sep 2022 01:48:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR6kiLx4sQXRUnohclv/xVrHap3b+yckYpCC4xR9L2vhrGZerahfoWyXDXBxksZQWTUovcnJ X-Received: by 2002:a17:907:7205:b0:770:86f1:ae6e with SMTP id dr5-20020a170907720500b0077086f1ae6emr20551263ejc.396.1663058899681; Tue, 13 Sep 2022 01:48:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663058899; cv=none; d=google.com; s=arc-20160816; b=oKoVTKQdXcRp/qkOTp024Y/RkGxS9ztPZ3GudJjgs5OFwaAceLdez0uJnYgWU4weNU v8A5NVo8OYt/TpUD4PbretCMIeSTOhu+dNI/P8PlAAnAxbsVlYodUek+TOsIDKx0kn9c Pzk9su30v4asI/4JO9HS2JEaGtcZeRRG8VdS4kVY8QlSETVqvqh6SSrtI+VqSPkHU6eX CEO+AQkfysIuz5ty1mWIF938ek/Fo5Ef4dHNn3iy5tNAzVCG0kB3bgQeV7c6SYtZNEsj z8Qv+QxSJhWr2H16Dxy8+RKmMBW9S+s/wiDhd2Wk/fn67YX1ZEPNBVT6osLE/AQq00Ar Je8w== 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; bh=kQbARm19/yLy11mMriBs7m4d3vEM3Fr782PwpGpxXAc=; b=tHKyxg1sJ1q0borUgkXmmxckufq7RjUsLiIUkI77Xbelgtl0d4fUICO1P10XgZCSIy eGs8rFf72QwOnOSsYHIFWt6THUDhGYOgJHvCEw8wOlLKfQbL3rh+gFUbwlCnvz2vEPxw SK5B4Pawjx2hcyAv1PK4m0vfzc2rr9pnrAc1QqpNzWz+bL7S/6xswc5MKVkBiFDoemjt c8JfPOhL8wihrOtRafxtNfPDrF0SR3DvxEVdmaRWYb0PNTQLMJYoy0axzXoZ9IJ0dz64 emP31UEyxrAzI4h0ktl8RTt6W8QFONHPTZ+46LGjZBA3csjGkz6POJGuXrnz/oXXz4Kw BDOw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b8-20020a056402350800b00451c7db4990si5129905edd.63.2022.09.13.01.47.54; Tue, 13 Sep 2022 01:48:19 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229886AbiIMIiv (ORCPT + 99 others); Tue, 13 Sep 2022 04:38:51 -0400 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 S231518AbiIMIik (ORCPT ); Tue, 13 Sep 2022 04:38:40 -0400 Received: from out30-56.freemail.mail.aliyun.com (out30-56.freemail.mail.aliyun.com [115.124.30.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04A9F5AA1D for ; Tue, 13 Sep 2022 01:38:39 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VPf.XZx_1663058314; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VPf.XZx_1663058314) by smtp.aliyun-inc.com; Tue, 13 Sep 2022 16:38:36 +0800 From: Jiapeng Chong To: alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH 4/5] drm/amd/display: make mpc32_program_shaper and mpc32_program_3dlut static Date: Tue, 13 Sep 2022 16:38:04 +0800 Message-Id: <20220913083805.22549-4-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c In-Reply-To: <20220913083805.22549-1-jiapeng.chong@linux.alibaba.com> References: <20220913083805.22549-1-jiapeng.chong@linux.alibaba.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY, USER_IN_DEF_SPF_WL 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 These two functions are not used outside the function dcn32_mpc.c, so the modification is defined as static. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_mpc.c:704:6: warning: no previous prototype for ‘mpc32_program_shaper’. drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_mpc.c:900:6: warning: no previous prototype for ‘mpc32_program_3dlut’. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2115 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c index 357bd2461bc9..f4bc77972c4e 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c @@ -701,7 +701,7 @@ static void mpc32_power_on_shaper_3dlut( } -bool mpc32_program_shaper( +static bool mpc32_program_shaper( struct mpc *mpc, const struct pwl_params *params, uint32_t mpcc_id) @@ -897,7 +897,7 @@ static void mpc32_set_3dlut_mode( } -bool mpc32_program_3dlut( +static bool mpc32_program_3dlut( struct mpc *mpc, const struct tetrahedral_params *params, int mpcc_id) -- 2.20.1.7.g153144c