summaryrefslogtreecommitdiffstats
path: root/fs/afs
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2007-05-10 12:15:18 +0200
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-05-10 18:26:52 +0200
commit218e180e7ea5334e1f94121940ba82cd1f0f4e58 (patch)
tree5b7aa47a2439c40b8b68a3bfd9e2f72bf07cf385 /fs/afs
parentslub: support concurrent local and remote frees and allocs on a slab (diff)
downloadlinux-218e180e7ea5334e1f94121940ba82cd1f0f4e58.tar.xz
linux-218e180e7ea5334e1f94121940ba82cd1f0f4e58.zip
add upper-32-bits macro
We keep on getting "right shift count >= width of type" warnings when doing things like sector_t s; x = s >> 56; because with CONFIG_LBD=n, s is only 32-bit. Similar problems can occur with dma_addr_t's. So add a simple wrapper function which code can use to avoid this warning. The above example would become x = upper_32_bits(s) >> 24; The first user is in fact AFS. Cc: James Bottomley <James.Bottomley@SteelEye.com> Cc: "Cameron, Steve" <Steve.Cameron@hp.com> Cc: "Miller, Mike (OS Dev)" <Mike.Miller@hp.com> Cc: Hisashi Hifumi <hifumi.hisashi@oss.ntt.co.jp> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Cc: David Howells <dhowells@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/afs')
0 files changed, 0 insertions, 0 deletions