Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp736032imm; Fri, 27 Jul 2018 05:20:27 -0700 (PDT) X-Google-Smtp-Source: AAOMgpe7SKaMBqgQVbzUANTps9mdQjffoRF+iD4g2fDhj+7g/Duqusi57zX477UgDzSs4oT3BxPY X-Received: by 2002:a62:9645:: with SMTP id c66-v6mr6500477pfe.56.1532694027800; Fri, 27 Jul 2018 05:20:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532694027; cv=none; d=google.com; s=arc-20160816; b=ChYn20xqmiPAfg/Wwyvqzalxcqz6CxfwgWDpaSUBUCKonIrpRyl2IG1JOnq2X0rlL3 DyVTRscAnBq2WbeDiM0EGOm60uHKxyQVn1w2GBGg1BrBmVuIxIWuaeSza9nTouF4tVDi FNtIACGwh+tXG4J1Uk8qLr8wUeq/+AooQ/YTghr0CSCd/uN6pA7NFrOSimdTGEqlkLlF osPuA0ofZMa6F67GIKzvFJFpvbMq0IXUlFKnmYFpycsx+qT2+X1BypU4hFkUNNt7A1mQ yhazRiZoqlBU8EdFQtv6nHisA5fZwgkkKzaL22V+bJF60/nT1UgUx/XqPVd8TLP0CyJc i1sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dmarc-filter:dkim-signature:dkim-signature :arc-authentication-results; bh=cUmTdK0q7ZTEHEYzlT5jTZbdGFd4DpX03SOTtnefoTA=; b=wONXOWUWe2Vlap9sBFe6mZAMM+nQ7tQOa89J/ztpImHGR+ozWt4D6UjHxpkx+xLUlG N+p4EeIwP4XR+gLVhWk7zZWiWBSwamSqUeLW2i54JN4f9IW9j43zxSzODwW2rG2On3d1 dZoQG5fb6km4TdMafe6MZIVPZ0vJIFwfA5UXEsNUFQNHR6wz3+SwuB9jtCnTi+78CTgs VncFO8EZEwYKBVHWnApfSxiexwZ8B0/duAf1nDURN8NYEcMGaB9wV1Lxj2iANWnEo7Zs sjfdM1/m+9as1OFKwhrlm+xYzk5pDmKNJMKD2gAyYuygdUMBOcrdkKZaet2WMZsfijEs 7YOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=H9JJUKZg; dkim=pass header.i=@codeaurora.org header.s=default header.b=pC78i3eP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q68-v6si3892666pfl.317.2018.07.27.05.20.13; Fri, 27 Jul 2018 05:20:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=H9JJUKZg; dkim=pass header.i=@codeaurora.org header.s=default header.b=pC78i3eP; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388760AbeG0Nki (ORCPT + 99 others); Fri, 27 Jul 2018 09:40:38 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:47006 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732143AbeG0Nkh (ORCPT ); Fri, 27 Jul 2018 09:40:37 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 1EDE560B11; Fri, 27 Jul 2018 12:18:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532693937; bh=KO+GwULgWupur0W7x1US4LJMsdqqmKuGODeG47o5+78=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H9JJUKZgBKK1GAqunBtHRkl8XnKHFvpLiodmXoMaUjdqM3rTPVW51k3T6Xe00yRlq J5SgahjiqjFkbrzkQUJDyXFVdOjF7AoD4EfFNlsoLZLh77RGNOuqFpatw9LavvXTVw gWQ/+PEO4LMjZmNSHd29gvrT8smrXPZ1IUyqRHwM= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from aneelaka-linux.qualcomm.com (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: aneela@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 7A6C660B77; Fri, 27 Jul 2018 12:18:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1532693936; bh=KO+GwULgWupur0W7x1US4LJMsdqqmKuGODeG47o5+78=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pC78i3eP+6pUVfU+aystxRwuNyHGYpizv4+69F1k/ey4xdV1J7s0j8/xdaJ7odCOa Mj05b6SXeIMPy04qToq8sNYN/Qjb0EhsBxOZfG5YM9C1CiO9u++I8rZCmdRwBCUvtr 8k/BpUC8w4QOqtlp7aTwDbg4dapoL06SaCOk5QeY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 7A6C660B77 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=aneela@codeaurora.org From: Arun Kumar Neelakantam To: ohad@wizery.com, bjorn.andersson@linaro.org, clew@codeaurora.org, robh+dt@kernel.org, arnaud.pouliquen@st.com, andy.gross@linaro.org Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, Arun Kumar Neelakantam Subject: [PATCH V4 9/9] rpmsg: Add compat ioctl for rpmsg char driver Date: Fri, 27 Jul 2018 17:47:29 +0530 Message-Id: <1532693849-7037-10-git-send-email-aneela@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1532693849-7037-1-git-send-email-aneela@codeaurora.org> References: <1532693849-7037-1-git-send-email-aneela@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add compat ioctl callback to support 32bit user space applications. Signed-off-by: Arun Kumar Neelakantam --- drivers/rpmsg/rpmsg_char.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/rpmsg/rpmsg_char.c b/drivers/rpmsg/rpmsg_char.c index 76a4477..a76b963 100644 --- a/drivers/rpmsg/rpmsg_char.c +++ b/drivers/rpmsg/rpmsg_char.c @@ -285,6 +285,7 @@ static long rpmsg_eptdev_ioctl(struct file *fp, unsigned int cmd, .write = rpmsg_eptdev_write, .poll = rpmsg_eptdev_poll, .unlocked_ioctl = rpmsg_eptdev_ioctl, + .compat_ioctl = rpmsg_eptdev_ioctl, }; static ssize_t name_show(struct device *dev, struct device_attribute *attr, @@ -445,6 +446,7 @@ static long rpmsg_ctrldev_ioctl(struct file *fp, unsigned int cmd, .open = rpmsg_ctrldev_open, .release = rpmsg_ctrldev_release, .unlocked_ioctl = rpmsg_ctrldev_ioctl, + .compat_ioctl = rpmsg_ctrldev_ioctl, }; static void rpmsg_ctrldev_release_device(struct device *dev) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project