From patchwork Mon Jan 29 13:55:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "StDenis, Tom" X-Patchwork-Id: 10189755 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 C9F7D6020C for ; Mon, 29 Jan 2018 13:56:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5EF528741 for ; Mon, 29 Jan 2018 13:56:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AA67D28797; Mon, 29 Jan 2018 13:56:14 +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=-2.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, RCVD_IN_SORBS_WEB, 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 3FD3728741 for ; Mon, 29 Jan 2018 13:56:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ABEFB6E4D1; Mon, 29 Jan 2018 13:55:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0077.outbound.protection.outlook.com [104.47.38.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3E9E06E4CE; Mon, 29 Jan 2018 13:55:36 +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=wHXejW/7uGO+uSCbVcI2/zQIQwZ/MvQyiskgn3F3vO0=; b=RdMAliRrkdIcSpAjqsAkUEUEMkVex9WSe5j9cEIQqlrkDWnmqrKs+q/P5DEC2c2BBFPGnfKfDLmdaM62psrtEbK4cLeMvnMKAYBBQNiq48Xj1PkD8nzm/I8DDaAi+yH/jym5tSFNmclHJpr3P4uG6Z3Ljtqi/+X62TTudFJFAtQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Tom.StDenis@amd.com; Received: from fx8.amd.com (165.204.55.251) by DM5PR1201MB0075.namprd12.prod.outlook.com (10.174.106.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Mon, 29 Jan 2018 13:55:34 +0000 From: Tom St Denis To: amd-gfx@lists.freedesktop.org Subject: [PATCH 10/12] drm/ttm: Fix coding style in ttm_tt_swapout() Date: Mon, 29 Jan 2018 08:55:11 -0500 Message-Id: <20180129135513.22538-11-tom.stdenis@amd.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180129135513.22538-1-tom.stdenis@amd.com> References: <20180129135513.22538-1-tom.stdenis@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.55.251] X-ClientProxiedBy: CY4PR14CA0027.namprd14.prod.outlook.com (10.172.162.141) To DM5PR1201MB0075.namprd12.prod.outlook.com (10.174.106.17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 31d134cb-4ada-485b-078b-08d5671ff89d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(48565401081)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DM5PR1201MB0075; X-Microsoft-Exchange-Diagn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Rk/Q3NwF8WbOtK8FJTYinv9bxuKRsbojD2l6DvyK0LFPz+LB4rA5bCP9Kj3bEtbqx3CWXMgGMnhPkW/jCxUUnOykyPLp6BLeCD5vi0o9eVw03Sw+hr/6doOUOdYT5RDO7XVqRk1ceruzO82KfCAUjISC0E9IucasBslzkQLjsuDLng1K+1WigKcD6XHhS73+7SOE087H+lcfRCjxaUOgznyDINypRTIr+QWlqaffoL1Ey6X1SlVLbNbSxzgY7+zwiiGJtNZHesLyICDFGgDYfNyCVK/JfFy0p5OcWyp0Qt60p+KNDBJlNyozkXyCg9Vy/pyA5OFI82EnFHn/0NCPbfPjdwnLnp8NQ4px1b2AQYBbPXcVU8lW3; 4:mN+rAKMuIsmiACy7chmP8U2MaFFSGxfJWPL+pFMYiVYp+VI2i/UXmxHngeLoazJkrZWWNEUJy4ee51Nmdl6O1XS7pZXHE07pvntnAiPtf2XWOSyby05qwu4FD76XPZT3HkOpc0JVY2y5ndn9BA1BAznFZHV+PyFDJqFvffA7aGrtPLOMHCpJqfpTQLZZQcx27f3S623sj5UBxtpOd2VAZCn748V+YOVz/hMOLykgS2cYKrwQ+I3Chn052ackZ29yCBsb3yuMFb75eukWu3EiArRNDwfaKUQIeMUU64ST9ue0GWxsv0gImtR5wM1relXw X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231101)(944501161)(93006095)(93001095)(6055026)(6041288)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:DM5PR1201MB0075; BCL:0; PCL:0; RULEID:; SRVR:DM5PR1201MB0075; X-Forefront-PRVS: 0567A15835 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39380400002)(396003)(39860400002)(346002)(366004)(189003)(199004)(59450400001)(76176011)(478600001)(7696005)(450100002)(7736002)(52116002)(6486002)(23676004)(86362001)(305945005)(2870700001)(53936002)(66066001)(5660300001)(72206003)(47776003)(4326008)(386003)(81166006)(97736004)(2361001)(25786009)(2351001)(106356001)(316002)(6666003)(8936002)(2950100002)(16526019)(2906002)(81156014)(68736007)(6916009)(186003)(36756003)(105586002)(8676002)(53416004)(50226002)(1076002)(3846002)(6116002)(50466002)(26005); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR1201MB0075; H:fx8.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjEyMDFNQjAwNzU7MjM6b0hlSWZPS0d6QkZjN3JTRVF4N2FXcmoy?= =?utf-8?B?TDBWdldWUGQ3Y09relF5UDdOckVTL3BNRVJ0QUVpdWY3OFEvT3BabWcyWVhE?= =?utf-8?B?SXVQVDRWa1hvQ1RKNjhGdVlCSHRlNURDUnNhcjV4N2tPaFhwV1ZYbmpzRllO?= =?utf-8?B?S3FWdTNMQU1kNGYwMFgvNGJvZFJYUzdGQTFxVVFlaGNaV0p3RE9GS1NjeUJm?= =?utf-8?B?cXFxeGhaVkVyNUxrdS9ZM1RMeE50SUFMRkZYT3hSTjhuTXg5UHJwaXpQYTFk?= =?utf-8?B?aFIzNjVOL1dUcFgzeldWZFhsLzZJRkFrWmMrbG8zQjJQWVo4SEY0cFJ2a2ho?= =?utf-8?B?eHV3eG9vczhCVU9SbmI1ekR5cElRQUd5ZzF5ZTA0WnIwK01BQ2tLT2d5N21q?= =?utf-8?B?OWNHcVRNL0JTTUp3N2FEVEhpQ3BFb0V3WU56Z20ybytCNmpPQXhXY05YYk1Z?= =?utf-8?B?azZrL0RqMStHQUgyTWJ6SUduY3NUeDdVZXJwUWZ2ZytrbTRtbEtvTkIvcW9I?= =?utf-8?B?VzcyYTFTWFFvUHVmQTNWNUt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tXm5MVH9K/5rEHf1nwIZjJMMVEI83h1N51BJaA5upC7tM+4ipudPGAWKrhylRIoGRUVcI0O+bsQ2HCiAAfhDuSiJnGxGICOkb/P/QR5Vzz/GKAM38M8AJvULVld SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR1201MB0075; 20:aFDQaTVb9DLPRF9q0Uh3Su+JzL0ocebc76tkvxE0G5PoqAJWKnkIbuY0rkx8t2MybTFKgiHw14VGe4CYiBl+ebG2CQwSIRQy8retoe+0zKv7z8HsKOiR9pncoYrpRRLMF8MTNJqXS0APmbcq+Tquxh4YXDH5A9v+C9QhpcV6mqYt1o3gAh1a7FSno4hf7Bsj2nHDHi/td8Tx6sYx7cYkfnfenA3+YfKTFco3uR0pRrRpF58wAnuEewxz1dppG6v8 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jan 2018 13:55:34.8762 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 31d134cb-4ada-485b-078b-08d5671ff89d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR1201MB0075 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Tom St Denis , dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add missing {} braces. Signed-off-by: Tom St Denis Reviewed-by: Christian König --- drivers/gpu/drm/ttm/ttm_tt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/ttm/ttm_tt.c b/drivers/gpu/drm/ttm/ttm_tt.c index e90d3ed6283f..95a77dab8cc9 100644 --- a/drivers/gpu/drm/ttm/ttm_tt.c +++ b/drivers/gpu/drm/ttm/ttm_tt.c @@ -352,8 +352,9 @@ int ttm_tt_swapout(struct ttm_tt *ttm, struct file *persistent_swap_storage) pr_err("Failed allocating swap storage\n"); return PTR_ERR(swap_storage); } - } else + } else { swap_storage = persistent_swap_storage; + } swap_space = swap_storage->f_mapping;