Files
erofs-linux/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 <[email protected]>
Cc: "Cameron, Steve" <[email protected]>
Cc: "Miller, Mike (OS Dev)" <[email protected]>
Cc: Hisashi Hifumi <[email protected]>
Cc: Alan Cox <[email protected]>
Cc: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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-07 12:12:55 -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-07 12:13:00 -07:00
…
…
…
…
…
…
…
…
…
…
2007-05-08 11:15:25 -07:00
…
…
…
…
…
…
2007-05-08 11:15:26 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-05-07 12:12:58 -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-08 11:15:04 -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-08 11:15:09 -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-07 12:12:59 -07:00
…
…
2007-05-08 11:15:05 -07:00
2007-05-08 11:15:05 -07:00
…
…
…
…
…
…
…
2007-05-08 11:15:14 -07:00
…
…
…
…
…
…
2007-05-08 11:14:57 -07:00
…
…
…
…
…
…
…
…
2007-05-07 12:12:54 -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-07 12:12:58 -07:00
…
…
…
…
…
2007-05-07 12:12:54 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2007-05-08 11:14:58 -07: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-08 11:15:05 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2007-05-07 12:12:58 -07:00
2007-05-09 08:57:56 +02:00
…
…
…
…
…
2007-05-09 12:30:56 -07:00
…
…
…
…
…
…
…
…
…
…