fix compile errors
This commit is contained in:
parent
aba2d18cee
commit
1d0cb4645e
|
@ -101,12 +101,4 @@ ssize_t debug_generic_read(struct file *file, char __user *user_buf,
|
||||||
int (*function)(struct kasnprintf_buf *buf));
|
int (*function)(struct kasnprintf_buf *buf));
|
||||||
int debug_generic_open(struct inode *inode, struct file *file);
|
int debug_generic_open(struct inode *inode, struct file *file);
|
||||||
int debug_generic_release(struct inode *inode, struct file *file);
|
int debug_generic_release(struct inode *inode, struct file *file);
|
||||||
|
|
||||||
#if KERNEL_VERSION(4, 11, 0) > LINUX_VERSION_CODE
|
|
||||||
static inline unsigned int kref_read(struct kref *kref)
|
|
||||||
{
|
|
||||||
return atomic_read(&kref->refcount);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _MC_MAIN_H_ */
|
|
||||||
|
|
|
@ -365,13 +365,8 @@ static int ashmem_vmfile_mmap(struct file *file, struct vm_area_struct *vma)
|
||||||
|
|
||||||
static unsigned long
|
static unsigned long
|
||||||
ashmem_vmfile_get_unmapped_area(struct file *file, unsigned long addr,
|
ashmem_vmfile_get_unmapped_area(struct file *file, unsigned long addr,
|
||||||
<<<<<<< HEAD
|
|
||||||
unsigned long len, unsigned long pgoff,
|
|
||||||
unsigned long flags)
|
|
||||||
=======
|
|
||||||
unsigned long len, unsigned long pgoff,
|
unsigned long len, unsigned long pgoff,
|
||||||
unsigned long flags)
|
unsigned long flags)
|
||||||
>>>>>>> a349db843c64... staging: android: ashmem: Disallow ashmem memory from being remapped
|
|
||||||
{
|
{
|
||||||
return current->mm->get_unmapped_area(file, addr, len, pgoff, flags);
|
return current->mm->get_unmapped_area(file, addr, len, pgoff, flags);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user