Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4526198rwe; Mon, 17 Apr 2023 14:11:59 -0700 (PDT) X-Google-Smtp-Source: AKy350bWvSDgGHTFAUhy0WGyZweERCGGQuxRFwr7CvKTb07weeMgA/zAVjvWpxYSuXWxoX3Yawqs X-Received: by 2002:a05:6a00:2282:b0:63b:89a9:529f with SMTP id f2-20020a056a00228200b0063b89a9529fmr9238709pfe.14.1681765919430; Mon, 17 Apr 2023 14:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681765919; cv=none; d=google.com; s=arc-20160816; b=zAHRolrt5nNITIIRGEi+7dxa09TFnUunU4J9qZ1aoSRH2n/3Ikq87sblruxEMr1s8Y V2zxivvvb9GHC7smbtqLdZsnXu7XuBzHj09w+9QiNyh/R4sYIRObChNpvRk3fKzDE6M+ ZxwKKk5DdaOvIEsUOiBK2Q+rttoQzDYw5eRydWILsMAUNm1cAoQporaiytjlWxCFdib6 Da3bku6Z4CFWCu+WjCOdr63Z6B0dMJ2tfNo1r5b4VKu/Sdr/v3m8YXuSC+cv88zNTHlb cFnhuEl29nqyhfeGTT8RSzMV9Ha5g85DZuOKOHd6wU2l39juzTOIo/d1vxzoKzkHiBeP Oa+w== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f10-20020a63dc4a000000b004cc67cfc92bsi13538370pgj.97.2023.04.17.14.11.47; Mon, 17 Apr 2023 14:11:59 -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 S230002AbjDQVGh (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=20K=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 Content-Transfer-Encoding: 8bit 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 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; -- 2.39.2