Namhyung Kim a416e9e1dd x86-32: Fix sparse warning for the __PHYSICAL_MASK calculation
On 32-bit non-PAE system, cast to 'phys_addr_t' truncates value
before subtraction. Subtracting before cast produce same result
but remove following warnings from sparse:

 arch/x86/include/asm/pgtable_types.h:255:38: warning: cast truncates bits from constant value (100000000 becomes 0)
 arch/x86/include/asm/pgtable_types.h:270:38: warning: cast truncates bits from constant value (100000000 becomes 0)
 arch/x86/include/asm/pgtable.h:127:32: warning: cast truncates bits from constant value (100000000 becomes 0)
 arch/x86/include/asm/pgtable.h:132:32: warning: cast truncates bits from constant value (100000000 becomes 0)
 arch/x86/include/asm/pgtable.h:344:31: warning: cast truncates bits from constant value (100000000 becomes 0)

64-bit or PAE machines will not be affected by this change.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
LKML-Reference: <1285770588-14065-1-git-send-email-namhyung@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
2010-10-07 16:36:17 -07:00
..
2010-06-08 21:13:48 +02:00
2010-08-02 08:45:56 -07:00
2010-04-06 15:52:11 -07:00
2010-04-28 17:25:53 -07:00
2010-02-16 21:22:26 -08:00
2010-05-07 17:13:04 -07:00
2010-03-10 13:23:34 +01:00
2010-08-14 22:26:51 +02:00
2010-06-09 11:12:36 +02:00
2010-01-05 15:34:49 +09:00
2010-05-07 17:13:04 -07:00
2010-08-23 10:04:57 -07:00
2010-08-02 08:45:56 -07:00
2010-02-12 09:42:39 -08:00
2010-07-20 17:41:14 -07:00
2010-01-22 16:05:42 -08:00
2010-08-01 10:46:31 +03:00