lkml.org 
[lkml]   [2002]   [Dec]   [30]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
/
DateMon, 30 Dec 2002 12:03:24 -0800 (PST)
FromLinus Torvalds <>
SubjectRe: [PATCH] 2.5 fix link with fbcon built-in
On 30 Dec 2002, Benjamin Herrenschmidt wrote:
>
> 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.

This is not correct.

The functions should either be removed completely (preferred, since they 
aren't even proper C syntax in the first place - since when do we put 
semicolons at the end of a function?) or the file should be taught to use 
proper "module_init()/module_exit()" semantics that work _correctly_ for 
both modules and built-in.

The patch just hides just _how_ crap this file is, and as such should not 
be applied. Crap doesn't get better from being hidden.

		Linus

> +#ifdef MODULE
>  int init_module(void) { return 0; };
>  void cleanup_module(void) {};
> +#endif

-
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