From patchwork Tue Nov 10 05:15:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Luben Tuikov X-Patchwork-Id: 11893279 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9948416C0 for ; Tue, 10 Nov 2020 05:16:12 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 470D32080A for ; Tue, 10 Nov 2020 05:16:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=amdcloud.onmicrosoft.com header.i=@amdcloud.onmicrosoft.com header.b="Gs27O1G8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 470D32080A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=amd.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 2BE146B0036; Tue, 10 Nov 2020 00:16:11 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 26DD86B005C; Tue, 10 Nov 2020 00:16:11 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 136236B005D; Tue, 10 Nov 2020 00:16:11 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0158.hostedemail.com [216.40.44.158]) by kanga.kvack.org (Postfix) with ESMTP id DD1776B0036 for ; Tue, 10 Nov 2020 00:16:10 -0500 (EST) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with ESMTP id 794073624 for ; Tue, 10 Nov 2020 05:16:10 +0000 (UTC) X-FDA: 77467347300.01.form86_0c0fdd8272f2 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin01.hostedemail.com (Postfix) with ESMTP id 5DF7C10047E3D for ; Tue, 10 Nov 2020 05:16:10 +0000 (UTC) X-Spam-Summary: 1,0,0,,d41d8cd98f00b204,luben.tuikov@amd.com,,RULES_HIT:30054:30064,0,RBL:40.107.243.55:@amd.com:.lbl8.mailshell.net-64.201.201.201 62.16.0.32;04yg4xs3fm3hrpii1p9qpb3okpoyiypjyugjopu3eu8buww85qzz4fc7rym64g1.wwt8zoueujzgfa9whpkbncg48e1ux3eg9m9pxkjwjs761sjkchdc5shb1uyiw69.n-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:70,LUA_SUMMARY:none X-HE-Tag: form86_0c0fdd8272f2 X-Filterd-Recvd-Size: 8278 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2055.outbound.protection.outlook.com [40.107.243.55]) by imf09.hostedemail.com (Postfix) with ESMTP for ; Tue, 10 Nov 2020 05:16:09 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R9z1MaYQk5fhrpIT+5WDlAFI5D8q6uPpnA0EMv52r8/PucbGSczHEPzmJlHHy49y6pQaJX79fzeKhjZb9HcSlYVg+fqkFcQlW9ILd8a/T81KT7S7KDmC4KgLub+YuXq5c2cCN6S9jZOTGyJ8Bopc7f97oVCkBK+vYHCHFi9GS4UZGJyqYYIEZINAp2JyB1q60tyAP9esmHH/ZBrFeJZ89N3sNrBpujUS6qoKCnuHEVLuEaqwSeFKiPVYjFH0/WGSeVBw5n8JFGM8RBcfTCGJs4KcY3Hx9KVeBd/LGUxL/2dawAZ6NqI8LLvjmjIiBnUZ+vyRm9lx3sLpVmW609qV1A== 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-SenderADCheck; bh=xkaA3Xq9FWi4pzg+pp1JT3p6nc/zRqW4tvZjMDd0FJA=; b=LXr72dKMIs6i+qrgetTr3nJ06dzl6C8NVrTivYcodemjj3hW9LivMltgzgq5GeBOzYWI635Okd0JpMWnJQjA2IGUA4p5oXQ0zOqC4DD/lRiKUfE5Cc5t5jxwiAfog18ydNCKGEu3kJvypZI2ZJQSbttNqPYt5Z9zimZmIjfnorSLkivXqioGJplFgYpy5LWoARcPrYiwF4eokz/uES4qwoKZA1+cjwK40Sf3+gquIkWq6TUQRzsMR98FSGo00dU6ircjtaRhXz8EYg1kv5fg1lTlCxO9nHJZhUDPGD7DcuL7a3hxfngOaH+lOdy0IvD5+byLHb9hjCloI6o6fO4Qkw== 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=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xkaA3Xq9FWi4pzg+pp1JT3p6nc/zRqW4tvZjMDd0FJA=; b=Gs27O1G8ztsu1NTK5GShJMTc/0EWc8IDDc9v5khzZfPNWIB5TgRxlf6uFkDQJZkZfj36v9gMsuVE7W0emgrvXYnLpjAanVnuUGg7tyN1HVbTqLe4emgm31OumtSCJVEweysqEnqBfd+d/j93+J49O9jxReXV6v/86saYJNad3wA= Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=amd.com; Received: from DM6PR12MB3962.namprd12.prod.outlook.com (2603:10b6:5:1ce::21) by DM5PR12MB1259.namprd12.prod.outlook.com (2603:10b6:3:75::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.25; Tue, 10 Nov 2020 05:16:06 +0000 Received: from DM6PR12MB3962.namprd12.prod.outlook.com ([fe80::935:a67:59f8:7067]) by DM6PR12MB3962.namprd12.prod.outlook.com ([fe80::935:a67:59f8:7067%7]) with mapi id 15.20.3541.025; Tue, 10 Nov 2020 05:16:06 +0000 From: Luben Tuikov To: Souptick Joarder Cc: kernel test robot , kbuild-all@lists.01.org, Linux Memory Management List , Daniel Vetter , Alexander Deucher , Luben Tuikov Subject: [PATCH 1/1] drm/amdgpu: Fix missing prototype warning Date: Tue, 10 Nov 2020 00:15:48 -0500 Message-Id: <20201110051548.685725-1-luben.tuikov@amd.com> X-Mailer: git-send-email 2.29.2.154.g7f7ebe054a In-Reply-To: References: X-Originating-IP: [165.204.55.250] X-ClientProxiedBy: YTBPR01CA0022.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:14::35) To DM6PR12MB3962.namprd12.prod.outlook.com (2603:10b6:5:1ce::21) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain.amd.com (165.204.55.250) by YTBPR01CA0022.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:14::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.21 via Frontend Transport; Tue, 10 Nov 2020 05:16:06 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2110e9dc-e80e-42fc-7906-08d88537ba0f X-MS-TrafficTypeDiagnostic: DM5PR12MB1259: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:3631; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: dAiMKG5A4VmmicJSy8TokxZg7Jsj1zvKmeMRd5Rk+14SWKOshvWkJ+wYUznlOPEhoGGDMd+R6IWIkgfzlM+ocqKHASo/0DTVk4E0tVbs0E+mUafamN9WP54Y/2Hnz+CHiaQ3Av0s6PyLNxueqvBkDz/liYqutNzq5VUaiM/4heH2POof+DLVtfUOhhMkUZODRqpV3/s4lXRUsW4eA0D+RXWcgqY2YB6LYEFA6OrmU5NuxLD8mQmPyxSnXgoE6D677XSr8j+40p3qJx15ir0rvmZJwXWOEJz6jT1n9bMY97G0WNzLbT6KQJxqiQwJC8ybs5p1t+DjxX5fBcXVBTI35Q== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR12MB3962.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(39860400002)(346002)(396003)(366004)(376002)(136003)(4326008)(66946007)(5660300002)(66556008)(6666004)(1076003)(66476007)(316002)(2906002)(54906003)(83380400001)(6486002)(36756003)(6916009)(8936002)(26005)(478600001)(186003)(16526019)(956004)(2616005)(44832011)(7696005)(52116002)(86362001)(8676002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: N4iXPDL7NNSx92tHaJk9n4oRiJsgKML1t74pEEma7zTWGRs843sQgBVpHbIBk2Pi6bIwj8ucOm49A88qFcLYKMzgV6LOn0yyGM/g3xQFNYR/aRfEAyA0Rbs494oaOZuTChF8lPieYVinM0rwzSh2+iMToGiQsfjEC5y7/3ee3Q6Tji4WFeEh7RVqORs7wcKcBfWV2MF+JxyY8HA/EWIR/bFOyB5/Pt1Jo8PjbgMYXAqmThi8QU+/XGWJNYaAMntkVOk0c/Wckzy4fLEvCpAiiKsoD5P3N0rK80xIR7D0CoT2AE1grBGUYf1zoXDCI7EtuP1g+ufSvC3hXYXh68jNTAPhWqRPgfZ4wun22KvPwloymmIYUYPCHyBBJyfdpxEPI/m5aCMSJViyUVaylsHEC5+DGA4XANe5bo85MWhwCI9HZa+whDrFj7Vfs+1+9esvjz/RLdzsFIKgx0cuetwf/nlaVvPfAoC8Tal26w3FTLD+bhYA7BYTTyrmrDTWb/4Rs35A2BXmwLqARSVDGOF7ZYFfz65DvtqqoPuMmZ4loERCbZNqs0a+fhFDGBTUkjXYREGWY6EMVPTVgJhyLEpoKSfPM8U4tzWsEMZclt+JHag5fvcn3asDBWB3LteiaQsdPad35IMRXj1eeiQ7LCnvgg== X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2110e9dc-e80e-42fc-7906-08d88537ba0f X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3962.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2020 05:16:06.6955 (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: ZwMjlLEkRtpN3IWL+GdrPDqt+JyU/HS++jPmPBj9iHuJGk4KahgXOLihxMXLXcqx X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1259 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Fix a missing prototype warning for function amdgpu_info_ioctl(), drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c:482:5: warning: no previous prototype for 'amdgpu_info_ioctl' [-Wmissing-prototypes] Signed-off-by: Luben Tuikov Reported-by: kernel test robot Reviewed-by: Souptick Joarder --- drivers/gpu/drm/amd/amdgpu/amdgpu.h | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h b/drivers/gpu/drm/amd/amdgpu/amdgpu.h index ba65d4f2ab67..d27620fa8b0b 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h @@ -1279,6 +1279,8 @@ int amdgpu_enable_vblank_kms(struct drm_crtc *crtc); void amdgpu_disable_vblank_kms(struct drm_crtc *crtc); long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg); +int amdgpu_info_ioctl(struct drm_device *dev, void *data, + struct drm_file *filp); /* * functions used by amdgpu_encoder.c diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c index be304df7a8c2..70a30440f84c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -1529,8 +1529,6 @@ int amdgpu_file_to_fpriv(struct file *filp, struct amdgpu_fpriv **fpriv) return 0; } -int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file *filp); - const struct drm_ioctl_desc amdgpu_ioctls_kms[] = { DRM_IOCTL_DEF_DRV(AMDGPU_GEM_CREATE, amdgpu_gem_create_ioctl, DRM_AUTH|DRM_RENDER_ALLOW), DRM_IOCTL_DEF_DRV(AMDGPU_CTX, amdgpu_ctx_ioctl, DRM_AUTH|DRM_RENDER_ALLOW),