From patchwork Thu Mar 8 02:02:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10265817 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 0455E602C8 for ; Thu, 8 Mar 2018 02:02:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E9FBB262F2 for ; Thu, 8 Mar 2018 02:02:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DE76D26E96; Thu, 8 Mar 2018 02:02: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=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, 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 7E4D027F2B for ; Thu, 8 Mar 2018 02:02:53 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B5996E109; Thu, 8 Mar 2018 02:02:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ua0-x242.google.com (mail-ua0-x242.google.com [IPv6:2607:f8b0:400c:c08::242]) by gabe.freedesktop.org (Postfix) with ESMTPS id 05F4B6E109 for ; Thu, 8 Mar 2018 02:02:51 +0000 (UTC) Received: by mail-ua0-x242.google.com with SMTP id q12so2898734uae.4 for ; Wed, 07 Mar 2018 18:02:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1+9QC4NP27S6Awg4NevottPyK1DWqJ6B4IAGUAtJ7wI=; b=vLniGdfmdzE3jj3kW+WSq8+2txVvruDtmgcqEiAwKhb8oAR4l0DzTNoDA3QCDfQ9bx MxEIEhopFM4p8BaFp1/8RBzf4eElXSwemLcjzS+nZ2/5tRI/bNJm8CHp7Ww5wYXSx9ZL JIIwKBZx1QCFCc/JLoTTSBNcoKEbO8mhEd1WmCMyI3syZ/TaqArOPXIcjeF6fNycqf8C KiXQxLgPl/lEU9tLc7bAaDvGH7YA3E7kTMJUarR7vrNyyumZenirBVSILG8iZUKH+Nz5 9XKcmJZtNLkSGYiChMFKtORHxkR1A1howtcfe8OohNYubgeiZHBPwUlvtR7MXrrs1OPH +Wsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1+9QC4NP27S6Awg4NevottPyK1DWqJ6B4IAGUAtJ7wI=; b=bap8VHQ0orJfkCG2O4DyKg3EgTzLlU9FaaMy23IUydhF6bNByG06RkP8yi5CNmHbRN oMbtoRpoGqSthzk5TFc91cVOPNnOpjgyM6KefpWYwZ7M+iV/4lQjuIhi1oHiOegKKQ2S oaFFIOsGZDVgJY01UHpqpjQKEmN1SxIkkR60D/GcsUU3O6m07J0GVSFVBhSQ8aeSWIGL 4xwKt+SyaY60sBa70BsOaauEACT3ek91lDLDdXcqGhdqua+I03uGlEeiX+vWbJxjnAzh Fc/SR7cVNVP394ANd7b9Qc7W3e40FNlt0KqHx2VtsJDNCIqdTbbfqp2/4QRwz/fHK7vX MJVg== X-Gm-Message-State: APf1xPDci53myr4/9dvdFgb7zYxT6yovEufxbrLVJDf89dLt7nwgvzmx cptCYiZX1HK5r14Tv+EURniJxw== X-Google-Smtp-Source: AG47ELuGl6mq6nloNJvG8ppYBVQSn13NCQYXqvZynqxVMqZ/GILRTlm0nHapSoLe76FdjDAYfvIDBw== X-Received: by 10.159.53.209 with SMTP id u17mr18260367uad.18.1520474570888; Wed, 07 Mar 2018 18:02:50 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id b7sm19378398uag.51.2018.03.07.18.02.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Mar 2018 18:02:50 -0800 (PST) Date: Wed, 7 Mar 2018 23:02:48 -0300 From: Rodrigo Siqueira To: David Airlie Subject: [PATCH 1/5] drm/vgem: Indent switch and case at the same level Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 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: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the checkpatch.pl errors: vgem_drv.c:97: ERROR: switch and case should be at the same indent vgem_drv.c:97: ERROR: trailing statements should be on next line Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/vgem/vgem_drv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index 2524ff116f00..5767030d04a8 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c @@ -94,7 +94,8 @@ static int vgem_gem_fault(struct vm_fault *vmf) if (!IS_ERR(page)) { vmf->page = page; ret = 0; - } else switch (PTR_ERR(page)) { + } else { + switch (PTR_ERR(page)) { case -ENOSPC: case -ENOMEM: ret = VM_FAULT_OOM; @@ -110,8 +111,8 @@ static int vgem_gem_fault(struct vm_fault *vmf) WARN_ON(PTR_ERR(page)); ret = VM_FAULT_SIGBUS; break; + } } - } return ret; }