Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp873319rwl; Wed, 29 Mar 2023 09:30:22 -0700 (PDT) X-Google-Smtp-Source: AK7set+yRoigyVT32Vsu6F2G8XKhVpj4tzfjFct5J9L0chlEpCR4ituioJLGxYuObn6aAKK6qZ9c X-Received: by 2002:a05:6a20:b55d:b0:d5:8a5:e618 with SMTP id ev29-20020a056a20b55d00b000d508a5e618mr14216610pzb.41.1680107422201; Wed, 29 Mar 2023 09:30:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1680107422; cv=pass; d=google.com; s=arc-20160816; b=ivt/7f4gqjMaG+D+PX3VwyU2/LMwOAPHJK6feA/HnPHWXl46jz/B8f17iqqdAYylSq 140OURd1oCdIfd6kni9NWjfwUX4p7ohhnTpqP5DQt/CCvtrd292glrZHl/w7vlH61ORo Mpt5xvE4mT73cdnaXonwpqRZxvWj539VqwqlqP9c50AcVYXv+YO96F4DZ0HQlKv+YAo1 c7f6JZrM4K4ybvmRfcJ/VbakJ9n/Uk8kLjwAePSkpbXfJeoGTlsXGTakPOWSPTUZcdQh n1n7utdqaWOVP6Bo023i7ICqwDmfVQWHxYU7P36ohkU3fxXNLOVJn/1JAwoItDav3Mfm FMUQ== 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=cSFNW5/iy3IqzMtqxLLMdgcYI0DEp9x+YdHiVh292XA=; b=ASYwGxz06pSarVvoXsTXLRp+TDDUBFvQgxo8YsM70vjujLz/lNnw15eFDuFcozBd3+ 7FRlPMRru13iIWBZmswlA/87wcugU1NlZgZCITDnMivQSlvohzp2KXDv76rcnG1tbaIx fzP9VjAFFsZBntsznZsZE1CkqTV0kEQj33IJ4TRM7lvN12K6Qtw3BUJyi+XWL1at3bJh UBZbK2t1nQteYOkbcCcoIjwynga2yAHVQLcLmj3zh8dWYp+L6jq9uq1cAj3bYcQagA2h ZXq945gd40DtZbrj0O5KZCiQfG603KOVSbp+aO8RKaSvJigp83T3K8Sxgwuws8AQEnfq L/Rw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=vILaDK2j; 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 a6-20020a656546000000b0050c0a7a2742si31009619pgw.350.2023.03.29.09.30.10; Wed, 29 Mar 2023 09:30:22 -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=vILaDK2j; 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 S229747AbjC2QIi (ORCPT + 99 others); Wed, 29 Mar 2023 12:08:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbjC2QIY (ORCPT ); Wed, 29 Mar 2023 12:08:24 -0400 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on20600.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eae::600]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D9204EE3 for ; Wed, 29 Mar 2023 09:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=e/hjzYa0lg22yk9nudWpaat/k6vT5B9K4OsI6/mU8Mgy8MKevF/rwTTp8UeK8pBa5Ul9OcQJMoejGAgF7AvU4YlM+Mf8ytdZf6ysZXVoezmMXkuicM9HhG4WRPwijFVuBaCxE2+8fzRF2OzLBJwH3uDzMytfnA5fx8Y3oDoYGVKJlk4EwN0w1wUWUATnGRoyvPFaK1acvINY8oOs8AHIWSTOoIVaQs5yoUG7CIYHIm11LTU+Is7CYMLXS0GPbuY19O0A6fEoGA974rGiDW+FhLRUWF1FEShCRA7QoSKmtmT41xuzzxCdzeCOLrWIuM3j0CAAd6S3P4q+69FWsVeV0A== 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=cSFNW5/iy3IqzMtqxLLMdgcYI0DEp9x+YdHiVh292XA=; b=Av/GXGb3J0herrWI2hVoWO8PKi3b8Jmk7Y5VWqHHwpaHn7Y6NLMlgCa/j4G57PZoAfJn2+Lh5e3NEnpmA3W9bxnfirmT+684oWIHCCNAxMW0/RlSTK06CmRxEHqPEPpO4toJBIxfyz36OWvZq6UVJdBqxo9YJ33LlGaLw23dvHtIh0QPZmh0Pn5vL9PDesH35VBFj8ylzsib12EWVbWYebZ+ccdx4QXL6LKIrqKKxA4CFQLOAtbSeFDG3XwRBpzyBs3HkdwL4egCVVTyQ6NIYEb8olhjrVnQ5jSEpyNJGOzvyHXgmcBE1a0KtS519uRN02tlQV+zFhclRZ7VzPjbiA== 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=cSFNW5/iy3IqzMtqxLLMdgcYI0DEp9x+YdHiVh292XA=; b=vILaDK2j+cngLlZdFB2vv2R4y9DdmUFbKmqnFOt33cTnKHY9nchx28uJsFDS3S1qBQLDkrJd0jxWBG6r5NgpjwY6CJT8wQQ8MbzH9bcNT9oioMpxQgFUn0RyCQhy+rw3Ow5XLIx96U+0tVZ+jiFWEFcc6cwhp22KVVushM3pEWA= 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 SJ0PR12MB6853.namprd12.prod.outlook.com (2603:10b6:a03:47b::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6222.33; Wed, 29 Mar 2023 16:06:38 +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 16:06:38 +0000 Message-ID: Date: Wed, 29 Mar 2023 12:07:56 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 2/2] drm/amd/display: Add previous prototype to 'optc3_wait_drr_doublebuffer_pending_clear' 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: <20230328220947.108188-1-caionovais@usp.br> <20230328220947.108188-3-caionovais@usp.br> From: Hamza Mahfooz In-Reply-To: <20230328220947.108188-3-caionovais@usp.br> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: YQXPR0101CA0029.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:15::42) To DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6280:EE_|SJ0PR12MB6853:EE_ X-MS-Office365-Filtering-Correlation-Id: 7068e712-64f1-4099-43b5-08db306f93f2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: y+WxI/2tNDhz7oneE57UJA1xEc0h/1opvAOtw/PZXSuz/5CF7yXbJLq6+DsCgFsl3oRFAuFHw3R2st32nkEU/wmKlSTnpzx9R6dqzGDfA7jIUohAJZ8qY37q0e+r6YURIGwBOqOj1JZg8EAJo8mcVJzvbrl3Gh+AXHKPueZdwQ7vwta078HCp9R0x0cCy00LPMQFNIIwXbJ8borvcnxZOKFUFs+OSURi+wQHAeN+5iYHg8cApMJFvJs5/UQKPpuf1AutNivGGl9xlnQ5sDz9fpFIBu3m5niYEAkQLx3gK+DtzJkozyNtvxuDHZLKYiqPOnLmQ8HVbsb+7wi28O4Vzlh/aHi5K6cfBCuRHvHX/uPs2tVYpzfvpKK1rO3XPKbWDTIwYo8/LwNueKhi96DgdnYVJrS4ukuz8IYhww5sC6u/q1py9GYi7umHZvdfi24VcpD8kaa2GbgupNKQwBHjqC53fLFr4OGNNJf/xBvbpwtD4YWwpYES5LsBCpilWcILBf7vPv2I+N/HSo+BMH9KUK91HqYtK8wKYYG/jsJoS744Nm/WBSTnXaUbrD/hzGGI1gm+LYu6Acm/nkeR+Yq0JlMEAr+Y2GxQbA5hjzMMT9xbyJPFvqPIeuGt9SXzjpsAVyoOusI/6XZ/me3V33ykig== 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)(346002)(136003)(396003)(366004)(376002)(451199021)(66556008)(8936002)(83380400001)(66946007)(31686004)(38100700002)(44832011)(5660300002)(54906003)(2906002)(8676002)(4326008)(41300700001)(66476007)(316002)(478600001)(2616005)(31696002)(6486002)(86362001)(6512007)(186003)(53546011)(6506007)(26005)(6666004)(36756003)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?cDJJelBZZ1hGS2VXVG9vWDJwWSthL1NkdUtlN1VZbWRsaXE5dlpHQ212UEVi?= =?utf-8?B?MTR0NFBvMmVkSmhXdFNuVjBuWFFMYkZNUWZzSkd3cXlYRjlQTVQ3UyszR3VS?= =?utf-8?B?cGhEcEkvZW5yZnRRcU96SUJlMkpsTkZOUFdiVDJORmZONXlkU0lyQm5KRXJY?= =?utf-8?B?SjFIbVJxRiszeVJJTnRqb2hycWpHdGIzZnp1Q3l2OTM4TkEyZitEbE1wazJ5?= =?utf-8?B?R2Z5dVlOSkM0bVh6aFRWd3ZzcmY0V3dOVm96RS9yOXZ5QzdtYms3bVp2N091?= =?utf-8?B?VVRDak1FRWV6aU9jYkI2STZ0N3h3K3JseG5xNk42UjBZNjR6M2U4aFFiUThG?= =?utf-8?B?VlgwUm1iWnEzcE9XUS8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 7068e712-64f1-4099-43b5-08db306f93f2 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2023 16:06:38.6950 (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: YNtchfnCwrG/qP3thYmgWvEuhADna15wLXNGa1hPZCOawBjnd8gSb6buEWcVUN+qFObUZ+iI2A4/F+9ZfsJaCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB6853 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,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/28/23 18:09, 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 adding a function prototype > > 'optc3_wait_drr_doublebuffer_pending_clear(struct timing_generator *optc)' on drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.h > > Signed-off-by: Caio Novais > --- > drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.h b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.h > index fb06dc9a4893..2e3ba6e2f336 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.h > +++ b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.h > @@ -331,6 +331,8 @@ void optc3_lock_doublebuffer_enable(struct timing_generator *optc); > > void optc3_lock_doublebuffer_disable(struct timing_generator *optc); > > +void optc3_wait_drr_doublebuffer_pending_clear(struct timing_generator *optc); I would prefer if you marked the function as static instead, since it is only used in dcn30_optc.c. > + > void optc3_set_drr_trigger_window(struct timing_generator *optc, > uint32_t window_start, uint32_t window_end); > -- Hamza