From patchwork Thu May 17 15:41:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thierry Reding X-Patchwork-Id: 10407015 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 0E03A602C2 for ; Thu, 17 May 2018 15:41:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F196128528 for ; Thu, 17 May 2018 15:41:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E645528590; Thu, 17 May 2018 15:41:40 +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.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, MAILING_LIST_MULTI, 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 A140628528 for ; Thu, 17 May 2018 15:41:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7830C6E998; Thu, 17 May 2018 15:41:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr0-x229.google.com (mail-wr0-x229.google.com [IPv6:2a00:1450:400c:c0c::229]) by gabe.freedesktop.org (Postfix) with ESMTPS id 374D56E994 for ; Thu, 17 May 2018 15:41:37 +0000 (UTC) Received: by mail-wr0-x229.google.com with SMTP id p5-v6so6162203wre.12 for ; Thu, 17 May 2018 08:41:37 -0700 (PDT) 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; bh=JyYJ2LNRKErUEUR1Q7hqDowWXcyYHmTk28PHFDQbvkQ=; b=SLab2N1FDczt1tePges1fzrcQuTuYXn8IpLQ7TyD+n9kLNZNG3LeqrqLAd+sBG8k79 d/wC/4gxVpiF1t1TqaHVu2RDzsgWwx+w4TpqhRzB4CjIX0DXtuF44OcG/Vo00Zwo91t7 hMwbOulT7dXRjdNSH/dN5Lvse9oQHAVSGreR7MRIqUmpxj0LUD77MBtnaJq/7SraRdxq zizdqaWqo4d4IQTY+66eQ1tp5XsvSHg1AmjM1A527/Hr7f8+jzHHLmD8wi3iiZJ1ESkd nrL2I7aJoues6rzwm3Lhqh89dUO4PsYm6uTGhgoMz5mZuETaplZAtCMBeo/MILazyzHB lSuw== 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; bh=JyYJ2LNRKErUEUR1Q7hqDowWXcyYHmTk28PHFDQbvkQ=; b=fPrfRfqusd5swLl7nsgeAzNybJ5uemxonI34zu+AuFdgmABINoMEQ+sFpDjaEyP3s5 KUaG6leOcVC635+E968jtIcElmkR4ch1AO895WdLpLzoDxnl7/zwLKsKKvLzpMW+G+Hz tNkpYLi2lBHiN0N41xVI+oNcJqklKqTTbslhKVBdoPr83aGADyTg70VPud+VmgPp7wTT VT4v6LRpYe/qFcgmDXlGS6ZMhJkfmmKfgTtbC/cHe6KO6CZ1xTiwx0T1Yos8IPt9k4+s t1CuHR4btVMIdkQNxpxs1KLsBcdO+7Rn6jMk8idMSP+szz/Bq86WWGnCtkb6T1bY6niH 3rKA== X-Gm-Message-State: ALKqPweULB5Fsc4RJ62H0CUbl46PcSHpu2IgSgoWpFoxdzFLkMM2lRPb iPn1LUZS7kt+4eTuUvOc9+4= X-Google-Smtp-Source: AB8JxZqYYLhGGnQtU+nj95XUdyPWsbAnFW9o8sBKEgjCmTxQO9EWSa+wl0NltpjwDSjPA1VDQZ3YSw== X-Received: by 2002:adf:a98f:: with SMTP id b15-v6mr4523006wrd.48.1526571695845; Thu, 17 May 2018 08:41:35 -0700 (PDT) Received: from localhost (p200300E41F19FC00D958180F3872A5C5.dip0.t-ipconnect.de. [2003:e4:1f19:fc00:d958:180f:3872:a5c5]) by smtp.gmail.com with ESMTPSA id a129-v6sm5207386wme.34.2018.05.17.08.41.34 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 May 2018 08:41:35 -0700 (PDT) From: Thierry Reding To: Thierry Reding Subject: [PATCH 1/7] drm/tegra: Use proper arguments for DRM_TEGRA_CLOSE_CHANNEL IOCTL Date: Thu, 17 May 2018 17:41:26 +0200 Message-Id: <20180517154132.10058-2-thierry.reding@gmail.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180517154132.10058-1-thierry.reding@gmail.com> References: <20180517154132.10058-1-thierry.reding@gmail.com> 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: linux-tegra@vger.kernel.org, Dmitry Osipenko , dri-devel@lists.freedesktop.org, Mikko Perttunen MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Thierry Reding A separate data structure exists for the DRM_TEGRA_CLOSE_CHANNEL IOCTL, but it is currently unused. The IOCTL was using the data structure for the DRM_TEGRA_OPEN_CHANNEL IOCTL. Signed-off-by: Thierry Reding Reviewed-by: Dmitry Osipenko Tested-by: Dmitry Osipenko --- include/uapi/drm/tegra_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/drm/tegra_drm.h b/include/uapi/drm/tegra_drm.h index d954f8c33321..99e15d82d1e9 100644 --- a/include/uapi/drm/tegra_drm.h +++ b/include/uapi/drm/tegra_drm.h @@ -193,7 +193,7 @@ struct drm_tegra_gem_get_flags { #define DRM_IOCTL_TEGRA_SYNCPT_INCR DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_SYNCPT_INCR, struct drm_tegra_syncpt_incr) #define DRM_IOCTL_TEGRA_SYNCPT_WAIT DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_SYNCPT_WAIT, struct drm_tegra_syncpt_wait) #define DRM_IOCTL_TEGRA_OPEN_CHANNEL DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_OPEN_CHANNEL, struct drm_tegra_open_channel) -#define DRM_IOCTL_TEGRA_CLOSE_CHANNEL DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_CLOSE_CHANNEL, struct drm_tegra_open_channel) +#define DRM_IOCTL_TEGRA_CLOSE_CHANNEL DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_CLOSE_CHANNEL, struct drm_tegra_close_channel) #define DRM_IOCTL_TEGRA_GET_SYNCPT DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GET_SYNCPT, struct drm_tegra_get_syncpt) #define DRM_IOCTL_TEGRA_SUBMIT DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_SUBMIT, struct drm_tegra_submit) #define DRM_IOCTL_TEGRA_GET_SYNCPT_BASE DRM_IOWR(DRM_COMMAND_BASE + DRM_TEGRA_GET_SYNCPT_BASE, struct drm_tegra_get_syncpt_base)