CONFIG_DRM_FFB=y Fix
2.6.1-rc1 gives compile errors with CONFIG_DRM_FFB=y:
CC drivers/char/drm/ffb_drv.odrivers/char/drm/ffb_drv.c:386: error: redefinition of ffb_options' drivers/char/drm/drm_drv.h:153: error: ffb_options' previously defined here
make[3]: *** [drivers/char/drm/ffb_drv.o] Error 1
make[2]: *** [drivers/char/drm] Error 2
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2
I seem to remember this being fixed in 2.4.x recently, but 2.6.1-rc1 is still affected. The attached patch sorts it out.
Signature · 3 lines
Ciaran McCreesh Mail: ciaranm at gentoo.org Web: http://dev.gentoo.org/~ciaranm
drivers/char/drm/ffb_drv.c renamed from drivers/char/drm/ffb_drv.c.orig +0 -19
@@ -372,25 +372,6 @@return ret; } -#ifndef MODULE -/* DRM(options) is called by the kernel to parse command-line options -* passed via the boot-loader (e.g., LILO). It calls the insmod option -* routine, drm_parse_drm. -*/ - -/* JH- We have to hand expand the string ourselves because of the cpp. If -* anyone can think of a way that we can fit into the __setup macro without -* changing it, then please send the solution my way. -*/ -static int __init ffb_options (char *str) -{ -DRM (parse_options)(str); -return 1 ; -} - -__setup (DRIVER_NAME "=" , ffb_options); -#endif -#include "drm_fops.h" #include "drm_init.h" #include "drm_ioctl.h"
Quoted 1 line · On Sat, 3 Jan 2004 13:31:47 +0000 Ciaran McCreesh <[email protected]> wrote:
2.6.1-rc1 gives compile errors with
CONFIG_DRM_FFB=y:
...
Quoted 2 lines
I seem to remember this being fixed in 2.4.x recently, but 2.6.1-rc1 is still affected. The attached patch sorts it out.
Right, I forgot to fix it on the 2.6.x side when I did fix it on the 2.4.x side.
Patch applied, thank you.