Messages in this thread Patch in this message | | | Date | Wed, 3 Nov 1999 20:31:38 +0100 (MET) | From | Mikael Pettersson <> | Subject | [PATCH] fix ftape compile problem in 2.3.25 |
| |
This patch fixes the ftape driver so that it will compile in 2.3.25 -- the vm_offset rename broke it slightly.
/Mikael
--- linux-2.3.25/drivers/char/ftape/lowlevel/ftape-ctl.c.~1~ Sat Jan 24 02:38:04 1998 +++ linux-2.3.25/drivers/char/ftape/lowlevel/ftape-ctl.c Wed Nov 3 13:45:11 1999 @@ -704,8 +704,8 @@ if ((vma_get_flags(vma) & (VM_READ|VM_WRITE)) == 0) { TRACE_ABORT(-EINVAL, ft_t_err, "Undefined mmap() access"); } - if (vma_get_offset (vma) != 0) { - TRACE_ABORT(-EINVAL, ft_t_err, "offset must be 0"); + if (vma_get_pgoff(vma) != 0) { + TRACE_ABORT(-EINVAL, ft_t_err, "page offset must be 0"); } if ((vma_get_end (vma) - vma_get_start (vma)) % FT_BUFF_SIZE != 0) { TRACE_ABORT(-EINVAL, ft_t_err, - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |