linux/completion.h

Kremer, Alex alex.kremer at intel.com
Sun Oct 14 12:39:28 EDT 2001


Thanks!

Now there is another problem:

drivers/mtd/mtdlink.o: In function `mtdblock_ioctl':
drivers/mtd/mtdlink.o(.text+0xafa4): undefined reference to `__put_user_bad'

There was a discussion concerning put_user here, right? Something about
BLKGETSIZE64. 
If I comment out the #define BLKGETSIZE64 in compatmac.h the
	case BLKGETSIZE64:
		return put_user((u64)mtdblk->mtd->size, (u64 *)arg); 
in mtdblock.c is not compiled, and then there is no problem.

But then the whole purpose of 
	#ifndef BLKGETSIZE64 /* LINUX_VERSION_CODE <
KERNEL_VERSION(2,4,10-pre13) */
	#define BLKGETSIZE64 _IOR(0x12,114,sizeof(u64)) /* return device
size in bytes (u64 *arg) */
	#endif
in compatmac.h is missed.

What is the right way to do it?

Kreso

| -----Original Message-----
| From: David Woodhouse [mailto:dwmw2 at infradead.org]
| Sent: Sun, October 14, 2001 5:31 PM
| To: Kremer, Alex
| Cc: linux-mtd at lists.infradead.org
| Subject: Re: linux/completion.h 
| 
| 
| 
| 
| alex.kremer at intel.com said:
| > From about a month ago, the jffs2 code uses the 
| "completion" interface
| > that appeared only around 2.4.8. This means that jffs2 cannot be
| > compiled unmodified with kernels prior to this. I'm using 2.4.1 and
| > cannot currently upgrade (hw compatibility issues, that would demand
| > too many changes).
| 
| > Does anyone know what would be a sufficient set of changes either to
| > jffs2 or the kernel that wouldn't break anything and allow 
| me use the
| > latest jffs2 code?
| 
| The necessary magic should already be in include/linux/mtd/compatmac.h
| 
| It should just work if you include that from background.c.
| 
| --
| dwmw2
| 
| 




More information about the linux-mtd mailing list