On Mon, Jul 29, 2002 at 02:44:25PM -0600, Erik Andersen scribbled:
[snip]
> drm_stub.h:125: parse error before `)'
> drm_stub.h:133: parse error before `)'
> drm_stub.h:137: parse error before `)'
> make[3]: *** [radeon_drv.o] Error 1
> make[3]: Leaving directory `/usr/src/linux/drivers/char/drm'
> make[2]: *** [_modsubdir_drm] Error 2
> make[2]: Leaving directory `/usr/src/linux/drivers/char'
> make[1]: *** [_modsubdir_char] Error 2
> make[1]: Leaving directory `/usr/src/linux/drivers'
> make: *** [_mod_drivers] Error 2
>
> The problem seems to be that
> DRM_ERROR( "no scatter/gather memory!\n" );
>
> expands into
> printk("<3>" "[" "drm" ":%s] *ERROR* " "cannot allocate PCI GART page!\n" , ) ;
>
> I think the __FUNCTION__ changes to DRM_ERROR and friends in drmP.h
> look awfully bogus.
Nope, it's a cpp (3.0+ is fine) error - the ##args is not generated correctly when
'args...' in DRM_ERROR is empty.
marek
This archive was generated by hypermail 2b29 : Tue Jul 30 2002 - 14:00:34 EST