Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp346447ioo; Thu, 26 May 2022 05:09:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx70lwwvI9+lsYNU8jnSePYnRj2+xnPRHQh2jUqscP7bcITGCRQJoZQzLca9j/PM7l6CYEm X-Received: by 2002:aa7:c68d:0:b0:42b:cc77:4696 with SMTP id n13-20020aa7c68d000000b0042bcc774696mr7127422edq.320.1653566942842; Thu, 26 May 2022 05:09:02 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1653566942; cv=pass; d=google.com; s=arc-20160816; b=x86a8F6pRFfZtN4zwet4GxUAAuPweCvAVLHqMxKycLADj4+M3T0zeTJg11pBZylbrR YJ4q6Ch3mgCXu9BahLMUYlJ7CoeFo2udm0YWqIhnVcDEieTDUJbksv5wnWLyNTwsiZZo z+0mvO4shwYYifo7GxGG5zYK9DFdXjd0JIypJDzPgEK9GE3MUqZRY3BlvmdhEJ85TRxt y9Z+VEHx3N9zAGMNK0JMstpkSEylSRJjDrbM5kjFOyJZEPiFvQFWnG5VQc3xhgHMOh3+ WcI1mDBNn0s0IkjCLqQoNSXYxXnUyP6vAouUepfxuSA6/IKnpz7LMtMfFYcYVRrxKWhg ZA2Q== 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=NO63I70VqYYwsU6EXYUGmnEVy5HV0QNGQOGXBjL1zaw=; b=zGsmg5eYXvnjh/LkFwe3p1bLNVrgcIxNiikjrKQud5WXkGSlxmjfjOWjVHKDRz5lu6 gg+MR2mQn2KZT2z3xDn/HD/ffOP5OhUWMBLTH4pncmIaQCu/Y994ZXfyCRHqvGxySx6u t/KT/O8VAuNy8ti6qiccGWmam69TPvIt2Z/9DvxikAH176WDbIa0F0miM1NG4U8I5brl U+xhQh4nXF7K6rAJBSXDgoHIJZFJVVVARxcVnPI5EXGBRgzUhrgdiD+OAO6lTxYtt/Ok w7agRHfvFgng4NVDeg0bRg99Xr3mqHlXgOOGzv53o8o+I7Xx4qHLJUUfdi1/d1Kv4VrP GbNQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=UAlFE3WG; 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 d26-20020a170906c21a00b006ff199535d9si1358211ejz.184.2022.05.26.05.08.33; Thu, 26 May 2022 05:09:02 -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=UAlFE3WG; 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 S241901AbiEXVWl (ORCPT + 99 others); Tue, 24 May 2022 17:22:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241906AbiEXVWk (ORCPT ); Tue, 24 May 2022 17:22:40 -0400 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2082.outbound.protection.outlook.com [40.107.244.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 507937A81F for ; Tue, 24 May 2022 14:22:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XUhqT3dl4q8vrM/cGX6/fHA6vODfU1atNN9sZnx0N9hN+JWZCcbdiMGFxeNSsssG0/p7bmQRn8Yd20vEMj1WR7kscHtAR0sxppY3bBzZuIhTrsy6HZvh9ORB6HLj9PesmBu/GpogCfT8qFs4GPOWLg8yHsrno+9/b9vp51gYhbxwYb4qZlGJSUxamHBhp4p8N8BfHmhbsvd7KVwwp1kI7/oeb1JGHus5JqS97I7J6ULLzLC07czCk3TpN0gTvNWfiIo+sb9yIhJZAfwfRDJPfRWMhjR37svimTiwARZNw8WW0IMaXkGYP2STiCPlsFEIgutUAu78pdUPskITkcPsKg== 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=NO63I70VqYYwsU6EXYUGmnEVy5HV0QNGQOGXBjL1zaw=; b=mIkwDfkG8BoMTY+1IDhGkTb8Mhy6pcdYMIVUsrY3VVmeNGyjIWkZvXdsV0F2vU3gpwcYQvJ3P/CUM5NVy+bvI9DWvRzHofkP2Y0aAaiBYiZriJtSqg8kpmRjhtEz/WJIZMq87ojVRJPAifVcefAcNqDCVw/aSJLnACpqI+ax2Zb8ruq0/6bcWggZQErnVk9wsM6ZaXShsOgEcp1CV8m6RhFTfddAy/jUPfzJJZSPMF+XLzpBQ6Kf2QFKZG2q847aCH7n9J84UjiKO54NGzYL/KIAHUWHIQuy5Zy5CEVj7i+moAyfThWUtcTrLb3QeiRbbREwR2FRdxjQ35QQk1VbrA== 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=NO63I70VqYYwsU6EXYUGmnEVy5HV0QNGQOGXBjL1zaw=; b=UAlFE3WGYeVXNoBoKLCg1oPohKWItyzciUY2spO9+0h9iXcLg5TJtejwMsr4YqBVElqvpF+32kqf8bXBWjp3Rc++A+nFO8l5kAowc9dkPyzXXy/0woS/1m7NKQexlWdW5dlUeJvLMRXRjYKT/UAZWxeRG0lWWiAx7Qbsq2AaYLk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB3370.namprd12.prod.outlook.com (2603:10b6:5:38::25) by MN2PR12MB4110.namprd12.prod.outlook.com (2603:10b6:208:1dd::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5273.14; Tue, 24 May 2022 21:22:35 +0000 Received: from DM6PR12MB3370.namprd12.prod.outlook.com ([fe80::f85e:63df:8fde:b620]) by DM6PR12MB3370.namprd12.prod.outlook.com ([fe80::f85e:63df:8fde:b620%5]) with mapi id 15.20.5293.013; Tue, 24 May 2022 21:22:35 +0000 Message-ID: Date: Tue, 24 May 2022 17:22:29 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH] drm/amdgpu/discovery: make amdgpu_discovery_get_mall_info static Content-Language: en-CA To: Jiapeng Chong , alexander.deucher@amd.com Cc: christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@linux.ie, daniel@ffwll.ch, Likun.Gao@amd.com, flora.cui@amd.com, yifan1.zhang@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Abaci Robot References: <20220524081154.35061-1-jiapeng.chong@linux.alibaba.com> From: Luben Tuikov In-Reply-To: <20220524081154.35061-1-jiapeng.chong@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: BL1P222CA0022.NAMP222.PROD.OUTLOOK.COM (2603:10b6:208:2c7::27) To DM6PR12MB3370.namprd12.prod.outlook.com (2603:10b6:5:38::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1919e209-3750-4eba-7586-08da3dcb8581 X-MS-TrafficTypeDiagnostic: MN2PR12MB4110:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oFBvB/bSEuXagkJFHmoFBO6hDo6RM6Gv7UtAzyCd/jE2lWhF9edhAo9ttMJ5TgKIlxkqsY6JqveaZlkO0i9HnFAvYPeuyM+iDfJslFRkTIkGdr3k1JQ/SeTebMjaszf0Qz37gYxt2GpCE/u9+AuerOjoBOnaH4v7mn6HAMZ9AYp6/9JUXxIyhIqgztRMtXeCf1hG1zGtuI1g/kqUmEApZrrzueqYw38ssMwhqQUQE3X1os2bY5B9/NlNgkzwFPqnX2+TXPv/6GAftip7sOWNYTPiVJOl/CHoy9qPDBJYuK4n0jQGc9FrkPA8orv+aA57JXctcfP4bWHjB0lljwXSau6r48i5rFV/oPaWAuRBuoqHhxkdL0J1pqxqqJPB4B5J0oj/t4b/dwoFeXUlApMkCU5kqtlBDf2QQw7iOw1ckxq79NXZjbY8Kak4XK4VTgXbX661T/7rwg3eA8N5aSgQXc9OTXioE4XVbi/jLl5e0UW4umm5ywFDdkEYfxzhejc+jgd44zYn3PaIfR4haTueEMimgdYiZjIWkTzevWNRCVrWvsMDaeSmUIc6OwKSy8yDer8PFs5BOzIJdZkCb753gpl+BsAtOCMEGk6XcYPQJcjJKtjdmcgHBBHLKoOZkrhFyptLUsmhr2lMZQZe5Q+84R/BXhtKw4QR4I6+ZUxsjbxKNNU6/YJDU2YtDWsUjqfUNUBU7zGqsTfpTEYvyDgRMQ/kK36qKYbZK3OqaoqmV4o= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3370.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(2616005)(31686004)(36756003)(38100700002)(2906002)(66556008)(186003)(508600001)(5660300002)(4326008)(6486002)(316002)(53546011)(6636002)(8676002)(83380400001)(6666004)(31696002)(6512007)(6506007)(8936002)(26005)(86362001)(44832011)(66946007)(66476007)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?OW9UbTB3QnRHa0Yrd2kxT1NyaGdyVFU5bHQ2NmpSeGVzb2x4Q2l4VjZ3aVB0?= =?utf-8?B?cWJPZCtIOUZBNytKeVlrNUljUnVKNzN2VjZJU3I2VWZPM0RBTnBlVXpSZjFM?= =?utf-8?B?N3l1YUZFK29UTVNZZFBhM21ZZHpqcGkwZDNjenQyRmtYZ0NEZ2pIRjBUTEpi?= =?utf-8?B?QmExa2VBS0ZzUHVobE5SZ0xmdzR5RVFlVmJXSjF3R1lhWE5pdlZCa2xDcnRM?= =?utf-8?B?alovVTd2TjhDcnBQaHVxK3VYYWg3cmlOdjlPcXFhTHdxYmp3NWY2QmRZKzRC?= =?utf-8?B?aUNKM0FWdC9XK0JkZmFYeUJrdFpxZGhmNXdUSXZzZzVzbDNwVFVOeGNFS0wy?= =?utf-8?B?eUtSOVBFcjNOTFVOK2FoQThJUTNWUmxQVDV1NmVnMDlRdWtVL2F6RWZyYWpm?= =?utf-8?B?dUViUWZrZWc4UHhSQzlRWDRPaHMyWS9Fb0VaWEhwQ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JODJtMlRjaG9YcmhHSHBwMmVQUlYzZDB4NXZBb05HZUtCVDFR?= =?utf-8?B?Y0xOL2NlOFFrWmZxZUJpd0J2ZHM3WE9PdklmSWlqenhlcDBEYWZ1Zz09?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1919e209-3750-4eba-7586-08da3dcb8581 X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3370.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2022 21:22:35.5886 (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: RBRKFvwvaTCRUu7dTvNMQGPIdJyztqKpgenOL3u+eZYCQeTjix7/Hwuh7tlx5bOZ X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4110 X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,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 This is already static, in our local branch, from this commit: commit 6852e61a0917a2 Author: Evan Quan Date: Thu May 19 17:28:12 2022 +0800 drm/amdgpu: suppress some compile warnings Suppress two compile warnings about "no previous prototype". Reported-by: kernel test robot Signed-off-by: Evan Quan Reviewed-by: Alex Deucher Regards, Luben On 2022-05-24 04:11, Jiapeng Chong wrote: > This symbol is not used outside of amdgpu_discovery.c, so marks it static. > > Fixes the following w1 warning: > > drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c:1364:5: warning: no > previous prototype for ‘amdgpu_discovery_get_mall_info’ > [-Wmissing-prototypes]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c > index 881570dced41..16cdfb30b013 100644 > --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c > +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c > @@ -1361,7 +1361,7 @@ union mall_info { > struct mall_info_v1_0 v1; > }; > > -int amdgpu_discovery_get_mall_info(struct amdgpu_device *adev) > +static int amdgpu_discovery_get_mall_info(struct amdgpu_device *adev) > { > struct binary_header *bhdr; > union mall_info *mall_info; Regards, -- Luben