From patchwork Wed Sep 27 19:46:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harry Wentland X-Patchwork-Id: 9974633 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B28B560365 for ; Wed, 27 Sep 2017 19:46:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A52652930E for ; Wed, 27 Sep 2017 19:46:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9992529310; Wed, 27 Sep 2017 19:46:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 52A652930E for ; Wed, 27 Sep 2017 19:46:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 45FF56E7E9; Wed, 27 Sep 2017 19:46:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 333 seconds by postgrey-1.35 at gabe; Wed, 27 Sep 2017 19:46:50 UTC Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0053.outbound.protection.outlook.com [104.47.32.53]) by gabe.freedesktop.org (Postfix) with ESMTPS id 14D316E7E9; Wed, 27 Sep 2017 19:46:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qfWAYdzQxbUNZmdZrvgMJVO3NPcYy2+b8p45WC4Ujgc=; b=Kmgy5tMLEWG7vvjS6BzoTBFWJYfS4zJH6f+BiTcl3FDapu+Pl/KRJdp6HzLtyqO1xdqbLkzqRees5LJjztgC+PCJVtvRrhRGFkFQ1ZUO5P3inlrBcGeBM0QKg2tO6Y6tOG+NPntrCP/5Mn0n5ejWS/XcYv31IDlgsW68aThsx54= Received: from CY1PR1201CA0037.namprd12.prod.outlook.com (10.169.17.175) by DM5PR12MB1452.namprd12.prod.outlook.com (10.172.38.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 27 Sep 2017 19:46:48 +0000 Received: from DM3NAM03FT054.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::205) by CY1PR1201CA0037.outlook.office365.com (2a01:111:e400:5b9a::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11 via Frontend Transport; Wed, 27 Sep 2017 19:46:48 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by DM3NAM03FT054.mail.protection.outlook.com (10.152.83.223) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.56.11 via Frontend Transport; Wed, 27 Sep 2017 19:46:47 +0000 Received: from SATLEXDAG04.amd.com (10.181.40.9) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 27 Sep 2017 14:46:47 -0500 Received: from localhost.localdomain (10.180.168.240) by satlexdag04.amd.com (10.181.40.9) with Microsoft SMTP Server id 14.3.361.1; Wed, 27 Sep 2017 15:46:46 -0400 From: Harry Wentland To: , Subject: [PATCH 2/3] drm/amd/display: Remove alloc/free macros Date: Wed, 27 Sep 2017 15:46:40 -0400 Message-ID: <20170927194641.29146-3-harry.wentland@amd.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170927194641.29146-1-harry.wentland@amd.com> References: <20170927194641.29146-1-harry.wentland@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(39860400002)(2980300002)(428002)(199003)(189002)(4326008)(49486002)(5660300001)(50466002)(305945005)(106466001)(47776003)(101416001)(76176999)(110136005)(54906003)(16586007)(356003)(2906002)(97736004)(478600001)(316002)(50986999)(6666003)(2950100002)(1076002)(68736007)(53936002)(81166006)(86362001)(8676002)(575784001)(81156014)(72206003)(77096006)(5003940100001)(189998001)(33646002)(8936002)(50226002)(36756003)(48376002)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1452; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT054; 1:FUblIBmKIn8ZhNiDNl2okhpia7LCGWl3HzmX5ZWTJohvpbRVqs03zv9D1me7QLd31Aze14JQA84PvJsjjkXRMjT01KEU5HzGVkWvynvTEfWM3ygh0TmtdF1Eb4Mp2fvq X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e2ba6ee8-003d-49f6-aaba-08d505e07d9f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:DM5PR12MB1452; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1452; 3:kSMvSU8FZWUVYguqWGPJNhLlBSTVQC2EzNuCUx3Eo0DFs1hILrAHMTvlJKqWS8t4sKPHmOwEWunHNc+31OIwfy5K/yXxq27ox6eQXjLElCuLCKlSivhxMGmySmJ+Ozq3lcn3EDUzieoD0qX5hCRqSfQ/D/6LddUd2a0I1rOM79iSaBWk8fK5uqZfxwY++jpGaH92P96r2lnFivYoRSNevZq7Ah78yzGPdziOQb7AeVKkarwwjrKp30r2iBzz4HiqXUF9oxgQeIufKcnu41ie10Me+QO01+CZmxq/3EAnPoIhbe7bSUSnRq580+PFDyRHsw3K8e6G+ltYRIX0Gzj/NSckYEgvZAdAaQoIRCVkkto=; 25:C119mMKkwzgXw1lNKhmX9hxAxFIyWe2+qlhN78DopmNmPbBTy7UqfJ/m2uG2BZYG0iQ9HkItGERMPon1vTsWaUza0OV+35PlKBHlw/dw4hN0yMFjgslbZpz1oy3FHeTrMXWVSKh7btKvvw0RUhJmvPRd5KfYE1o+b2IIfoJzo0g17DtkRiWuYeKULkDXXN9s4jj90uFMo2K5rC8N+V5krLcUVpRPtkZIogslbmG2Eff5pZckIoCR6bqmEuBNT9rB+bqfLG8clxdILusAE5iIffmuUJDvDzyL0y/yxNDF4QkNa5ZHN8ar6VE5AHt88H61+hx3EyUM7P81m4gcEvwQAg== X-MS-TrafficTypeDiagnostic: DM5PR12MB1452: X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1452; 31:eghYdUwkUUzlxFIEno96ybmiseBBifOMMdFAodWAXPBdxbEa8GAoBjMgn2p7e3UhG9P9ZGC4MQpcfsYgIaDlX0rMarOcoeeUjTEKDdAPAzoBahw/PHBo49YyQO226q7Wfsnv7pwSdyW6PoYjhm0Ya1AA5326COhaW88EctLhkIFS8ifwmULxa1TAaDNd337euykNEwrDvxzeV+hHIvaGmRuhIsvwudenDC2F/gzaplE=; 20:Odc+uE/QMDwh/tr+abq7GL8u9xLVL4IqIa/M71HTytfDxODKC8rbDta4eRy1tKsgnkrFVIWCXcE9Yhei1eFVdxqdBMMTmtvboaAS8iIRwtIc8udHhry8I3l/76i8otDANASndgeva59FgNBqRiiQKuolWxdHq3D/6M2BlY2fwCWNU1lyMZ1IwML+kAdCD00jnrg8jwSI+5W22ZrbePL0ZAEs8er8Gfhlzm4od2xjxdHv7cjh7Bh/wL7mQYFvrrE6BhjZt7WdKLBoR9FXFJBoZiDt/Ogn9osuoNIi+wz4ZWCkpPGVbvClVPKHT0oxduYyidBlRBYmdiRY5vV7T4wrfeo+c0604xdMAA3dLdje8APamyTFdPic7qsb33OwBM44dfYYqYZadmek1pkhmHwvcK4Jv3x0tAdZsC78Y1kMuLacZWOMiOWocKkpHFfoAAUcdi+PgVfDyq5LKv1h7WrZc1IKVBJQl2OUVS1v9itVvyOh8tsdFY/PndQnrykAeo8W X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(93006095)(93003095)(100000703101)(100105400095)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123558100)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM5PR12MB1452; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM5PR12MB1452; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1452; 4:kY2Q+d4r9g/Ta6uygbI6dpM/QKMVz2kQrKPEIDvLmdx+yoDS0HVQMnpY3tlRVlXQb5cp55HxGTa+3Fzm8qzUf44TQUnEQZJ+WWsrPYDpp8WiH1ubjRmefFAMgBA3GF/BiZHpasbAHJk59pbMSXOQObWw5AVKB40CuGzf+COQ+a9XqUt8azpbpozvktTOk+ZRQcNTdRTIQcD9GNZ3A9TJgovzzr2tZHi1nMaogdOM/IrD2Oz0mOKpXEm06VwSA6ycfYX6yPRe1bQ6KmMa56WxzJ5vBHiCBN1cEJLyJJayfDw= X-Forefront-PRVS: 04433051BF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR12MB1452; 23:aZDjJjB/UEAX3rMqzXnWuCn5jcfzYDXoRak+EwVQx?= =?us-ascii?Q?IassdGXU09l70ZQiEC6HH3KBiYL+VlLEkD+e2qkb/cnwThMFgz20pqk8PQpx?= =?us-ascii?Q?jlYAL6/9fhiraK+jE7DAMVEbHDSt1KQB33cF+ZRMtj0MSSnP8y5zbOKA04Pn?= =?us-ascii?Q?P3afdGChSuMeC3q/ZCy3/lF/zGpony6rsblAcIaAzRehXwZ1QabRYMkBxUoF?= =?us-ascii?Q?FloPtrLGkVoVvU5nseEmyMmJdoQQ3/SFSGfzI36c3sQhdsbhT4LEFZVh0vLR?= =?us-ascii?Q?XqbuVXhzOwbnzKSfnzaWb45SPQaX2xWLUI0sXyrLtNYNEln0qAR/rws0mVVy?= =?us-ascii?Q?wZn7tm5LB9gMI1PdwAg5iZq5O5nujWQIgk0Fbm0Q0kwAdF81Yn1xpkSAxOfU?= =?us-ascii?Q?4XGAWOXbMRszviFlK/DrLIDIuONNs72TCxkkJoy3PiN0A2IA0Uoc0bFqyitc?= =?us-ascii?Q?nU3Fc3mdkhFWJkCajw+bw9MjMvEli3BEgjBbODwInRTg9giUfAEjocKgdisM?= =?us-ascii?Q?X8O7x9QGfZn3pY1EKxRcgNeFmkiX8NlpRCJQznsET9l/W9KvL730KC1ncYN1?= =?us-ascii?Q?V2dnRQigftBkebCRkHANbvk/nx+H4wBnRMVVYWKLAOi2J23lmbtT9Ka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oFvxgkFKAVM92LZTZ5XmUzCFJZd+fJdJq5XEbjtuzif39b34PQ==; 24:84+QSeCi3TOlb76EpnTCVRLNPJDrcoLaaSYkZlC2Eu36F8M/Pvep+hmK/f0hWpB+uv/SQILdeYePw41+SirK+QxDOtz4SDPOc1mGVAP5oVY=; 7:fyh0f+gcgxs5dFEaz4ZjjYqUQcFsdGrJR22TVJsnBg9AWZKp46Xq85RgbQlfQoL3bYp+63ZhrBK+biB43szlvM0AVVrs1kEOPyU4/AjSHonIGUBBnmSFFshzpdBT8wW9+KSMq2GOZFJybZwSS6RjzUCXAS90jNJFC1wWN5QOLqkCitzotAvJgVQOD0jVAg8nWeIMgE6OKwu0d9uXFVozIqRwOIMbooqUd5Cc6q7nJyc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1452; 20:nGED9YMoE/qnX5kLhU94VYfS0JcUdM/Xafl0ivjC3dmyJbdz4aYF+3nY+hvFkfkYRvAthEs2KQRRDirXkKTe5cfZPfmkKjRKEtWwvbw6h9pvGR+QSUExHm4aFyR0pfWgBJ12r47bnZPXsZ6sa3iVbfTbisW4slYsR8zABJOuESXOLNg+Komoy3gFrUXbFrM26dvNoT1EyXPVZxcIH4xolzdfU0mlg91D1CsTEMgbiVww6vZQi+r1Uw92FiNX2NxH X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2017 19:46:47.8409 (UTC) X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1452 Cc: alexander.deucher@amd.com, daniel.vetter@ffwll.ch, daniel.vetter@intel.com X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Now that we don't abstract kernel alloc interfaces we don't need those anymore. Signed-off-by: Harry Wentland --- drivers/gpu/drm/amd/display/dc/dm_services.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dm_services.h b/drivers/gpu/drm/amd/display/dc/dm_services.h index 8ab0af6f4c6b..7260e772725d 100644 --- a/drivers/gpu/drm/amd/display/dc/dm_services.h +++ b/drivers/gpu/drm/amd/display/dc/dm_services.h @@ -79,10 +79,6 @@ #include #endif -#define dm_alloc(size) kzalloc(size, GFP_KERNEL) -#define dm_realloc(ptr, size) krealloc(ptr, size, GFP_KERNEL) -#define dm_free(ptr) kfree(ptr) - irq_handler_idx dm_register_interrupt( struct dc_context *ctx, struct dc_interrupt_params *int_params,