diff options
author | David Brownell <david-b@pacbell.net> | 2007-07-17 15:04:04 +0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-17 21:23:04 +0400 |
commit | 4917d927809918f0070bd1077b41e3daf78643b2 (patch) | |
tree | 207df3ec533d72933170a69962ec44b864892f2c /Documentation/spi | |
parent | ad241528c4919505afccb022acbab3eeb0db4d80 (diff) | |
download | linux-4917d927809918f0070bd1077b41e3daf78643b2.tar.xz |
spidev compiler warning gone
Get rid of annoying GCC warning on 32-bit platforms.
drivers/spi/spidev.c: In function 'spidev_message':
drivers/spi/spidev.c:184: warning: cast to pointer from integer of different size
drivers/spi/spidev.c:216: warning: cast to pointer from integer of different size
The trick is to add an extra cast using "ptrdiff_t" to convert the u64 to
the correct size integer, and only then casting it into a "void *" pointer.
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'Documentation/spi')
0 files changed, 0 insertions, 0 deletions