lkml.org 
[lkml]   [1998]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: 2.1.121 breaks compilation, initmem_freed undefined
From
Date
>>>>> "Harald" == Harald Koenig <koenig@tat.physik.uni-tuebingen.de> writes:

Harald> if CONFIG_FB is not set, linking vmlinux breaks with fs/fs.o:
Harald> In function `change_root': fs/fs.o(.text+0x5a0f): undefined
Harald> reference to `initmem_freed'

Harald> because initmem_freed is still used in fs/super.c.

It also breaks the boot logo of fbcon the way it is done right now.

Try this patch.

Jes

--- /var/tmp/native-2.1.121/drivers/video/fbcon.c Sat Sep 12 13:39:56 1998
+++ linux/drivers/video/fbcon.c Sat Sep 12 13:44:10 1998
@@ -391,6 +391,8 @@

#define fontwidthvalid(p,w) ((p)->dispsw->fontwidthmask & FONTWIDTH(w))

+extern initmem_freed;
+
static void fbcon_setup(int con, int init, int logo)
{
struct display *p = &fb_display[con];
@@ -398,9 +400,8 @@
int nr_rows, nr_cols;
int old_rows, old_cols;
unsigned short *save = NULL, *r, *q;
- /* Only if not module */
- int initmem_freed = 1;
struct fbcon_font_desc *font;
+
if (con != fg_console || initmem_freed || p->type == FB_TYPE_TEXT)
logo = 0;

--- /var/tmp/native-2.1.121/init/main.c Sat Sep 12 13:40:03 1998
+++ linux/init/main.c Thu Sep 10 12:26:10 1998
@@ -1272,6 +1290,8 @@
#endif
}

+int initmem_freed = 0;
+
static int init(void * unused)
{
do_basic_setup();
@@ -1282,6 +1302,7 @@
* initmem segments and start the user-mode stuff..
*/
free_initmem();
+ initmem_freed = 1;

if (open("/dev/console", O_RDWR, 0) < 0)
printk("Warning: unable to open an initial console.\n");
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/faq.html

\
 
 \ /
  Last update: 2005-03-22 13:44    [W:0.053 / U:0.792 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site