Message ID | 20230417210602.2614198-1-arnd@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;leviz.kernel.dev@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <arnd@kernel.org> To: Harry Wentland <harry.wentland@amd.com>, Leo Li <sunpeng.li@amd.com>, Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>, Alex Deucher <alexander.deucher@amd.com>, =?utf-8?q?Christian_K=C3=B6nig?= <christian.koenig@amd.com>, "Pan, Xinhui" <Xinhui.Pan@amd.com>, David Airlie <airlied@gmail.com>, Daniel Vetter <daniel@ffwll.ch> Cc: Arnd Bergmann <arnd@arndb.de>, Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>, Taimur Hassan <Syed.Hassan@amd.com>, Jasdeep Dhillon <jdhillon@amd.com>, Alex Hung <alex.hung@amd.com>, Michael Strauss <michael.strauss@amd.com>, Aurabindo Pillai <aurabindo.pillai@amd.com>, Qingqing Zhuo <qingqing.zhuo@amd.com>, Hamza Mahfooz <hamza.mahfooz@amd.com>, 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: <linux-kernel.vger.kernel.org> 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?= |
Series |
[1/2] drm/amd/display: mark dccg314_init() static
|
|
Commit Message
Arnd Bergmann
April 17, 2023, 9:05 p.m. UTC
From: Arnd Bergmann <arnd@arndb.de> 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 <arnd@arndb.de> --- drivers/gpu/drm/amd/display/dc/dcn314/dcn314_dccg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On 4/17/23 17:05, Arnd Bergmann wrote: > From: Arnd Bergmann <arnd@arndb.de> > > 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 <arnd@arndb.de> This has already been fixed as of commit 669f4ac40947 ("drm/amd/display: set variable dccg314_init storage-class-specifier to static") in amd-staging-drm-next. > --- > 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; >
On Mon, Apr 17, 2023, at 23:12, Hamza Mahfooz wrote: > On 4/17/23 17:05, Arnd Bergmann wrote: >> From: Arnd Bergmann <arnd@arndb.de> >> >> 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 <arnd@arndb.de> > > This has already been fixed as of commit 669f4ac40947 ("drm/amd/display: > set variable dccg314_init storage-class-specifier to static") in > amd-staging-drm-next. Ok, thanks. I waited for a rebase on today's linux-next before posting mine to make sure it's not already fixed, it must have just missed the cut-off. Arnd
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;