From patchwork Wed May 22 16:41:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 10956355 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A9E98912 for ; Wed, 22 May 2019 16:42:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9ABB028CA4 for ; Wed, 22 May 2019 16:42:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8F36620008; Wed, 22 May 2019 16:42:58 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,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 4E40E28CA6 for ; Wed, 22 May 2019 16:42:58 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E1D4189C2C; Wed, 22 May 2019 16:42:56 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 388C589BFD for ; Wed, 22 May 2019 16:42:47 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id s17so3087459wru.3 for ; Wed, 22 May 2019 09:42:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=w/diVRkSY3GbsqvZKDkKB9JH05Fjty08jM7SF5zvRbk=; b=D5d6Ic13TYGs13wzcmHBg0+2SJ6bT0LcazOUBYPT+DmspTNba9rBkGdbVu8HDePDsA PieNU805086FfzZw8sNxeJpltczmrO26vtoWea72Gs1+wobT/PrrhR5PH4PXqGjxD1eP EZNNJwCaJ/PQ9eSt/WNqXWVW8j4X+egsGYPJpQD/9ciuuZ8ByvWFPjnehh8oYuV2lwyQ RHXqMSNS3gsuen3dioeUBfI1ZHHGd3/lU84s91SnMDINUMdobsusGuzznukblCA5xAT4 M819ke52tIlbrIeGVQRjfvrMwqFqCFcyP5KWAw0ZiXie/RHdNLdLK1ijLNtFtSaksZjp 1B3w== X-Gm-Message-State: APjAAAWAcYtMm2f2CC4kcI9IdaKYZnxM8bf7+UjDb7dfEBV++97R3W8j Y1djCDSRqx93LADGMO7aW7qy8ua9 X-Google-Smtp-Source: APXvYqyFXwUqLogJpUThMajdoouGewR1XVB0rFswlWaAH4+nEb2Zrw+OsVCZLWB9Ylxbolfyc18KDA== X-Received: by 2002:adf:fc46:: with SMTP id e6mr26599225wrs.298.1558543365716; Wed, 22 May 2019 09:42:45 -0700 (PDT) Received: from arch-x1c3.cbg.collabora.co.uk ([2a00:5f00:102:0:9665:9cff:feee:aa4d]) by smtp.gmail.com with ESMTPSA id l18sm24576684wrv.38.2019.05.22.09.42.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 22 May 2019 09:42:45 -0700 (PDT) From: Emil Velikov To: dri-devel@lists.freedesktop.org Subject: [PATCH 4/5] drm/vmwgfx: remove custom ioctl io encoding check Date: Wed, 22 May 2019 17:41:18 +0100 Message-Id: <20190522164119.24139-4-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190522164119.24139-1-emil.l.velikov@gmail.com> References: <20190522164119.24139-1-emil.l.velikov@gmail.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=w/diVRkSY3GbsqvZKDkKB9JH05Fjty08jM7SF5zvRbk=; b=q+al59saRcBS1ExXpL6A6PoS40PBHRzQIzx5dS3rfse6DdYVzpZCBhj4syVU+QgRxd kA9mQ01yjertRrTOkg33IK3HVD/Cxyox7HQd4F+rHzRXf+U6zndyHY5KhOnZra1xmu0l jVXQ2aUXOQJ6qrKjXtKeonKrkEc0uA4EcVZbGy6qTh0LXt3rPJM6TZARdH12BDIL7n6o CwH3IGXSO3qbpteusqZ+E+FySEpkTdJla8fBN4MOoiw5K6flpwpvJAc1qx5fRS/V+m9C N9WU533aZo7UvmY7O/oFCC62MhlO9Z/i+w9xhkUs26HQT7Hz60Gvq6q0bysRgkxEJwYW YzZw== 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: Thomas Hellstrom , kernel@collabora.com, VMware Graphics Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Emil Velikov Drop the custom ioctl io encoding check - core drm does it for us. Cc: "VMware Graphics" Cc: Thomas Hellstrom Cc: Daniel Vetter Signed-off-by: Emil Velikov --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c index 2cb6ae219e43..f65542639b55 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c @@ -1147,9 +1147,6 @@ static long vmw_generic_ioctl(struct file *filp, unsigned int cmd, return -EACCES; } - if (unlikely(ioctl->cmd != cmd)) - goto out_io_encoding; - flags = ioctl->flags; } else if (!drm_ioctl_flags(nr, &flags)) return -EINVAL; @@ -1169,12 +1166,6 @@ static long vmw_generic_ioctl(struct file *filp, unsigned int cmd, ttm_read_unlock(&vmaster->lock); return ret; - -out_io_encoding: - DRM_ERROR("Invalid command format, ioctl %d\n", - nr - DRM_COMMAND_BASE); - - return -EINVAL; } static long vmw_unlocked_ioctl(struct file *filp, unsigned int cmd,