diff --git a/drivers/char/svm.c b/drivers/char/svm.c index db3191c9c3ba5d28b011768a36a6ffa5baba2f27..9448688f3d2bc846e9d2688c0d186d08f7594867 100644 --- a/drivers/char/svm.c +++ b/drivers/char/svm.c @@ -81,6 +81,12 @@ struct svm_context { struct list_head process_head; atomic_t ref; }; + +static int svm_open(struct inode *inode, struct file *file) +{ + return 0; +} + /*svm ioctl will include some case for HI1980 and HI1910*/ static long svm_ioctl(struct file *file, unsigned int cmd, unsigned long arg) @@ -91,6 +97,7 @@ static long svm_ioctl(struct file *file, unsigned int cmd, static const struct file_operations svm_fops = { .owner = THIS_MODULE, + .open = svm_open, .unlocked_ioctl = svm_ioctl, }; /*svm device probe this is init the svm device*/