To: linus, akpm, james Cc: lkml, fbdev Subject: [PATCH] m68k sparse floating point M68k: Replace floating point by integer constants (found by sparse) Affected drivers: - Amiga frame buffer - ATI Mach64 frame buffer Signed-off-by: Geert Uytterhoeven --- amifb.c | 2 +- aty/mach64_gx.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- linux-2.6.8-rc2/drivers/video/amifb.c 2004-04-28 15:49:02.000000000 +0200 +++ linux-m68k-2.6.8-rc2/drivers/video/amifb.c 2004-07-10 21:07:38.000000000 +0200 @@ -2351,7 +2351,7 @@ */ { - u_long tmp = DIVUL(200E9, amiga_eclock); + u_long tmp = DIVUL(200000000000ULL, amiga_eclock); pixclock[TAG_SHRES] = (tmp + 4) / 8; /* SHRES: 35 ns / 28 MHz */ pixclock[TAG_HIRES] = (tmp + 2) / 4; /* HIRES: 70 ns / 14 MHz */ --- linux-2.6.8-rc2/drivers/video/aty/mach64_gx.c 2004-04-27 20:30:51.000000000 +0200 +++ linux-m68k-2.6.8-rc2/drivers/video/aty/mach64_gx.c 2004-07-10 21:06:54.000000000 +0200 @@ -653,7 +653,7 @@ for (m = MIN_M; m <= MAX_M; m++) { for (n = MIN_N; n <= MAX_N; n++) { - tempA = (14.31818 * 65536); + tempA = 938356; /* 14.31818 * 65536 */ tempA *= (n + 8); /* 43..256 */ tempB = twoToKth * 256; tempB *= (m + 2); /* 4..32 */