public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* undefined reference to `__put_user_bad' in `mtdblock_ioctl', arch=ARM
@ 2001-09-26 17:52 Larry Doolittle
  2001-09-26 18:00 ` David Woodhouse
  0 siblings, 1 reply; 2+ messages in thread
From: Larry Doolittle @ 2001-09-26 17:52 UTC (permalink / raw)
  To: linux-mtd

Building the CVS version of MTD, embedded within
linux-2.4.9-ac9-rmk1-np1 for StrongARM using gcc-2.95.3,
I get:

drivers/mtd/mtdlink.o: In function `mtdblock_ioctl':
drivers/mtd/mtdlink.o(.text+0xadcc): undefined reference to `__put_user_bad'
drivers/mtd/mtdlink.o(.text+0xadcc): relocation truncated to fit: R_ARM_PC24 __p
ut_user_bad
make: *** [vmlinux] Error 1

It appears as if mtdblock_ioctl() in drivers/mtd/mtdblock.c, faced with
the case BLKGETSIZE64, does a put_user() of a 64-bit number.  Eight-byte
put_user()'s are not supported on ARM or x86.
    (ref: include/asm-{arm,i386}/uaccess.h, macro __put_user_size)

Whazzup?

      - Larry

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: undefined reference to `__put_user_bad' in `mtdblock_ioctl', arch=ARM
  2001-09-26 17:52 undefined reference to `__put_user_bad' in `mtdblock_ioctl', arch=ARM Larry Doolittle
@ 2001-09-26 18:00 ` David Woodhouse
  0 siblings, 0 replies; 2+ messages in thread
From: David Woodhouse @ 2001-09-26 18:00 UTC (permalink / raw)
  To: Larry Doolittle; +Cc: linux-mtd

ldoolitt@recycle.lbl.gov said:
> It appears as if mtdblock_ioctl() in drivers/mtd/mtdblock.c, faced
> with the case BLKGETSIZE64, does a put_user() of a 64-bit number.
> Eight-byte put_user()'s are not supported on ARM or x86.
>     (ref: include/asm-{arm,i386}/uaccess.h, macro __put_user_size)

> Whazzup?

We don't have 64-bit put_user support for ARM yet. Comment out the
BLKGETSIZE64 case for now.

--
dwmw2

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-09-26 17:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-09-26 17:52 undefined reference to `__put_user_bad' in `mtdblock_ioctl', arch=ARM Larry Doolittle
2001-09-26 18:00 ` David Woodhouse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox