Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1062026rwl; Wed, 29 Mar 2023 12:04:55 -0700 (PDT) X-Google-Smtp-Source: AKy350aUniunRI5Tr4VnkPBGG8TTLvlVycNEY10gK+LXbhHgZHWzcdD4KRSQyoc5x5nYXB6qennL X-Received: by 2002:a17:906:31cb:b0:92c:a80e:225f with SMTP id f11-20020a17090631cb00b0092ca80e225fmr23533843ejf.52.1680116695359; Wed, 29 Mar 2023 12:04:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680116695; cv=pass; d=google.com; s=arc-20160816; b=Rp0SAu6cZDkkv4p4i/qmpciOsdYeaBmgAe3nV0+LvNJWJRQ+/2piAB/l8yOz7oTALy ijsvdb6cSPuevziM9CoEtmaVhZ2nn4lOxEdcy6hjuw4Yi+N9SRYWFjaR9n2MraoiH7Dw DgW1mzHkmYUyLg/djlP+BcvOyH0NJqcBR6yLSPKnTbMXbBy3XHsG2b7RdlEorFLMUB5N JuGVa7jKjgsXQhbYxndULBH9Ggy+aUMlnTT/Z78xojcmg8i6KSMONweFftlUHlWkq8lJ 3Sxa0oXMrflSxZ8jVA+f0tJGEzJ/4+T9DNkxLnL726N6mqo/OMMRnG0pbmYrFAU3t3Cj Rq4g== 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=DtalErOA2T04fwxb3gR1x8WH5Zu+1t6ClPHSKkr5I70=; b=m35y5YHvchGj+VSl/2I/AalKDwQDM99zRbbtxMXU3/QQ+CmHwlnHSU2ZQvmpfT6Vyc ar1VJfWXX93SmlHat2HlHp1SMheHxXqZzwMrSkNjilvelk5pm+n/rTUpv/RLDdeJdIu9 n2W6HOvl81FnPnDaW2IEhtk04sLtR15MRDweEo70o0rNalaMXQ/kBWiOdYXbfa1aV6ei RZeNtowLvZsfB0Qy3CBOUJvSpcxeGQNJmdK6KtKUxFbm35jK5n84efDKsYwrLl3peF/2 u+McuilCfmdx0EP/XW4jurKWN/lphh8CvOgz+sg25OGWb6eL7k4G8tiDJis/Rq1s+YH3 DB9A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=dkQzTloD; 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 v12-20020a1709061dcc00b0092ff7e4cdc8si30287037ejh.267.2023.03.29.12.04.27; Wed, 29 Mar 2023 12:04:55 -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=dkQzTloD; 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 S229937AbjC2S7u (ORCPT + 99 others); Wed, 29 Mar 2023 14:59:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229880AbjC2S7o (ORCPT ); Wed, 29 Mar 2023 14:59:44 -0400 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2085.outbound.protection.outlook.com [40.107.100.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8EF452D55 for ; Wed, 29 Mar 2023 11:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FpVkeHNP1RlbC1MsUTvQsUh/ULHUloDcO8DB4nBm1UtYmesU2gxrsAXL1ErU19GKpo68Y9U0YwA39N1Zx9GNCs9aLr1VEXp/O8cNj065TvZOB3ygn47LNGg+2vHrubMBXzj0wbMKo7s3hQrnWXqaYNBxebanYMY4AyrRC6KptVNgknhsE0VQ2Xweh9tm6rjOx97+HQTFSeeL9Kxw56vE9cJinFlrn0Mtx3cwmpP1V1XS4soBrsGqql/M4hcHZ/GOM0jXQA4hYtmv8LAiQhSLS9d92qxl6GSyXm58wfusUuAmn/v6MFaeSEJaPQVoLc0B0G6S2VYiPi3mp7R9SgxQiw== 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=DtalErOA2T04fwxb3gR1x8WH5Zu+1t6ClPHSKkr5I70=; b=Jx/KHX13FkX6ltV2E/fPgVygHEP2uVe4SYtnlL0sDqjYykEW1C4NfNVlwglEkilwfREDQ0qt3TIpejEU3qKrOjsNfAxIOMI9sYOBIP5VETkoTxryjysvkXI0R8kgAnae0/aKfKD/Oh0SvvD2jVLW9s4Oqfca66D4lf5vRZ9wdJOntJZg4Y0E5BbIkpg212MDAGQKQIuImEHI3u0NwX+zcdu9zd++29IlwVJVvHJPZvbJ9vbOD7OR8UY4Yqgj2E0shw7ovKmRAgPmL7lG89f3gmu+dDl1Zme0/rD8jZbr+RpG7VWGZQmYClesTl8a6y774Pak1FdR+3AdmYnhXqUY/Q== 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=DtalErOA2T04fwxb3gR1x8WH5Zu+1t6ClPHSKkr5I70=; b=dkQzTloDVmXazqB3oDLGr5zJZjvOwsKqTrhisUTGCtHzR9Iz82CO8z2VQfC7sEzG3Aig/Js+j1Zpevs62UFikhajvMJLXfUfbM4CRFVNfTCx2Jw3AuHGU35dPrXo8IOzy6LvDXhebKQfwI+S2nTQIpGpTn+zWVn1SVxd2KSPePc= 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 CO6PR12MB5476.namprd12.prod.outlook.com (2603:10b6:303:138::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.35; Wed, 29 Mar 2023 18:59:37 +0000 Received: from DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::fe53:2742:10f9:b8f1]) by DM4PR12MB6280.namprd12.prod.outlook.com ([fe80::fe53:2742:10f9:b8f1%6]) with mapi id 15.20.6222.033; Wed, 29 Mar 2023 18:59:37 +0000 Message-ID: <57f41574-7886-3bfc-c992-74d40664f5ba@amd.com> Date: Wed, 29 Mar 2023 15:00:55 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH v2 2/2] drm/amd/display: Mark function 'optc3_wait_drr_doublebuffer_pending_clear' as static Content-Language: en-US To: Caio Novais , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: Harry Wentland , Leo Li , Rodrigo Siqueira , Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , Wesley Chalmers , "Lee, Alvin" , Jun Lei , Qingqing Zhuo , Aurabindo Pillai , Jiapeng Chong , Nicholas Kazlauskas , Gabe Teeger , Roman Li , =?UTF-8?Q?Ma=c3=adra_Canal?= , Deepak R Varma References: <20230329180534.99151-1-caionovais@usp.br> <20230329180534.99151-3-caionovais@usp.br> From: Hamza Mahfooz In-Reply-To: <20230329180534.99151-3-caionovais@usp.br> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: YQBPR0101CA0032.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00::45) To DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6280:EE_|CO6PR12MB5476:EE_ X-MS-Office365-Filtering-Correlation-Id: 475213e1-ca52-4fe3-a0ad-08db3087bdff X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c/b4AXsgQA8UUL63bQxCHpuc9TMdFN3tPNLuhtoUzDjUUgrDsUalifY6PCR6T6kgflmx98d0LIM2iwWQvpSJ3K7Z5tQe4n9CDR8e0OK71l1sygJ4IkYeMzTX8nYHAO6J1NrIQEVccDC6R9u7WUp1sHFAjacHFzQQrFrgmx6xVGNF6GAADVXwryvFjU0A5s/PtNcPXAwW4nikXd2aeHkRe+0XiA4EAsQEs8fszF6zGcGbTzMGHoamNB6EfWeFLAffV3L5AMk9BUYLDEOlMJAXtuO5lgEzENIrJK9IhuUhagGpZAkuBZ6SD9rJ77XAAUY+rDDH8dS/g14fK94uIqAt4HDceHiA2mKRf2p0A29w2YqGpiz2GDKE9/GymkmqERJudcdgq1VQwHhAuWNrBiawNTj0HDM0YGDEkVljy+3Z1LUZCXt1/4dF9123G2nTmAQ0P4Tb0oxCDjdVYqzVN5NV//6Lhmj+16vV8QboNiVkfBJFl6W1KjeYkV5+ZOuqz/Gr6wE08j0sZ9IPSGVokB/uzTeVSbgvqsa9fPLjO1F1/9j8GYVTRYbQFs22T5r3b+Jl8Srz6ZaeCWbkyV1KwTVfAP0uQhdITfruaSxpPUdIy8DcE6s0PPuqbkqHZgK6k7KZEF2Eq8hD9Km0qBiLd4JFmA== 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)(39860400002)(136003)(346002)(396003)(366004)(376002)(451199021)(31686004)(83380400001)(6666004)(26005)(53546011)(478600001)(54906003)(316002)(6512007)(6506007)(36756003)(31696002)(8676002)(66476007)(66946007)(66556008)(41300700001)(86362001)(4326008)(2616005)(6486002)(38100700002)(44832011)(8936002)(2906002)(5660300002)(186003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d2U2azlscDFPNEFScHhEL01QaERHelljR3g1Vi92bnNaaitrNk42aWI5U21L?= =?utf-8?B?eEdpaUxoc3duV3M4TnNPRFNuZVcwdXlPbnVydkV1NmRKVlRUVzhoMHVjb2FI?= =?utf-8?B?TnVsY09TT3NKLzk4NUEwOFA5end3SGxZYkVqOU5TQUM4QW14UThySDBLY3Ix?= =?utf-8?B?VlNqdEMxNFExa093VlQ5dkNUNW0yenFKeDI3eDJQZHpmMW11UFBIMGhSa3do?= =?utf-8?B?ZjdJZFUzNmh6ZDZJYW5GWS92SmVzNVJoRFFyNVBTZ3lROVc1aHJTM0hCZFI3?= =?utf-8?B?cDlZUElBZkhCcEVxdTYvSmEweURXQk4zN2h3RkM3SkQwRmJPU0tzNXBrdEhL?= =?utf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atorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 475213e1-ca52-4fe3-a0ad-08db3087bdff X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2023 18:59:37.1914 (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: Yf/RpWpRFNl0rcF+Mhe+ipw8Pk2mGegHzqX4/KBXNot9DfaevJCeN8fbxGF/rQOmQJxWo4yQFdque4w/pJ3l5A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR12MB5476 X-Spam-Status: No, score=-0.2 required=5.0 tests=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 autolearn=unavailable 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 3/29/23 14:05, Caio Novais wrote: > Compiling AMD GPU drivers displays a warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_optc.c:294:6: warning: no previous prototype for ‘optc3_wait_drr_doublebuffer_pending_clear’ [-Wmissing-prototypes] > > Get rid of it by marking the function as static > > Signed-off-by: Caio Novais Applied, thanks! > --- > drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c > index 08b92715e2e6..c95f000b63b2 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c > @@ -291,7 +291,7 @@ static void optc3_set_timing_double_buffer(struct timing_generator *optc, bool e > OTG_DRR_TIMING_DBUF_UPDATE_MODE, mode); > } > > -void optc3_wait_drr_doublebuffer_pending_clear(struct timing_generator *optc) > +static void optc3_wait_drr_doublebuffer_pending_clear(struct timing_generator *optc) > { > struct optc *optc1 = DCN10TG_FROM_TG(optc); > -- Hamza