Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1184321rwi; Wed, 19 Oct 2022 07:38:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4wB5rL1yrgV9UfJA1bxChGQikOXSrQooGPyAQPYazLAKvyihnJMis8gKpoYqlC+arkQlTD X-Received: by 2002:a05:6402:b35:b0:45c:9c9d:2531 with SMTP id bo21-20020a0564020b3500b0045c9c9d2531mr7757991edb.410.1666190312707; Wed, 19 Oct 2022 07:38:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666190312; cv=pass; d=google.com; s=arc-20160816; b=y2AzhfJNaw590ANhMb6bYB53noqezU4KnGnK1Usmf0zuCJkTMh7Nl5wk2KX0fdIP4F qq9/2/dLviitMXGnBhcyOOalOI9QSqDlKsgNLOOjlXFdqfMaJpgfdGugh0bxIRQGpkzB xYlwt28H2Ph9uSLVcW9d/U2lA8QI9Wb5qQCnqT8ZrIBqIVd0KYNb6rY8Sb0QBgvYH+Fv VfcP6zwkz25zqKMgg9zT8KNdMLWLvGpu9pC+IkrWvP86Y8AZRYT26ky4xZrNO3VAkunx Xwl3ndvbS67YAVxP2rxyTjNFUD4l+gjnjCKRo0cGvxmGSHb6g5y/Ww9k6dzwQdl4YGx2 Mc7Q== 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:to:content-language:subject:user-agent :date:message-id:dkim-signature; bh=OUVUlj1khZS4qOwz9HlfbfG8/dDiXQ3NpNi692JTr8A=; b=aVxmoI5tDQrUBaJTainB+lu9BRMzJYj8RdFC0NtFXZPeEKg6//xgth5kd3INNfrAA9 GNC4QjPjN4r0uiLvzLpmFepHSExIhOAXtXJk5Kut0x4aWf/l/gH6TQuJj0vsRTDFvqaM 2isP0MQEdP8Nu+MKiY0fgY6lrFCZvG4hKLRoA9kEr73yL5hSzA2W9xv/vGPkb/12/YKl npFxOg6vGDXMAn4vs/vq4Ad4MkNCmZdSEe3vc6wr4RpJytErOvqMSPRb7fnDk63JdMK+ se0MLwkb2Ei+jw5nzoQtqhfw0IiJygDfr+rES6cCuaKrQ6Y6HYPZnv3G+nEnPWx5gYYq j69A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=dgzWU+TP; 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 kl12-20020a170907994c00b00780af308970si12831079ejc.185.2022.10.19.07.38.07; Wed, 19 Oct 2022 07:38:32 -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=dgzWU+TP; 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 S232712AbiJSNl6 (ORCPT + 99 others); Wed, 19 Oct 2022 09:41:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232165AbiJSNlZ (ORCPT ); Wed, 19 Oct 2022 09:41:25 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on20616.outbound.protection.outlook.com [IPv6:2a01:111:f400:7e83::616]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FF5213332B for ; Wed, 19 Oct 2022 06:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=J+nMhJLOyXw+PeG4NOOAS5mpYloYIg0xSBN1Ealyx7P4nIQm6Fn9B3gVOzTh89vreXeNr7g2ntS8eFpUYRb/jmkSmUj213qkpZRj8S4+FzPauZTKb0ijzCrxaGPZFnNDKFPXhjNds8szgImiVcLwDjJ2OJ2rh2+cXnaolIEAEKhn1+bpEXv1e+e5D0ZZXk8joNby9a+VFShqQSWO6fU1l+HILA4sp5I66AS0mjr8FzzmvCEZ9zMJgoYXhUtaPJntQhwD2xy6GogGSSQKLpcQIk2udzfIoNLnpuIlsFJZ2qAozvb2G926xsiXAYrwE8xkX7u7ZcP7/dHMQcJ4Mem5Pw== 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=OUVUlj1khZS4qOwz9HlfbfG8/dDiXQ3NpNi692JTr8A=; b=gWxAYoGTiNZ76yx1xTWmKyX+J7bvWlSlBxRdjLIfbEiKTVWcqnXnGgJJ0wScQ2wFdI+78B4a4uk/qKz7LwucVe/qi2vFFuX9dbNdFGLKFygaJUgXcbX/wNYRY7S7sm1fKtzE3cPmtNkDWThRAo3cf2kYrVkPXRCmYxewWY3So+6JG9GmwonVO9h8n4LV0sg54EuNw63aYs+TguJsjnr7+gAghJX3FvInQjqlAIDhAdBY3loaXt9DXflTEMKrmflrVWM62aLVTV72fiEZkch8LWaJNX1BrXXLdTa8+rXisq5DsDM/oliG4FpF7ESWHFBjqC9YzQo2yQ97FObWn2OcXQ== 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=OUVUlj1khZS4qOwz9HlfbfG8/dDiXQ3NpNi692JTr8A=; b=dgzWU+TPw1WuVgQp9uBgFjWgrDC8Fhh8NB65kIuyCpY1yaedOJo6xppb5EdNtjJSIyhP72baUlcl+OPehlfvLwLTbSjFjcg2sgReHBbEEvJoYr9LNlOeK4rKMd3etKdEAtsJ1I06l7WrpBE+7FPXkQtXtVbLF5+SXXurQIf4OLQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) by CH2PR12MB4262.namprd12.prod.outlook.com (2603:10b6:610:af::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.33; Wed, 19 Oct 2022 13:28:07 +0000 Received: from CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::aef3:6aae:b904:e395]) by CO6PR12MB5427.namprd12.prod.outlook.com ([fe80::aef3:6aae:b904:e395%7]) with mapi id 15.20.5723.034; Wed, 19 Oct 2022 13:28:07 +0000 Message-ID: <8eb93fb6-a1c4-5ef4-f549-8649bb36e59a@amd.com> Date: Wed, 19 Oct 2022 09:28:03 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.3 Subject: Re: [PATCH -next] drm/amd/display: make dcn32_mpc_funcs static Content-Language: en-US To: ruanjinjie , sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch, jiapeng.chong@linux.alibaba.com, hanyihao@vivo.com, aurabindo.pillai@amd.com, Martin.Leung@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20221019062347.3756071-1-ruanjinjie@huawei.com> From: Harry Wentland In-Reply-To: <20221019062347.3756071-1-ruanjinjie@huawei.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YT1PR01CA0069.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2d::8) To CO6PR12MB5427.namprd12.prod.outlook.com (2603:10b6:5:358::13) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO6PR12MB5427:EE_|CH2PR12MB4262:EE_ X-MS-Office365-Filtering-Correlation-Id: fd7279e2-6f39-476d-1c2a-08dab1d5c23b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: C6WvJtMeBm6IvEr33+x/xYrcj/LxfMTuDkiNeYOn9Ob02bvy/UF6ueJNT+FCImwDOCpykRQzhANdhak+tBY2aNQmr1qmlRisHnxof4Z2E3caSGsT2r3qxfhTJRaK418MPq6XnSR0QYNtBbn5QK4cV7UfDlklmgQhQl4L5rEnK/YhQq7DO69LqtSTfF8dOZ53QQUbsCSDXUN4hSsavwsrEjfl0G6nmQNNRJqINID0xcJEd6xflOOxSm8QmF5P+yuvOW4dkrDtVEEJlshdcW3KhzQ0sodJziUgdElYElENdiBDw+l5wcpm7V9jHz/c9jAObT8hL1EprXV62aNmn1yPwL4uA4fQ5v03u2dcNlJJug9hMqdPgOW/4YViyCXOyJ6jcaVUJzRlnkKcgaEIhR2I9FEIfGOlfArWDUzG450XaSwjPl0oVabq/Kewk5UOBkXiJc+jrgwgSZM6stp+VO2O0AxfG4v8Su5iWL5jD8Px5oXFx6F+q6UJh/O8Dq9qW48Vdjp3B63+PwcxBpyGvYCM/HdpyK+7FrP83z7b6JC2w/ehuiAScCRjERFFo5Pc4H6SC2oXmTUdfNThXqyRnuhqzF/JlssCrVA+u/LRVutWqrwZ43yc6i58Tottn2eilgQ7yRyKZM3DRFLJo02iigZlbmUueZ2t4KfdRdtlhiR+eqytD5M9Nj6i7k1F6+QtdhT0Ivmc+rMVmLYCkSyENovpGyKRQlBSYqI2Z9tYaHgNqIYPsOa7XaLevuM1nq6bj0DZ3DMLAwbQZB+QBk0gUMvZOremYyXK78SJWbPkFe/c8mVZKPzdz61uYPG4OoxknzaG X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CO6PR12MB5427.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(346002)(136003)(376002)(366004)(39860400002)(396003)(451199015)(2616005)(478600001)(26005)(8936002)(5660300002)(6486002)(6512007)(66556008)(66476007)(316002)(66946007)(8676002)(6666004)(186003)(41300700001)(53546011)(4001150100001)(2906002)(6506007)(86362001)(31696002)(36756003)(44832011)(83380400001)(38100700002)(31686004)(921005)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?c3pFV0JBZStXay9EaXF3M3pnd2o5Tkp2ejZVQmZlazlUMzVpTzdRV1Z4MHkw?= =?utf-8?B?d2NWVXo1UGJBekVHT0VIZndqcGZjMFRSc1VlalpaUmswMWowci85Nlp3RnQr?= =?utf-8?B?S2ZReWxDeHg3TGg2NlUvVmFMVmlLNmxuRGY3aHcwVWRVZ0NjQ1pzZFJhYkQ0?= =?utf-8?B?Vy9jMXFXTUd2TEd6aHFzZkMrNGN4ZnNCSHArT2c3N0U4K2MwL0hQUzF5TEZP?= =?utf-8?B?NW9KeS9DNHpFeWYyUjNGTHNad054eG1hODJOTy82Vk9Sdzd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lneEpJem00RlpxeWZaeUozK3Y2clBYKy9CWlpHOGdS?= =?utf-8?Q?nLe7Lxw6TlQ/WMu3tVSNxFHDx?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: fd7279e2-6f39-476d-1c2a-08dab1d5c23b X-MS-Exchange-CrossTenant-AuthSource: CO6PR12MB5427.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Oct 2022 13:28:07.3507 (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: qomeJE+pJjzPHvDh87J1OcMku8icgg3oHsKrqkv9xnMA2yOqzM09ye5TNDtyel3Tv0JrqcwZg8r1I1cEsc5dPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR12MB4262 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, SPF_PASS 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 2022-10-19 02:23, ruanjinjie wrote: > The symbol is not used outside of the file, so mark it static. > > Fixes the following warning: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_mpc.c:985:24: warning: > symbol 'dcn32_mpc_funcs' was not declared. Should it be static? > > Signed-off-by: ruanjinjie Reviewed-by: Harry Wentland Harry > --- > drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c > index 4edd0655965b..206a5ddbaf6d 100644 > --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c > +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_mpc.c > @@ -982,7 +982,7 @@ static bool mpc32_program_3dlut( > return true; > } > > -const struct mpc_funcs dcn32_mpc_funcs = { > +static const struct mpc_funcs dcn32_mpc_funcs = { > .read_mpcc_state = mpc1_read_mpcc_state, > .insert_plane = mpc1_insert_plane, > .remove_mpcc = mpc1_remove_mpcc,