Skip to content
Snippets Groups Projects
Commit 18e32ee7 authored by yang.tian's avatar yang.tian Committed by Ondrej Lutera
Browse files

MA-19896 Add compat_ioctl for dma-buf-imx


Add compat_ioctl file_operation for dma-buf-imx
driver for 32/64 binary ioctl compatable.
Also update head file to use __u32 and uint64_t
type to avoid 32/64 compatable issue.

Change-Id: I92040d6b2c3e3fac9af9b3e16f6fc6638a5f6c58
Signed-off-by: default avataryang.tian <yang.tian@nxp.com>
parent 4e5a26bc
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,7 @@ long ion_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
static const struct file_operations ion_fops = {
.owner = THIS_MODULE,
.unlocked_ioctl = ion_ioctl,
.compat_ioctl = ion_ioctl,
};
static int dmabuf_imx_init(void)
......
......@@ -7,8 +7,8 @@
#define _LINUX_DMABUF_IMX_H
struct dmabuf_imx_phys_data {
int dmafd;
unsigned long phys;
__u32 dmafd;
uint64_t phys;
};
#define DMABUF_GET_PHYS _IOWR('M', 32, struct dmabuf_imx_phys_data)
......
......@@ -20,8 +20,8 @@
#define _LINUX_DMABUF_IMX_H
struct dmabuf_imx_phys_data {
int dmafd;
unsigned long phys;
__u32 dmafd;
uint64_t phys;
};
#define DMABUF_GET_PHYS _IOWR('M', 32, struct dmabuf_imx_phys_data)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment