From patchwork Mon Apr 17 21:05:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 84477 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2415081vqo; Mon, 17 Apr 2023 14:34:41 -0700 (PDT) X-Google-Smtp-Source: AKy350aJctBM5LvshWFgXirn6308dApfpA6gpeeQ34TXfHKl/c25I4ntUHOnNAFMQsS50D3hIsP0 X-Received: by 2002:a05:6a00:2314:b0:63a:75a4:b2d4 with SMTP id h20-20020a056a00231400b0063a75a4b2d4mr24029114pfh.24.1681767281594; Mon, 17 Apr 2023 14:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681767281; cv=none; d=google.com; s=arc-20160816; b=V1x6EBxgfe2AYdEiGCUyFhV1p6FQI4yPPHZGQC4g20dSjGS8thlgo96WE++ccLD1eS 7t76+SZx5JotXWkZb/uvLtpH/j8SGmDYX44rRy3zrK4GFeyfwWAVnvWz1rC5Sy/8e9Q6 +Q0l7Sb0BTgLttoDhwtdSyNF7kD5yD7CVe+lqsRoXhBVFrauDZPXFm2kt3HD4EUlpnwb UnSVWScsVnOH/zkWk87k9iUgt1hQVp7YOnGFPo51b288khyIeiUQFRIkqIQoOzc3pGK0 Uif3anCHGie2oO7J/Ra26Dhv3YmotFAuBKBrzH7wjNTSL7wnyfuj71rFe4EYvq1+QU9n UKyw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=nSoRpplB1VkwkudhlviS89ej8RbAcJ/NtFXeDV+ZjdQ=; b=dg5mCgFYB98fksclofv96aS+WBgEs1rk1XT2vyB0ZJrzliS28o6hn27+zmUJ3x6ACX pwT0DnGTHI2wNS20Lpof4cTviUmxyW5ar9ke8X4W4BWEF7u2xHDvPzvlOxb2HEqEAM31 EGm1Wf4ETCfauBWP/e2mtRKs5plI+gzNkdYLY07cSVBgzZknelJUL3cX/o566s9cmk2X b3s3xd16qCz3JJEf/Juqy1pfwkDdVkkUcCGJBO6QPDY18VMMHzF3bXZxvCS0ks/4KjQU BxtTOENqBZpZUHosZ1fKIcRiXqwv6d0eHpTpteQLR3eQJP/+SPUjCGVFmUVAi3kGDosY 8jxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Lmi7RyLY; 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=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z28-20020aa7959c000000b0063b85b18764si6159707pfj.219.2023.04.17.14.34.26; Mon, 17 Apr 2023 14:34:41 -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=@kernel.org header.s=k20201202 header.b=Lmi7RyLY; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230012AbjDQVGh (ORCPT + 99 others); Mon, 17 Apr 2023 17:06:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbjDQVGM (ORCPT ); Mon, 17 Apr 2023 17:06:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9D2810F4 for ; Mon, 17 Apr 2023 14:06:10 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 697C762203 for ; Mon, 17 Apr 2023 21:06:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BDCABC433D2; Mon, 17 Apr 2023 21:06:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1681765569; bh=An4/qvBICNxrZq3RM6ajIvQGCH7WWPRxMuUGkIjf4xE=; h=From:To:Cc:Subject:Date:From; b=Lmi7RyLY/b4hnJV6EwWzVz51lWwZ/+MRxXeXhB63HP882GQTBywrF8b0NFVjr6yG2 0pUXOTbNvsU1e8AP+VcRhoKdRYO/qLc9BsxidmVqMWfok+yNzK9qH15uJCgTLKvsJe uGgIYz/wLd/a4PlEPGmeZ5yrHRHfwSW5mfl+z5YMAC1tjuXwcVFebz1wa0Y8Z9mLi8 2+VH22T2QOU629Drfn5WvW6nW4b0TlCxMs+Sm1CAdjn5dGhJWCHWGTPm59QexCljS2 wXQpmbjXLy9wBm/qRR9eAzKAC6iWy/MQQ+6PRZKTlvEdl2KRgg2Y/UwpGbhyoY/91G 3WmsHLn94Qe2Q== From: Arnd Bergmann To: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter Cc: Arnd Bergmann , Nicholas Kazlauskas , Taimur Hassan , Jasdeep Dhillon , Alex Hung , Michael Strauss , Aurabindo Pillai , Qingqing Zhuo , Hamza Mahfooz , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] drm/amd/display: mark dccg314_init() static Date: Mon, 17 Apr 2023 23:05:42 +0200 Message-Id: <20230417210602.2614198-1-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763460809010119719?= X-GMAIL-MSGID: =?utf-8?q?1763460809010119719?= From: Arnd Bergmann The newly introduced global function is not declared in a header or called from another file, causing a harmless warning with sparse or W=1 builds: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn314/dcn314_dccg.c:277:6: error: no previous prototype for 'dccg314_init' [-Werror=missing-prototypes] Mark it static instead. Fixes: 6f6869dcf415 ("drm/amd/display: prep work for root clock optimization enablement for DCN314") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c index 6f879265ad9c..de7bfba2c179 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c +++ b/drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c @@ -274,7 +274,7 @@ static void dccg314_set_dpstreamclk( } } -void dccg314_init(struct dccg *dccg) +static void dccg314_init(struct dccg *dccg) { int otg_inst;