The patch titled MBCS: Use SEEK_{SET, CUR, END} instead of hardcoded values has been added to the -mm tree. Its filename is mbcs-use-seek_set-cur.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: MBCS: Use SEEK_{SET, CUR, END} instead of hardcoded values From: "Josef 'Jeff' Sipek" <jeffpc@xxxxxxxxxxxxxx> MBCS: Use SEEK_{SET,CUR,END} instead of hardcoded values Signed-off-by: Josef 'Jeff' Sipek <jeffpc@xxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/char/mbcs.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff -puN drivers/char/mbcs.c~mbcs-use-seek_set-cur drivers/char/mbcs.c --- a/drivers/char/mbcs.c~mbcs-use-seek_set-cur +++ a/drivers/char/mbcs.c @@ -22,6 +22,7 @@ #include <linux/delay.h> #include <linux/device.h> #include <linux/mm.h> +#include <linux/fs.h> #include <linux/uio.h> #include <asm/io.h> #include <asm/uaccess.h> @@ -447,15 +448,15 @@ loff_t mbcs_sram_llseek(struct file * fi loff_t newpos; switch (whence) { - case 0: /* SEEK_SET */ + case SEEK_SET: newpos = off; break; - case 1: /* SEEK_CUR */ + case SEEK_CUR: newpos = filp->f_pos + off; break; - case 2: /* SEEK_END */ + case SEEK_END: newpos = MBCS_SRAM_SIZE + off; break; _ Patches currently in -mm which might be from jeffpc@xxxxxxxxxxxxxx are mbcs-use-seek_set-cur.patch eicon-isdn-removed-unused-definitions-for-os_seek_.patch cifs-use-seek_end-instead-of-hardcoded-value.patch nfs-use-seek_end-instead-of-hardcoded-value.patch vfs-use-seek_set-cur.patch sound-core-use-seek_set-cur.patch opl4-use-seek_set-cur.patch gus-use-seek_set-cur.patch mixart-use-seek_set-cur.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html