lkml.org 
[lkml]   [2002]   [Dec]   [30]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH] 2.5 fix link with fbcon built-in
FromBenjamin Herrenschmidt <>
Date30 Dec 2002 11:39:56 +0100
In current bk 2.5, drivers/video/console/fonts.c exports an
init_module() symbol when built-in, which prevents the kernel from
linking. Here's a quick fix.

Ben.

--- 1.10/drivers/video/console/fonts.c  Fri Nov 29 18:37:57 2002
+++ edited/drivers/video/console/fonts.c        Mon Dec 30 11:36:42 2002
@@ -130,8 +130,10 @@
     return g;
 }
  
+#ifdef MODULE
 int init_module(void) { return 0; };
 void cleanup_module(void) {};
+#endif
  
 EXPORT_SYMBOL(fonts);
 EXPORT_SYMBOL(find_font);
-- 
Benjamin Herrenschmidt <benh@kernel.crashing.org>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:32    [from the cache]
©2003-2008