From patchwork Thu Mar 8 02:03:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10265829 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 4C48460211 for ; Thu, 8 Mar 2018 02:03:29 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3CEA0296EA for ; Thu, 8 Mar 2018 02:03:29 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 31C31296ED; Thu, 8 Mar 2018 02:03:29 +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 C3C6E296EE for ; Thu, 8 Mar 2018 02:03:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C70206E277; Thu, 8 Mar 2018 02:03:27 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-ua0-x241.google.com (mail-ua0-x241.google.com [IPv6:2607:f8b0:400c:c08::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 66CF46E277 for ; Thu, 8 Mar 2018 02:03:26 +0000 (UTC) Received: by mail-ua0-x241.google.com with SMTP id q12so2899608uae.4 for ; Wed, 07 Mar 2018 18:03:26 -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=RkDj/S27wfSDH5X7ZhixaECIayoQfC23PefK/Dadp6c=; b=I1D6sIjveWET1i7DzmCLN12E30jBS/AXxJjZDcKL0ErDbs7/oTkOdlTTXsO1y39wWn 9Y+ujh1SovLYJIymeCOx3KkNDGiguCxMO5pRxNEJ8DlRdvSULYRbQRQg1FLhlIOvE1kH 6teX4I744miV77Qer4fphQSA3670NIv4Qpfd7+gelkC8qvsk218Hg8Q1+OH2bXxUWZOx 8fVSnh7jCh4gGOET9SgNtcN41Vl/ZgFs1LicvTLYjaDmg+IP48XKvQcGZJv/UslQKnFk sEGnpb6cJvEJlzJVJe41PYxaiL2pk1eHlb5VBAASgfC8+Ng6883MZFyMpGm6MiPDxy7U YBEg== 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=RkDj/S27wfSDH5X7ZhixaECIayoQfC23PefK/Dadp6c=; b=RkRPleT6wkXTka5TRFCi2vOby/o733vpY93jxAv6Q3koEjzK/GwnayErsXXGzbMXer CXzcMSmIiBZKlHfZd+3ccrHXMJTSHLT1BA9XydQyWAIgdYy9v7pXbDkn1/yeKANEtKSM cdQhfsGVPbcRvNvPKs31cnSbEDho8AStNjIa6DHVNHtnrPx3+iw9DJmV6Ob+jMBJrWVb UASL8lyWF7BrNUi/mWlFbCm+xyd+9WHNPpk7iOvUNDeeCUAeHM5pJ80hULtFqNcdGLX/ FVLq1c4MLeNnKqeHpY0aisPV9w73XRYajp+wSCoVUMYDjWayz8m7rnpZ85r3TElHBG4f DGSw== X-Gm-Message-State: APf1xPD416UKQWE6ns0eLbUgkZcTFfcBTbBFoWWMT2CBrNSKRj6V1Jxz p5i6xlh+xEZbfCRlrDEOH9QMEg== X-Google-Smtp-Source: AG47ELvbm9t8qMjN+f0DtocCXkPT7dCJLQzyUB6nwRyHFOHSOPL03+XikSOBUyWl7K4GwB3hil6RIA== X-Received: by 10.176.97.142 with SMTP id h14mr17862327uan.136.1520474605522; Wed, 07 Mar 2018 18:03:25 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id x135sm6912964vke.1.2018.03.07.18.03.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Mar 2018 18:03:25 -0800 (PST) Date: Wed, 7 Mar 2018 23:03:23 -0300 From: Rodrigo Siqueira To: David Airlie Subject: [PATCH 4/5] drm/vgem: Add space around operators Message-ID: <524f1d4f3c4b5834d8210ae3476550dba8f02f27.1520474055.git.rodrigosiqueiramelo@gmail.com> 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 check and warning: vgem_fence.c:28: CHECK: spaces preferred around that '*' (ctx:VxV) vgem_drv.c:255: CHECK: spaces preferred around that '|' (ctx:VxV) vgem_drv.c:256: WARNING: line over 80 characters Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/vgem/vgem_drv.c | 8 ++++++-- drivers/gpu/drm/vgem/vgem_fence.c | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index bf704ed51da4..6e6084e3204a 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c @@ -252,8 +252,12 @@ static int vgem_gem_dumb_map(struct drm_file *file, struct drm_device *dev, } static struct drm_ioctl_desc vgem_ioctls[] = { - DRM_IOCTL_DEF_DRV(VGEM_FENCE_ATTACH, vgem_fence_attach_ioctl, DRM_AUTH|DRM_RENDER_ALLOW), - DRM_IOCTL_DEF_DRV(VGEM_FENCE_SIGNAL, vgem_fence_signal_ioctl, DRM_AUTH|DRM_RENDER_ALLOW), + DRM_IOCTL_DEF_DRV(VGEM_FENCE_ATTACH, + vgem_fence_attach_ioctl, + DRM_AUTH | DRM_RENDER_ALLOW), + DRM_IOCTL_DEF_DRV(VGEM_FENCE_SIGNAL, + vgem_fence_signal_ioctl, + DRM_AUTH | DRM_RENDER_ALLOW), }; static int vgem_mmap(struct file *filp, struct vm_area_struct *vma) diff --git a/drivers/gpu/drm/vgem/vgem_fence.c b/drivers/gpu/drm/vgem/vgem_fence.c index f5b659463b00..d0bcb5fb33d1 100644 --- a/drivers/gpu/drm/vgem/vgem_fence.c +++ b/drivers/gpu/drm/vgem/vgem_fence.c @@ -25,7 +25,7 @@ #include "vgem_drv.h" -#define VGEM_FENCE_TIMEOUT (10*HZ) +#define VGEM_FENCE_TIMEOUT (10 * HZ) struct vgem_fence { struct dma_fence base;