Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1120984rwr; Wed, 26 Apr 2023 10:18:35 -0700 (PDT) X-Google-Smtp-Source: AKy350a5V4PTFrWsJhTs6mAyf4GI+62ilCMCQaedkFB09PN7G0OFFYnLzu/oKzQEkq8sWIK2di37 X-Received: by 2002:a17:902:9a92:b0:1a0:4913:61f3 with SMTP id w18-20020a1709029a9200b001a0491361f3mr23298930plp.37.1682529514723; Wed, 26 Apr 2023 10:18:34 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1682529514; cv=pass; d=google.com; s=arc-20160816; b=oNbLjRJQBxbHAB5gRatDB+2IJ3A647N/no1Ml2hoEs+DdZh+EkRoFEQdvHHnegN1by Op8+xoxE71ddh6UcOlGdnwEBlRY676YEj7Xd2Wqn0zQKzgWGZmQPDZzMFiJkAMaiobT0 q6IVi1/INtkJXPccR0ZP2R7qLJeMvMpG8RgMidJOzqkr6b7STNf6IfNOrrFKWa1aNbm9 HMoWLvUCadYHgzEuDZLLALmcmAglZqVUVP4Z2P455GgssWjP4Bd6S0BUF6ev1kH9uUb8 Fbyr6KLv4FXdw9kGFC6wpqT/wKLfnowLwF3a2gnxZxHP9q1L3BdH1dXcG6YnWERYe8oY mirA== 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:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=a7am59M/z5ePKpzLpyl0e7xZy7NlcqznNrIZ0D1ya/I=; b=l3nwUhHBphUOqLpTqZaJA0LfZvgIP+0G2Y9MijCVcqLwapRqDI8EPJeBbY5KBsQjsZ syR+eFI36dwVKg4LHw98PXXxxN3n5ODyUpQ6VB4vrLJVkAPNHE5TUNHvoKfuScY8gXxR qCmPOeJeJbChrpTSOhS+TW6tErrQmeo1xyXGa/tO6bp9RIneYFQ2c0bV2to+0lWkV+j9 otAurlV06HULqdpNfNJUxllxCAEJ5xhbxIKfwixYsQERTmIDCF49LCsWVnJQQRq1uI/K L9R/6Gx8Z9Cl7qRrMF6WxScdb5EnnmTFYygoOkWhMqtJPXYfi99P0hiNn89BdOPj4ycK gR5Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=Si7DQ80U; 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 j11-20020a17090276cb00b001a6477cf78csi15998638plt.295.2023.04.26.10.18.20; Wed, 26 Apr 2023 10:18:34 -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=Si7DQ80U; 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 S234673AbjDZRN6 (ORCPT + 99 others); Wed, 26 Apr 2023 13:13:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234644AbjDZRN4 (ORCPT ); Wed, 26 Apr 2023 13:13:56 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2041.outbound.protection.outlook.com [40.107.220.41]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83B5C7ED3 for ; Wed, 26 Apr 2023 10:13:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=V+9jhKwkbN5GCKXE+jvnD/djzqlDzTUmJeB45KtgKlj1vFTxffCOWAsDgYf2j8U2Dh2HU4L1qJsMwhsONX4Z4f7oDeP6I+33633ZnsuTsLLHzitJD63gpbhaTVQXIBvyo4nUp6qRcG3dLM4rqpe9f00E6Kp/530bhRdflbyV11zGBVo6XxJtnjfUqyHAPPxDX0iPtvgFlMfUX2Smxn7APoG0RxUJUjMbpSKqXUf594Kc/q9pOFIcAsbPVbbcBH0BLrHO2MXJAcNz3sBNeKtbQ76t7LbWK+c2tU0j3VxYNoonB/yCGpoKTPj/QxWGdbLl1VKt9bRKblUMCANjmU8qeQ== 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=a7am59M/z5ePKpzLpyl0e7xZy7NlcqznNrIZ0D1ya/I=; b=alMN1UMWoy9kCBcz1cSwYbmB3rmxrr7LBqFU+xE5QCsUIbZhV8qhMc4bllX+Vl/knzsf+vyxJBNOz2zbdX2dcJSkl5wN7zjE+2ZA5TeWOtEGrIbX1y4G4BifXaG0BBHxI6Bu49B32+2CXVdC7mbx4v9jCxT0rMVJnXiGwSEiq3Y4MYkMR5GWnNpI2ExwMPcHOEZ3UOMaE/cGIoH02NvpCszSObDmNCciJ54cOWASToM6CZz/EPmCrNfW//JJWTwurH/jUq0T8Srm/Qs/chV5QY51heteObiJqaP61R293ISJ+oAqX6dp1MEgDa9iIVzpiuT+6+nBZ5y7dMCDGNhi+w== 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=a7am59M/z5ePKpzLpyl0e7xZy7NlcqznNrIZ0D1ya/I=; b=Si7DQ80UQAJ4ZAhyhLAw11ZKx6VFMFG0dEP1CZo6nSuP4YB+yKbEb8Ku0/wLNFQEvaaOUugQK2wEhHOevTA9KGpzD5ZUVoD05a4F6CUS7iDWzNqnuwljjA0hcgviBJrmEnZhwfd+0jNZvjBorVOZ4F5t2V0Oh9cpFK30wzMUXh4= 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 SN7PR12MB6816.namprd12.prod.outlook.com (2603:10b6:806:264::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6340.21; Wed, 26 Apr 2023 17:13:47 +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.6340.021; Wed, 26 Apr 2023 17:13:47 +0000 Message-ID: <04902f0f-dd67-64e7-4495-ae37ae1a8e01@amd.com> Date: Wed, 26 Apr 2023 13:15:12 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Subject: Re: [PATCH] drm/amd/display: set variable custom_backlight_curve0 storage-class-specifier to static To: Tom Rix , harry.wentland@amd.com, 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, qingqing.zhuo@amd.com, Josip.Pavic@amd.com, robin.chen@amd.com, alex.hung@amd.com, dingchen.zhang@amd.com, jiapeng.chong@linux.alibaba.com Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org References: <20230426111838.728441-1-trix@redhat.com> Content-Language: en-US From: Hamza Mahfooz In-Reply-To: <20230426111838.728441-1-trix@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: YT3PR01CA0127.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:83::20) To DM4PR12MB6280.namprd12.prod.outlook.com (2603:10b6:8:a2::11) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM4PR12MB6280:EE_|SN7PR12MB6816:EE_ X-MS-Office365-Filtering-Correlation-Id: 4fd39b0f-dbcc-42d6-bd77-08db46799892 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f/5ZyUSX0oU/Pm78L5gEiwEiXgxRTBH1DCviWpbRzQeNCTDzew7+5J2+36Ye+zTX3rNywDdIOo1zEnC0Ayg8ho/7SQ7S24EStlc1WKOaR4f8ssg3INhQ6cAd4ATqRK2W5EerOJBE4jUH7/PoQ+v+XmmPrG7d8A54ouuxRzYFE7PaXBcHbnE39aEXXX9vYQbH3DsP8UxlgDVz8g1accrxC/uaDLz16KXIl8iqM0VpOt2pfoJe4FqePhBJVS9igfhqcpiUfGZNn8WKW+sl6WCq9O0FwnFg0vEaE/UWnZjPZsHc03+LD6dVpsq5EE6tVV9UpXFCV3hStkSfE20gUKQlii4YUSnnIUPziMCwkpKGjxSDc5YKZVlt4LciLE+DEG5aq4svj1q1Z4XehzwRzfHLXu0BSpFNd3xD2u3GBZ1STFwvVGtLnpLmukhr1mAiNNAdj0rTUf67/35P/Cq8Ggt3VUqJoLErW8LqjRzmwzTUQIWv7gS2kLJlCPn7DE9Sor3Jg1G8HbT0Saehu2a30xSCb+DOrOEFt0jrgRgZoLA3v+8fQSSMF004kA7q+9tY9lz9oWbnliD2Rh8LoIVpK/SQEPW8RiwnZkq8mOq5P5zcLb9Pp7bx1E7LHiqnIHxwdxsmM6kEctaxAuV2S6a4gXgpi9NJuQ0KhgRm0Mpaz+BCujY= 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)(396003)(366004)(376002)(346002)(39860400002)(136003)(451199021)(86362001)(31696002)(36756003)(2906002)(31686004)(6666004)(6486002)(186003)(83380400001)(53546011)(2616005)(6512007)(6506007)(26005)(66946007)(66556008)(66476007)(478600001)(316002)(41300700001)(5660300002)(921005)(38100700002)(44832011)(4326008)(8676002)(8936002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Nk4zM2dSbjRNNUxxM3QxaXdOWm94L1lBdG9CYWF4aXNoVU5VYS8vVnlDMmhh?= =?utf-8?B?YkhtN282Uk1tTTZHSXdIc2ovbGpBd0JMcVBpVmhsWXhnVGVXM3d2WnhzY3hG?= =?utf-8?B?aUcrZkNoaWJsN05aWFo1QnhSelM3ekhjT2djRDRYSE8xRjVJYnBId0JHa01x?= =?utf-8?B?c1R3cVFrM3gxSFdpRkgwcUh5VW1uNGs2d3orS0xZNmdQUldvRGw1TFdTR0N3?= =?utf-8?B?NFFFamE3VDZvM0NnQ1FKT2x5MUNHWjAveVZiNTVhSUZOYVZYcDhkeW9acDRW?= =?utf-8?B?MFpuUDVUVHVLUXl1Wm81MEpWbURab2RSODRZenZBbWxJNXNQVHFvKzFCU2xJ?= =?utf-8?B?ZUNDc0l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MS-Exchange-CrossTenant-Network-Message-Id: 4fd39b0f-dbcc-42d6-bd77-08db46799892 X-MS-Exchange-CrossTenant-AuthSource: DM4PR12MB6280.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2023 17:13:47.0370 (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: syVCZ4by6RPf2YOJ9Ar5xmXEwTrGxdVOIqcc3sto0hqehYNlsihAAo+f64R+5qKgGiS3V1GQhfzoQXvuIHIURQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR12MB6816 X-Spam-Status: No, score=-2.5 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,URIBL_BLOCKED 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/26/23 07:18, Tom Rix wrote: > smatch reports > drivers/gpu/drm/amd/amdgpu/../display/modules/power/power_helpers.c:119:31: > warning: symbol 'custom_backlight_curve0' was not declared. Should it be static? > > This variable is only used in its defining file, so it should be static > Signed-off-by: Tom Rix Applied, thanks! > --- > drivers/gpu/drm/amd/display/modules/power/power_helpers.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/modules/power/power_helpers.c b/drivers/gpu/drm/amd/display/modules/power/power_helpers.c > index 68d95b92df76..30349881a283 100644 > --- a/drivers/gpu/drm/amd/display/modules/power/power_helpers.c > +++ b/drivers/gpu/drm/amd/display/modules/power/power_helpers.c > @@ -116,7 +116,7 @@ static const struct abm_parameters * const abm_settings[] = { > abm_settings_config2, > }; > > -const struct dm_bl_data_point custom_backlight_curve0[] = { > +static const struct dm_bl_data_point custom_backlight_curve0[] = { > {2, 14}, {4, 16}, {6, 18}, {8, 21}, {10, 23}, {12, 26}, {14, 29}, {16, 32}, {18, 35}, > {20, 38}, {22, 41}, {24, 44}, {26, 48}, {28, 52}, {30, 55}, {32, 59}, {34, 62}, > {36, 67}, {38, 71}, {40, 75}, {42, 80}, {44, 84}, {46, 88}, {48, 93}, {50, 98}, -- Hamza