|
Lines 170-176
Link Here
|
| 170 |
#else |
170 |
#else |
| 171 |
static int svgalib_helper_ioctl(struct file *filp, |
171 |
static int svgalib_helper_ioctl(struct file *filp, |
| 172 |
unsigned int cmd, unsigned long arg) { |
172 |
unsigned int cmd, unsigned long arg) { |
| 173 |
struct inode *inode=flip->f_dentry->d_inode; |
173 |
struct inode *inode=file_inode(filp); |
| 174 |
#endif |
174 |
#endif |
| 175 |
|
175 |
|
| 176 |
io_t iov, *user_iov=(io_t *)arg; |
176 |
io_t iov, *user_iov=(io_t *)arg; |
|
Lines 586-592
Link Here
|
| 586 |
static int svgalib_helper_mmap(struct file *filp, struct vm_area_struct *vma) { |
586 |
static int svgalib_helper_mmap(struct file *filp, struct vm_area_struct *vma) { |
| 587 |
unsigned long start=vma->vm_start; |
587 |
unsigned long start=vma->vm_start; |
| 588 |
unsigned long end=vma->vm_end; |
588 |
unsigned long end=vma->vm_end; |
| 589 |
unsigned long minor = my_minor(flip->f_dentry->d_inode->i_rdev); |
589 |
unsigned long minor = my_minor(file_inode(filp)->i_rdev); |
| 590 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0) |
590 |
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,3,0) |
| 591 |
unsigned long ofs=vma->vm_pgoff*PAGE_SIZE; |
591 |
unsigned long ofs=vma->vm_pgoff*PAGE_SIZE; |
| 592 |
#else |
592 |
#else |