Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4549829rwe; Mon, 17 Apr 2023 14:37:18 -0700 (PDT) X-Google-Smtp-Source: AKy350Y6W7FN9VWxm1E2ONwp+cAHeAP9aiicHGs99ibA1A9Gs93MECwVP30j6QC6yr7VgV7PkEL4 X-Received: by 2002:a05:6a20:7f99:b0:ec:a494:2115 with SMTP id d25-20020a056a207f9900b000eca4942115mr17082539pzj.12.1681767438276; Mon, 17 Apr 2023 14:37:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1681767438; cv=pass; d=google.com; s=arc-20160816; b=pg+QxGV5ZwCCPT4TyVs1uUllRDOB1PbWMCW3DuWZUoFwLCVB25Rt19RTkax/+bszbJ EpeZZgGdJJQN89lLtGfhHe9DcibzrH1SU4jdSiRnQ8Tehg5asY5Yzaemhp/9st66Wsmc 6k7GyyKqQuWgg2diReqKqtKp/7FBPuDVnVkCaAccl2oqEw2rJ10rZ+shpLTM/RzfH4Qb oOG5xdJsv0XfcWWohCIcnxOFEWL0wuI+3YbKwZ95Vma8jFTA3iRrgtakGYTobkl2Tl1P oH/RtUcduSRiOVQtZ5J/B3KUf86waXEq3jYrw9ugRjrsIix6M4pBkFIb8PRvcfI4zu6q wAIw== 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=X20RKJlBDv0b2bSMV+2hia9w8QmcOrHHzpQ4MBYaE2w=; b=NI9CL36bt/xs2JMclqZYfYWghIGuPj7vC9IEn3TwoCAORo1r5P5e1CJXlMpmf/cNL5 chE89qWoVCV7TPWpakhLZlwqo6b+rygHM4+6vtGA4V+g7K4AxGyNKU4bpxpO9l8GLmfo pBj9eaL15v5LRbUI56UpEH3X2YdNC8TcQdRrCW/+ydMvy/Udke3laZ1vmBy7ZqZTYUpR cYYpJDqIi8kce/ZSn6OomKPVN8g4o2H8Cqvu4eB0rsbv8du2sczaZpGWcsLpCQROh/uy vSnLOaiVCeMl2K9rKKOCxO6I8irxOczHDgjJzzGLTmpnXJG/WCenNlCbLBagxaBpzs2u kyMg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=CDScFZGU; 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 n3-20020a6546c3000000b00514344ff482si5932413pgr.371.2023.04.17.14.37.04; Mon, 17 Apr 2023 14:37:18 -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=CDScFZGU; 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 S230164AbjDQVQC (ORCPT + 99 others); Mon, 17 Apr 2023 17:16:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbjDQVP7 (ORCPT ); Mon, 17 Apr 2023 17:15:59 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2072.outbound.protection.outlook.com [40.107.243.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A52C4232 for ; Mon, 17 Apr 2023 14:15:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GAF6OG4rhrUvaywAERaldljxb0QX1JVl2a6wRQ61+C7BORR9GuAM5px4fgJRWinRtnD4UVjHKdaLoRaLt+bAAveDWh8++1n/H5fVCcE/4UFEm7bH3kWh4Q7J+l1+Kojwa/KzHwDw9Jva9lkXw93zOeBYqywhvv3qkiPd/ina0AZjBgfFIthy+VlIbOswxD+OeeFDQIsSGlUhwI77rZnrgUQb6JEu/FNkJzLvokMoyq6BvFnOUR/1pQMU6hHxuqxxlTxZju6RgUJWuxVfzFBCkbt5+uk2STVPF1tWVCZFTv3S55mcnRN7mAB3E1yriPegaOYP3pHmLPo7CBoKdKAKFg== 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=X20RKJlBDv0b2bSMV+2hia9w8QmcOrHHzpQ4MBYaE2w=; b=B8kcJPz7Lp9pdHewDn35SNXPqMVcfMi7YCqX0AwuVViRpJFyDmKeC9d6npd8d5cvpk4OJsYb5Hmq/6IwfjGDQcUWyXHbK2G+ZMaaUgq8tAgxKqBE8p/LNaLPTnjVuUmdg/bcxztWbvjECBKUvsM3rSPrUnOIadYwUiXoZ/HgV/MAPahBhcvn4OLK1Fw/afr7rAnG++TxSm+IaeR3CAJI7wmjhU52z7dIyDDEMwUqBI09bDXA4DdS+dMnGCi0vygPhfOQFxPO6Iv4z6dX3SGRuxXW9wOpO3vP4dh4lbFAf2wCkg3TG5A5ThhH/Ic+kIjXKO8kivLvhuwpghMVZX4ylA== 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=X20RKJlBDv0b2bSMV+2hia9w8QmcOrHHzpQ4MBYaE2w=; b=CDScFZGU3lKRvsNF4uXg0qkCkHiPhf0rDU4DDcZE1wJj4QZTC0B/d1jxcTqAXFa0hSPoERPT/+1IjI9K3dN0cAWzPpPhPMCQ5xSSZTX8E9jNoriLDgoRpAFz6Sl8B5GOpkYk/w3iVx5tZVum2ec5/L/GTY7VX1s6UaTYclx2mxw= 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:15:56 +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:15:56 +0000 Message-ID: <558fee93-282a-34b1-7225-3bcce63f6b1b@amd.com> Date: Mon, 17 Apr 2023 17:17:19 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH 2/2] drm/amd/display: fix missing=prototypes warnings 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 , Lyude Paul , Wayne Lin , hersen wu , Fangzhi Zuo , Aurabindo Pillai , Alan Liu , Wenjing Liu , Jun Lei , Alex Hung , Aric Cyr , Qingqing Zhuo , Alvin Lee , Roman Li , Jasdeep Dhillon , Wesley Chalmers , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230417210602.2614198-1-arnd@kernel.org> <20230417210602.2614198-2-arnd@kernel.org> From: Hamza Mahfooz In-Reply-To: <20230417210602.2614198-2-arnd@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YT4PR01CA0461.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d6::29) 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: c16cf7df-f3f4-4092-145c-08db3f88eee3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CVwPIjXPUvU1DGdAXrN9eRqeZIz4lY+e5/BqF8nkXETTHZnwiYLUrO787ZNuo8GEEStfDjCWV4oc23Nz6AtbIdu9USvxe3c3jXnrne4poMxYcY5NGQAQfR0j45hNpeAhQDO/Iky4LHSNNAXf/qClTssfOpoj0e9stws75yIF0QfM3snPstg9Ts0XeeBxmIgjKWZSZgzZDSHnOi1JCaucEi1l8qocyU4WwNSx5Y3zAUKjuDJpnMqV5wIjJcQD3ssubqmUiClX1SaIE1liscXG46x30R0EpPVg8CGQD/HomqgCRDliydK2BKdSzo5aPlxoQiRnv2A/SulCYs7G7tpRMO4eQuzmm3QkSwCFpjLB+J7s3teEK+/0ryDP/oxxopXKYrHT+uL01lCWywpRZlTvPpyy55Fgo4micqhOb7s0z2zwOoi7aUGgGxwIn2Myql5nXHwWcq1ctpKBDuA22ruWOvhgQndr7jDau8wOA9/bD+onDwPHAeE0bCQmU356dykXTSTFYjB1S3yGeiEbiPFE1eN/9vCYvVMB+soIqouEA8Zs0PuGZu4U5O1sST/TTCLKj7TI9I1OxVZbcVPVLjzdaepBtQVlfuMpLh5Omx9BJFuQsKjORQjNdpm1I8eZ2l6I8yF8jg7wJo5uh7EJECCyk+hCI7OYILxguQsU+g9ficY= 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?ZGcxUFpOcDdZREFQeDFwM1RDWTVvWG5LMXVzMldBdENtN0trUUVmdU1qdnhp?= =?utf-8?B?NndWa2pwN1pNWUpYdlI5UmZEb012LzZwRFR4c2NwNFQvRjZBRXJtUHlxZ2xY?= =?utf-8?B?Qkptc0pHTm1SbWN3VEJoSHVzdWhaMGE5MVAwSkg5ajNPN1RxVVFPLzhVSTB5?= =?utf-8?B?eUhEZUhMMFo1Q05lUUhFenY0RGdFaXhoVmo4RWpHY3ZSU1llRC9iV2oramta?= =?utf-8?B?QzQ1WnppWVJSZGNUQjc5OUhBaHI2VW5IYjJhQnlzaG8wbnZyc1YzOVZIbndR?= =?utf-8?B?UFFEYkN0am9GZ3dNWnZYQlBXL3RFOVlhTHMy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-8?Q?aAK8ivPLb1tF9vDqUyHzGzc5M?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: c16cf7df-f3f4-4092-145c-08db3f88eee3 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Apr 2023 21:15:56.1462 (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: MrS24dVbNjCze2u91h2fuawoq4w24GlIXlYv59ayXpPA/swfuVAaPFd1fwnVE7jcgYH0OSMFqEMK38dtMjiZHw== 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 > > Three functions in the amdgpu display driver cause -Wmissing-prototype > warnings: > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_resource.c:1858:6: error: no previous prototype for 'is_timing_changed' [-Werror=missing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_mst_types.c:210:6: error: no previous prototype for 'is_synaptics_cascaded_panamera' [-Werror=missing-prototypes] > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn30/dcn30_optc.c:294:6: error: no previous prototype for 'optc3_wait_drr_doublebuffer_pending_clear' [-Werror=missing-prototypes] > > is_timing_changed() is actually meant to be a global symbol, but needs > a proper name and prototype, while the other two can just be made static. > > Fixes: 54c7b715b5ef ("drm/amd/display: Add DSC Support for Synaptics Cascaded MST Hub") > Fixes: 17ce8a6907f7 ("drm/amd/display: Add dsc pre-validation in atomic check") > Fixes: 8f0d304d21b3 ("drm/amd/display: Do not commit pipe when updating DRR") > Signed-off-by: Arnd Bergmann It seems like, only the changes for is_timing_changed() are in this patch. > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 5 ++--- > drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 6 +++--- > drivers/gpu/drm/amd/display/dc/dc.h | 3 +++ > 3 files changed, 8 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c > index 994ba426ca66..442511061178 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c > @@ -45,8 +45,7 @@ > #endif > > #include "dc/dcn20/dcn20_resource.h" > -bool is_timing_changed(struct dc_stream_state *cur_stream, > - struct dc_stream_state *new_stream); > + > #define PEAK_FACTOR_X1000 1006 > > static ssize_t dm_dp_aux_transfer(struct drm_dp_aux *aux, > @@ -1417,7 +1416,7 @@ int pre_validate_dsc(struct drm_atomic_state *state, > struct dc_stream_state *stream = dm_state->context->streams[i]; > > if (local_dc_state->streams[i] && > - is_timing_changed(stream, local_dc_state->streams[i])) { > + dc_is_timing_changed(stream, local_dc_state->streams[i])) { > DRM_INFO_ONCE("crtc[%d] needs mode_changed\n", i); > } else { > int ind = find_crtc_index_in_state_by_stream(state, stream); > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c > index 85d54bfb595c..344533623cb9 100644 > --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c > @@ -1855,7 +1855,7 @@ bool dc_add_all_planes_for_stream( > return add_all_planes_for_stream(dc, stream, &set, 1, context); > } > > -bool is_timing_changed(struct dc_stream_state *cur_stream, > +bool dc_is_timing_changed(struct dc_stream_state *cur_stream, > struct dc_stream_state *new_stream) > { > if (cur_stream == NULL) > @@ -1880,7 +1880,7 @@ static bool are_stream_backends_same( > if (stream_a == NULL || stream_b == NULL) > return false; > > - if (is_timing_changed(stream_a, stream_b)) > + if (dc_is_timing_changed(stream_a, stream_b)) > return false; > > if (stream_a->signal != stream_b->signal) > @@ -3505,7 +3505,7 @@ bool pipe_need_reprogram( > if (pipe_ctx_old->stream_res.stream_enc != pipe_ctx->stream_res.stream_enc) > return true; > > - if (is_timing_changed(pipe_ctx_old->stream, pipe_ctx->stream)) > + if (dc_is_timing_changed(pipe_ctx_old->stream, pipe_ctx->stream)) > return true; > > if (pipe_ctx_old->stream->dpms_off != pipe_ctx->stream->dpms_off) > diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h > index 23ee63b98dcd..e7ab6cb3769b 100644 > --- a/drivers/gpu/drm/amd/display/dc/dc.h > +++ b/drivers/gpu/drm/amd/display/dc/dc.h > @@ -2225,4 +2225,7 @@ void dc_process_dmub_dpia_hpd_int_enable(const struct dc *dc, > /* Disable acc mode Interfaces */ > void dc_disable_accelerated_mode(struct dc *dc); > > +bool dc_is_timing_changed(struct dc_stream_state *cur_stream, > + struct dc_stream_state *new_stream); > + > #endif /* DC_INTERFACE_H_ */ -- Hamza