Andrew Morton 218e180e7e 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>
2007-05-10 09:26:52 -07:00
..
2007-05-08 11:15:08 -07:00
2007-05-09 12:30:56 -07:00
2007-05-09 07:18:01 +02:00
2007-05-09 12:30:56 -07:00
2007-05-08 11:15:20 -07:00
2007-05-08 11:15:20 -07:00
2007-05-09 12:30:56 -07:00
2007-05-08 11:15:20 -07:00
2007-05-08 11:15:20 -07:00
2007-05-09 12:30:56 -07:00
2007-05-10 09:26:52 -07:00
2007-04-27 14:23:33 +03:00
2007-05-07 12:12:50 -07:00
2007-03-14 08:25:52 +01:00