From patchwork Fri Feb 23 00:00:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rodrigo Siqueira X-Patchwork-Id: 10236647 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 70A14602DC for ; Fri, 23 Feb 2018 00:00:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 661542908B for ; Fri, 23 Feb 2018 00:00:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 595E829091; Fri, 23 Feb 2018 00:00:52 +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 E9BBD2908B for ; Fri, 23 Feb 2018 00:00:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C81696EDDD; Fri, 23 Feb 2018 00:00:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-vk0-x241.google.com (mail-vk0-x241.google.com [IPv6:2607:f8b0:400c:c05::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id A3DDB6EDDD for ; Fri, 23 Feb 2018 00:00:49 +0000 (UTC) Received: by mail-vk0-x241.google.com with SMTP id y127so4265605vky.9 for ; Thu, 22 Feb 2018 16:00:49 -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=qHz4Ta/Pxd78D+zIoSdVc52rfwQvCGrJDYiW53OMOHQ=; b=XDLUI/pb2TjWH+++eCpIDBmH3dcrbYoC6j4Zw+fHVd0DLF8gHXwn4iGWt3zOnNyI1l VR2kKC6mwwCS6sLb4aJTAzkAiXgw/PZQqiQtw2YaOOse3q9MJB31Tvr7zLnVLvW93uUX 7VuDxulvyXYnbwO8xySbZAVnFfX+WGx+HyjG2rxC5bL/4ANP9Immxj946yQR100qgNoI YOiEF4NvjWmHI3JAR3Ne4Mh9SLKwmOhRXvc04mpU9AabxFVUqilt/j1QmbJ0J973i/t5 jVPmkC4B0Ik9U9RHhYb6HfAeOBTyv71NlLS/TijKfcv9B8sNv67BJbfkBkBqUps3g6AL UpBA== 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=qHz4Ta/Pxd78D+zIoSdVc52rfwQvCGrJDYiW53OMOHQ=; b=DW2xeU3hxvU2Z0+gBc0XAXFBPSPNdnAP1xxaJI7l4une2BxvhrPRreCj7/2tJqK8Zp cQm5vuxUU/LgKm1rkg7G0V2IBzpA+Nsh7ZDE9KLMmrBo8pQpKwVtefeJlPSsDAbOoT2j b72DaGatKivfx03itwqI1feeRsqCr6ely7lotQwy7jBy4HQpWRh9DQqxNaQuVXGdGVuy F5g4+DPaUr+10NdKOB2igIUS/ZKlOMzGfDAYENL8zf869bLlwdUG208nxhuoRsR8Y6oA OSRPIUgR2lRtF292pdRJBnOgebs10K94iQM1oYe8oQmEzFXDoaC1ab/W6crnuQyBpKei gYhQ== X-Gm-Message-State: APf1xPDEr2nUT90N08ZfqE2wkfIRuY+GqJBa0nOv/bhPl879frmBxTho +vhSGLlfDGtQ28A33M/RclQ= X-Google-Smtp-Source: AH8x2276JRrrAU3G0zSO0/vxEg21iI9zs4dALUkeI2jjMgmOLC9k818H3HrD5KebzXexcvyXm13KdQ== X-Received: by 10.31.157.151 with SMTP id g145mr6465628vke.114.1519344048712; Thu, 22 Feb 2018 16:00:48 -0800 (PST) Received: from smtp.gmail.com ([143.107.45.1]) by smtp.gmail.com with ESMTPSA id v6sm736173uad.13.2018.02.22.16.00.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 22 Feb 2018 16:00:48 -0800 (PST) Date: Thu, 22 Feb 2018 21:00:45 -0300 From: Rodrigo Siqueira To: David Airlie , Gerd Hoffmann Subject: [PATCH 5/7] drm/virtio: Replace 'unsigned' for 'unsigned int' 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, virtualization@lists.linux-foundation.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes the checkpatch.pl warning: drivers/gpu/drm/virtio/virtgpu_display.c:64: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' ... Signed-off-by: Rodrigo Siqueira --- drivers/gpu/drm/virtio/virtgpu_display.c | 4 ++-- drivers/gpu/drm/virtio/virtgpu_drv.h | 2 +- drivers/gpu/drm/virtio/virtgpu_fb.c | 2 +- drivers/gpu/drm/virtio/virtgpu_ttm.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/virtio/virtgpu_display.c b/drivers/gpu/drm/virtio/virtgpu_display.c index 2d1b25630c0e..8cc8c34d67f5 100644 --- a/drivers/gpu/drm/virtio/virtgpu_display.c +++ b/drivers/gpu/drm/virtio/virtgpu_display.c @@ -61,9 +61,9 @@ static void virtio_gpu_user_framebuffer_destroy(struct drm_framebuffer *fb) static int virtio_gpu_framebuffer_surface_dirty(struct drm_framebuffer *fb, struct drm_file *file_priv, - unsigned flags, unsigned color, + unsigned int flags, unsigned int color, struct drm_clip_rect *clips, - unsigned num_clips) + unsigned int num_clips) { struct virtio_gpu_framebuffer *virtio_gpu_fb = to_virtio_gpu_framebuffer(fb); diff --git a/drivers/gpu/drm/virtio/virtgpu_drv.h b/drivers/gpu/drm/virtio/virtgpu_drv.h index 59801728cfeb..d25c8ca224aa 100644 --- a/drivers/gpu/drm/virtio/virtgpu_drv.h +++ b/drivers/gpu/drm/virtio/virtgpu_drv.h @@ -246,7 +246,7 @@ int virtio_gpu_fbdev_init(struct virtio_gpu_device *vgdev); void virtio_gpu_fbdev_fini(struct virtio_gpu_device *vgdev); int virtio_gpu_surface_dirty(struct virtio_gpu_framebuffer *qfb, struct drm_clip_rect *clips, - unsigned num_clips); + unsigned int num_clips); /* virtio vg */ int virtio_gpu_alloc_vbufs(struct virtio_gpu_device *vgdev); void virtio_gpu_free_vbufs(struct virtio_gpu_device *vgdev); diff --git a/drivers/gpu/drm/virtio/virtgpu_fb.c b/drivers/gpu/drm/virtio/virtgpu_fb.c index b933cbba0685..8af69ab58b89 100644 --- a/drivers/gpu/drm/virtio/virtgpu_fb.c +++ b/drivers/gpu/drm/virtio/virtgpu_fb.c @@ -118,7 +118,7 @@ static int virtio_gpu_dirty_update(struct virtio_gpu_framebuffer *fb, int virtio_gpu_surface_dirty(struct virtio_gpu_framebuffer *vgfb, struct drm_clip_rect *clips, - unsigned num_clips) + unsigned int num_clips) { struct virtio_gpu_device *vgdev = vgfb->base.dev->dev_private; struct virtio_gpu_object *obj = gem_to_virtio_gpu_obj(vgfb->obj); diff --git a/drivers/gpu/drm/virtio/virtgpu_ttm.c b/drivers/gpu/drm/virtio/virtgpu_ttm.c index cd4a17a1409a..580323ceeb8a 100644 --- a/drivers/gpu/drm/virtio/virtgpu_ttm.c +++ b/drivers/gpu/drm/virtio/virtgpu_ttm.c @@ -224,7 +224,7 @@ static int virtio_gpu_init_mem_type(struct ttm_bo_device *bdev, uint32_t type, man->default_caching = TTM_PL_FLAG_CACHED; break; default: - DRM_ERROR("Unsupported memory type %u\n", (unsigned)type); + DRM_ERROR("Unsupported memory type %u\n", (unsigned int)type); return -EINVAL; } return 0;