Re: kernel-smp on i386, too many arguments to function `aty128_find_mem_vbios'

From: Dave Jones
Date: Mon Feb 16 2004 - 11:20:51 EST


On Mon, Feb 16, 2004 at 10:23:50AM +0100, Olaf Hering wrote:
>
> CC [M] drivers/video/aty/radeon_base.o
> drivers/video/aty/radeon_base.c: In function `radeon_screen_blank':
> drivers/video/aty/radeon_base.c:945: warning: `val2' might be used uninitialized in this function
> drivers/video/aty/radeon_base.c: In function `radeonfb_setcolreg':
> drivers/video/aty/radeon_base.c:1026: warning: `vclk_cntl' might be used uninitialized in this function
> drivers/video/aty/radeon_base.c: In function `radeonfb_set_par':
> drivers/video/aty/radeon_base.c:1320: warning: `pll_output_freq' might be used uninitialized in this function
> CC [M] drivers/video/aty/radeon_pm.o
> CC [M] drivers/video/aty/radeon_monitor.o
> drivers/video/aty/radeon_monitor.c: In function `radeon_match_mode':
> drivers/video/aty/radeon_monitor.c:865: warning: passing arg 1 of `fb_validate_mode' discards qualifiers from pointer target type
> CC [M] drivers/video/aty/radeon_accel.o
> CC [M] drivers/video/aty/radeon_i2c.o
> LD [M] drivers/video/aty/atyfb.o
> CC [M] drivers/video/aty/aty128fb.o
> drivers/video/aty/aty128fb.c: In function `aty128_probe':
> drivers/video/aty/aty128fb.c:1955: error: too many arguments to function `aty128_find_mem_vbios'
> make[3]: *** [drivers/video/aty/aty128fb.o] Error 1
> make[2]: *** [drivers/video/aty] Error 2
> make[1]: *** [drivers/video] Error 2
> make: *** [drivers] Error 2


Looks straightforward enough...

Dave


--- linux-2.6.2/drivers/video/aty/aty128fb.c~ 2004-02-16 14:39:19.000000000 +0000
+++ linux-2.6.2/drivers/video/aty/aty128fb.c 2004-02-16 14:40:25.000000000 +0000
@@ -1952,7 +1952,7 @@
bios = aty128_map_ROM(par, pdev);
#ifdef __i386__
if (bios == NULL)
- bios = aty128_find_mem_vbios(par, pdev);
+ bios = aty128_find_mem_vbios(par);
#endif
if (bios == NULL)
printk(KERN_INFO "aty128fb: BIOS not located, guessing timings.\n");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/