[PATCH] 2.5 fix link with fbcon built-in

From: Benjamin Herrenschmidt (benh@kernel.crashing.org)
Date: Mon Dec 30 2002 - 05:39:56 EST


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/



This archive was generated by hypermail 2b29 : Tue Dec 31 2002 - 22:00:16 EST