From: Harry Wei When i compile 2.6.39.1, a warning shows like below. This patch can fix the warning. And i works well with my PC. [...] CC [M] drivers/edac/e752x_edac.o CC [M] drivers/edac/i82875p_edac.o CC [M] drivers/edac/i82975x_edac.o drivers/edac/i82975x_edac.c: In function ���i82975x_process_error_info���: drivers/edac/i82975x_edac.c:298: warning: integer constant is too large for ���unsigned long��� type CC [M] drivers/edac/i3000_edac.o CC [M] drivers/edac/i3200_edac.o CC [M] drivers/edac/x38_edac.o CC [M] drivers/edac/i82860_edac.o [...] Signed-off-by: Harry Wei Index: prj/drivers/edac/i82975x_edac.c =================================================================== --- prj.orig/drivers/edac/i82975x_edac.c 2011-06-04 10:09:55.351174516 +0800 +++ prj/drivers/edac/i82975x_edac.c 2011-06-04 10:10:30.875168437 +0800 @@ -293,9 +293,9 @@ info->errsts = info->errsts2; } - page = (unsigned long) info->eap; + page = (unsigned long long) info->eap; if (info->xeap & 1) - page |= 0x100000000ul; + page |= 0x100000000ull; chan = page & 1; page >>= 1; offst = page & ((1 << PAGE_SHIFT) - 1);