From patchwork Sun Sep 18 16:52:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9337971 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 7C2FF6077F for ; Sun, 18 Sep 2016 16:52:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C43D28993 for ; Sun, 18 Sep 2016 16:52:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 60FDA28C63; Sun, 18 Sep 2016 16:52:25 +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.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED 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 04AFB28993 for ; Sun, 18 Sep 2016 16:52:25 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D34BA6E112; Sun, 18 Sep 2016 16:52:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.web.de (mout.web.de [217.72.192.78]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1AA376E112 for ; Sun, 18 Sep 2016 16:52:18 +0000 (UTC) Received: from [192.168.1.2] ([77.181.85.138]) by smtp.web.de (mrweb103) with ESMTPSA (Nemesis) id 0MJTVP-1bjCLl0blL-00371M; Sun, 18 Sep 2016 18:52:06 +0200 Subject: [PATCH 3/5] drm/amdgpu: Rename a jump label in amdgpu_debugfs_regs_read() To: dri-devel@lists.freedesktop.org, Alex Deucher , =?UTF-8?Q?Christian_K=c3=b6nig?= , Chunming Zhou , David Airlie , Monk Liu , Tom St Denis References: <566ABCD9.1060404@users.sourceforge.net> <8d614254-1cba-0379-cf84-52ad9bd9f3a7@users.sourceforge.net> From: SF Markus Elfring Message-ID: <5e203d55-11da-96f2-1170-3e4a4f346e2c@users.sourceforge.net> Date: Sun, 18 Sep 2016 18:52:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <8d614254-1cba-0379-cf84-52ad9bd9f3a7@users.sourceforge.net> X-Provags-ID: V03:K0:8rJknafHCnYV1zreH5f3OO/62WvA/+Uo3L0ATEUjCq4vgEGqOJR h6y/DznyFLQ1KI3ygHtWiSpNpCND9Md2Y+awsf7M9vbX21UmhFFS3NfiCJqsPhwtWjt0TMz WRrS8EwAawahZJ/vEgf7lQm/tNf4RgTQIUfwPCfMMXW3yJKdggUqPlhkRDLKpnK3t1oi1s3 psbjz+IOgoebocBYtGERA== X-UI-Out-Filterresults: notjunk:1; V01:K0:7c+6BxQCJ74=:LQGce5e+6svl4Z3DZs9LDq kEeNpOntUJPdfxnZkE7dX4ectfvHTthf2bTO+6kwXpmAQuyuIBlqnIwi+33e8phD50LBZUS2B V2sJj8U8f05uC0dUOzfPXRjh78ZZfO3RjOAtC3MVs5jZYxTC413KZxDPaW6QOD4h1pP4KAAbG JnlEno6GcbRelfbsWNRCWRIw6tjatdwPQZj7jF4qLwjyAEYV30r/6Qqt4JOBOc4ysA/dxrO5f 2/Qj6GpKUx8YQnbxjIs6jmqGIdM+PI43MmXHKXmOXQSUnFaCEjSgqqWcwFgN+Qq6mCE3csQKA AYfWyRD7fqjahjzTVb3bt0vdMHw3hJ9wgzHRaFjQCzoXS8fctMrt4P1VxbOBpU77wT3fL1GPV 97VHAPrA6M9QH54XQJt8ZFU+ezGwVyYwVsZA8Ehj+z84GvWGvx+hEpU+B1RI0DdyFbpVdKWaJ 0EFzDMc3WuxqajjFjVnxjz/vp37X/umfga3sFrMEmJAHJyeKZJrmX2Vy+Gy1KyXhfx5oYnXKw IWBJapzkPEGCms2qzAFyT7ZSYT58Q+ZBuZ0onsTZHlWXJU9hrm3OxyXMLPK0gxGqZ8OdNOVMF 6zIo/hijsPSvvb2j/0kRGDIPrjxaMrhp6TlHHASjwEuwfZzKmAJykkQczutT08GCo/hqKlJia KAPhb1B8E1RXNYGJaLOLRPZ4lGtmgwZC2LAFpYrtH3s4/vGNsiDgoAZBtvOizSe4T5TwxhmMr BvVdUdUGEKPl2sl7cg4myXa3IZh532Ev5mtfOj6M8pi7X14axQVttksT/GFCLREtsNlBcGTP/ 5fadn51 Cc: Julia Lawall , kernel-janitors@vger.kernel.org, LKML 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 From: Markus Elfring Date: Sun, 18 Sep 2016 17:35:24 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 96a2457..2b8ba97 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -2208,13 +2208,13 @@ static ssize_t amdgpu_debugfs_regs_read(struct file *f, char __user *buf, uint32_t value; if (*pos > adev->rmmio_size) - goto end; + goto check_bank; value = RREG32(*pos >> 2); r = put_user(value, (uint32_t *)buf); if (r) { result = r; - goto end; + goto check_bank; } result += 4; @@ -2222,8 +2222,7 @@ static ssize_t amdgpu_debugfs_regs_read(struct file *f, char __user *buf, *pos += 4; size -= 4; } - -end: + check_bank: if (use_bank) { amdgpu_gfx_select_se_sh(adev, 0xffffffff, 0xffffffff, 0xffffffff); mutex_unlock(&adev->grbm_idx_mutex);