From patchwork Sat Jul 15 03:12:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Brian Norris X-Patchwork-Id: 9842395 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 5E70660392 for ; Sat, 15 Jul 2017 13:21:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EB8928733 for ; Sat, 15 Jul 2017 13:21:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 439D528747; Sat, 15 Jul 2017 13:21:23 +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_SIGNED, 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 E30FF28733 for ; Sat, 15 Jul 2017 13:21:22 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AC8806E900; Sat, 15 Jul 2017 13:20:54 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg0-x233.google.com (mail-pg0-x233.google.com [IPv6:2607:f8b0:400e:c05::233]) by gabe.freedesktop.org (Postfix) with ESMTPS id C70566E10B for ; Sat, 15 Jul 2017 03:12:24 +0000 (UTC) Received: by mail-pg0-x233.google.com with SMTP id t186so53828456pgb.1 for ; Fri, 14 Jul 2017 20:12:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=o5wR5F2afQSLvxoCXgiQiWzuNMHmiirNfTJjeQDhyHk=; b=KE6yiaw3g2L1ZOiiPgRpN0BIq0j6oifvTmslNqDtTkc6Fnm8Ae0+2ALRiId9TGP4dI AhNGB30O7LlnS0qCb3fTq1ju1Gl0lSf3GDCXcV79dBgQNAye38Gtfp5TMyIozi5CU5Lz INtHyeDUW4nYK8vFAZg5VZ0jMNxchzqyokK2U= 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; bh=o5wR5F2afQSLvxoCXgiQiWzuNMHmiirNfTJjeQDhyHk=; b=momDwK2379thvNX/RbffvhuZf7HRGTFgVjrOrLOTQBPp+zeeymAfXDE8RjZpq+byif 79nbw/cC8g56IOunvtevtRPGVXRHimJZaj0udl3PSSMa9T+3g/xLYZUOjZWgfAsZBEZO 5IcXszIEgsMAyusXVhG1bEk8jq3y3SctVIMxuyZ7cMxEoDuKDf6ypA4ubl5X0XPz6KIu uY6ZlM7102uU5ubuj5GyTIUGkHC1/j0gPmOrVEC+7OGX9+vX3YTMWS/tg3ZAZIDkFbqH HMcPzXI9wloYa197fWfKAldQUZojeDSM0i1Cin5MTk+00eV3ezyWJ10RF3OnOskK4ya1 MMuw== X-Gm-Message-State: AIVw112EJVYaMt9yIn5XDV5OIWrN8r8IF1GOzg+HYZWg0TCy4Lka6bBA ywvkbiuz5SmIxMmQ X-Received: by 10.84.132.106 with SMTP id 97mr19193606ple.105.1500088344488; Fri, 14 Jul 2017 20:12:24 -0700 (PDT) Received: from ban.mtv.corp.google.com ([172.22.64.120]) by smtp.gmail.com with ESMTPSA id u63sm5569474pgd.49.2017.07.14.20.12.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 14 Jul 2017 20:12:23 -0700 (PDT) From: Brian Norris To: Sean Paul , David Airlie , Daniel Vetter , Jani Nikula Subject: [PATCH] drm/vgem: add compat_ioctl support Date: Fri, 14 Jul 2017 20:12:12 -0700 Message-Id: <20170715031212.108695-1-briannorris@chromium.org> X-Mailer: git-send-email 2.13.2.932.g7449e964c-goog X-Mailman-Approved-At: Sat, 15 Jul 2017 13:20:48 +0000 Cc: Brian Norris , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP DRM drivers should supply a compat version if they're going to provide an ioctl implementation at all. This can confuse 32-bit user space on a 64-bit system. Signed-off-by: Brian Norris --- drivers/gpu/drm/vgem/vgem_drv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/vgem/vgem_drv.c b/drivers/gpu/drm/vgem/vgem_drv.c index 9fee38a942c4..3835656e2baf 100644 --- a/drivers/gpu/drm/vgem/vgem_drv.c +++ b/drivers/gpu/drm/vgem/vgem_drv.c @@ -220,6 +220,7 @@ static const struct file_operations vgem_driver_fops = { .poll = drm_poll, .read = drm_read, .unlocked_ioctl = drm_ioctl, + .compat_ioctl = drm_compat_ioctl, .release = drm_release, };