Files
ubports_kernel_google_msm/include/linux
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:16 -07:00
2007-05-09 12:30:54 -07:00
2007-05-09 12:30:51 -07:00
2007-05-08 11:15:15 -07:00
2007-05-09 12:30:56 -07:00
2007-05-09 12:30:44 -07:00
2007-05-08 11:15:25 -07:00
2007-05-08 11:15:26 -07:00
2007-05-09 08:57:56 +02:00
2007-05-09 08:57:56 +02:00
2007-05-09 12:30:57 -07:00
2007-05-09 12:30:55 -07:00
2007-05-10 00:01:11 +02:00
2007-05-09 12:30:56 -07:00
2007-05-10 09:26:52 -07:00
2007-05-09 12:30:53 -07:00
2007-05-09 12:30:54 -07:00
2007-05-08 11:15:18 -07:00
2007-05-09 12:30:49 -07:00
2007-05-09 12:30:54 -07:00
2007-05-08 11:15:14 -07:00
2007-05-09 08:57:56 +02:00
2007-05-08 11:15:18 -07:00
2007-05-09 12:30:56 -07:00
2007-05-09 08:57:56 +02:00
2007-05-08 11:15:18 -07:00
2007-05-09 12:30:57 -07:00
2007-05-09 12:30:44 -07:00
2007-05-08 11:15:18 -07:00
2007-05-09 08:57:56 +02:00
2007-05-09 12:30:56 -07:00