Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4547679rwe; Mon, 17 Apr 2023 14:34:46 -0700 (PDT) X-Google-Smtp-Source: AKy350Z4GR04W3uUIHLWas49lF8wWluPNk033IP14FmRnWGnhru93UF+wvMggq31bZZOT8R3Dtdf X-Received: by 2002:a05:6a21:6d95:b0:ef:e0af:120a with SMTP id wl21-20020a056a216d9500b000efe0af120amr5081600pzb.22.1681767286492; Mon, 17 Apr 2023 14:34:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681767286; cv=pass; d=google.com; s=arc-20160816; b=l7NctaqoU4M4FfXIxgI7vJW+wqEI1xbvs1EducjU8CBoSqwmjAwPI/NqOyPaPQqYJp yg00bWBzrhuVisbMIj3zW3Xc7A5iX4BUNKBPP3r9bkB+WvRz0LBBFUkeIxR166fdHvpk SDupzmSy1LrpLApnsWKhkRySQEUL8gahDA5Hj97j+Jyv7fZtQrhmn2F8Ha8fy+mYt9MP Egpz/Zi21+dx1zvSUPgwUIiSqn0xoDn8ghG1SVKLhNKIy8fJ9Conh3XCp2tSLqnK2j/k 0s2VaCcL+epK3CPoT60GWVbIGXZ5RzVhDbc3z6o1UXZY+YrAs0E6gZPV8rtnrVfOB/LY HPXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=FdlTsVHTtSOsoTNDE7bTAINLudRbzyGng7xzbUerSp4=; b=1JALiBa8J4dmiLKhxBwyJFIpRNRiZwNNd7+3EJJD9nzh1jGC6LoNIkS6Ulbboo7TgY daRbtjrB7j0r9YQcvzKhu3x1J/sA4c+cWUPXu4wvZJbdNOYz20JU0seqU8XbdiqfM3UP kYWGqAd2Sc1Wn/RXhXVxrViu/9FO2Nr3289X4qPbaZ7PzFaBkG69Bal42xexvnQVHFlO IkUILGLDVkGk23oiQuunuw6qymLhoWLYqrl5hF5NUyGItZHV3U5AgkNZdk4WEr7hr5RY B0LbsdiJRSKXjDJwhVPji1r91vtGwzhBEkTWbIsT2rSavllRCNJt3d64tiamJwYWA6LA nnsQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b="YGZ//B+Z"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc22-20020a656d96000000b00513965a1e60si11538610pgb.902.2023.04.17.14.34.33; Mon, 17 Apr 2023 14:34:46 -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=@amd.com header.s=selector1 header.b="YGZ//B+Z"; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.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=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230006AbjDQVK5 (ORCPT + 99 others); Mon, 17 Apr 2023 17:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbjDQVK4 (ORCPT ); Mon, 17 Apr 2023 17:10:56 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2083.outbound.protection.outlook.com [40.107.244.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF26C92 for ; Mon, 17 Apr 2023 14:10:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OohtHc3e9Ve63cOc8C1fIlcF0YRtiiNnxI7AyiNwSqxZQL0AldPD+zpFHiPzOwDXMGgmT6HpwsnRMp3vXxFyrSOb6YvBSEOvG7rt3Fr5gEw9aAQYb8j1DHKW7E1uLwlosBWAfjUBjfuEW5WBrVYreuAUjGRwsOaePCUgSN2gJzc/kthPdB84ex5UCjX6+uMMKU9iDR//bfM0/3dCZVevXI+mpFld49FZwNNKVboAhWX8S/5sigRxP9PO821FGFDtMzUU7Y/jhzQUUTTJVak3E0oER4LHDY0+3ASU3KyH/Me4QvHUiSspS2EhW+xiriDL6NltoL6laJHJjoRNNei9vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=FdlTsVHTtSOsoTNDE7bTAINLudRbzyGng7xzbUerSp4=; b=kYTGByjUunOkkUoscj+x1mCEQ5OP4YmnF2Tq6jfcwIs9wd8atXW79EWnRy8OGsd4FA1Y0lk/A35eZ6bmFtUK90xZF90+17WGItOICOxoGbafsqptmN9r9y1hJtA0m1OhyYsYzBuGJNCQnvohVH5irOa269kb7nYTe7q9qoGLHvc8nQmuYWol0qCL36EL1+kdzBP1DfWTvyessQZe5G5GWWcR7eIVrJZS7dXpXwqWSFqCSxuPOEe3/UdLVT29jdVZDNeFm6GgXjK8XyYfsZwszbP9Srn3vajvSfbobLxfSmhG8PDs5ZkfqF4jEtoDMJqqE+zciG3RHnh+LPsvX5lO2A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FdlTsVHTtSOsoTNDE7bTAINLudRbzyGng7xzbUerSp4=; b=YGZ//B+ZRZhd7P2E9XpBBqz9AqzvAR2zPlYclaicYamucYsr2ZWp1DnQzuhHO5fR2wpom7imAhfCo/NGpNvPbBH2qWMqgk4uCN8UQTZ0DclYi00PxCKoYhF6HjpUDrENo/STvnGqefaZ2RfF4zq8BLDtUCyOQyXKYN5JgqN1Y0U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) by DS7PR12MB6214.namprd12.prod.outlook.com (2603:10b6:8:96::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6298.45; Mon, 17 Apr 2023 21:10:52 +0000 Received: from DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::fe53:2742:10f9:b8f1]) by DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::fe53:2742:10f9:b8f1%9]) with mapi id 15.20.6298.045; Mon, 17 Apr 2023 21:10:52 +0000 Message-ID: Date: Mon, 17 Apr 2023 17:12:15 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 1/2] drm/amd/display: mark dccg314_init() static Content-Language: en-US To: Arnd Bergmann , 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 , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230417210602.2614198-1-arnd@kernel.org> From: Hamza Mahfooz In-Reply-To: <20230417210602.2614198-1-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YQBPR0101CA0120.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c01:5::23) To DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6280:EE_|DS7PR12MB6214:EE_ X-MS-Office365-Filtering-Correlation-Id: 8540b53a-eaf8-492c-642f-08db3f8839b1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MQZ+8CmFy1cZBFBUhmq4uqQlMGn1+Dzrrb7ra3msCfu60LJ2pnTFSXke2pTNsFw8UeTY0s/H0dTSjqcfclDM6o49AXKvhw9NHng8xX1eGgFjruej6cwvweRddMvy4QJvcNy4VyK3O/7jUVZKfci9n2vZCoIu++OXUn1zuMuL6FuO4OnZAKVAYbNJR9D0wpjHNMlKrR2XINcAPH2ANxFPlgecmJ28gHpEWVtGcbXzheO2+MHi7VQ6OJmWt5jm0a9BQQMDr6EizgbKEfXLSv/fMkh3xba0a/xZBtu5nPfkigAQfmBej8HvlxezpjbRxicuNORQG81Xik2GceWO4b1uDjhaYOIXfXS2Q7Q7W5H7CPGb//+g0eUBNF/PDfUXAC9sjTcUT5ETV/colaoTlIrVa5OPODqiOlLj8HKT+4A0dRNQ4NVaIqZbmfHHwCBHRc4SarPE3KrtOMgKSA22/xtYME4Mxko32Wp/E80beGXW3F/ZbmGWF0UfGkms2uya555jvZVwi32bU0IwdVn5TUKqo2q5G/vHGpFwCpKGKhlKhEOhjpLh6BD0O3rSvmQCbnXKFfPV55P1aks0Dg6uVMR1/Y/KhkBeCGVN3EnQB3dQgxCBtraBAM3ODPSwAsunlwOKvN3NbmgoMbmabR4yacBsFnazQB7kYSULv4OnubCfDyQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM4PR12MB6280.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(376002)(396003)(39860400002)(136003)(346002)(366004)(451199021)(26005)(186003)(6506007)(6512007)(41300700001)(110136005)(54906003)(66946007)(86362001)(53546011)(2616005)(83380400001)(4326008)(316002)(31696002)(66476007)(66556008)(2906002)(8676002)(8936002)(6486002)(6666004)(921005)(44832011)(31686004)(38100700002)(36756003)(5660300002)(478600001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Rk5FU3p5UU8rSHlOemxNcVc2Mk9mRGFtdk5NVmpMTUwvWTM2d2NlZzR0Z01n?= =?utf-8?B?UEIwVmNidFlkVGtUdFBKRlZDTGo3bUVIUGw3TUh0aU8weXlyRkN1SHpuRkw4?= =?utf-8?B?MHY4a0hrbUJDRkdFRTcraVl3OHQ4MmtlczdKWEVXMWdEOEtmWmZTSGtJSE03?= =?utf-8?B?eGdiMW4yYkdIQi80aG1QTVAvUXVDMVVTVWNsNUUrVUk3dno3ZnlEMy94NGdv?= =?utf-8?B?NWU4QTRqcGw1L2JqZFFoN2JVWG40ekFOWHMycktZeGE0WUoxc1d5SXJOckV4?= =?utf-8?B?UWJUOGJXWmtXQ1krSC95UWw3Ui9DMHpGd1VYOGM3NjR5KzNqNk5sc1JoSm00?= =?utf-8?B?Z1pndVNrVmNZaktDOEJGSVpXUTBsNlNXd0tISG5xSmp6eGlPcWtPN2srcGpX?= =?utf-8?B?a1ZraVVTMGxib2Z0OHUvSTNv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MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2023 21:10:52.1565 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 5UcoB7S+HOmQQQwHMyUuV6mFcVYBMO9rRhjvFmAHXujjcIyvfGY2ryqT4YW19nMU698BspJ43jYbxog+Y2atew== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB6214 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, 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 On 4/17/23 17:05, Arnd Bergmann wrote: > 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 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; > -- Hamza