public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Schlichter <schlicht@uni-mannheim.de>
To: "jds" <jds@soltis.cc>, linux-kernel@vger.kernel.org
Subject: Re: problem when compile 2.5.70-mm8
Date: Wed, 11 Jun 2003 20:02:48 +0200	[thread overview]
Message-ID: <200306112002.48728.schlicht@uni-mannheim.de> (raw)
In-Reply-To: <20030611171334.M36451@soltis.cc>


[-- Attachment #1.1: Type: text/plain, Size: 713 bytes --]

jds wrote:
> Hi:
>
>    I try the compile kernel 2.5.70-mm8 and recive this messages:
  ~~ snip ~~
>   CC      arch/i386/kernel/setup.o
> arch/i386/kernel/setup.c: In function `setup_early_printk':
> arch/i386/kernel/setup.c:919: invalid lvalue in unary `&'
> make[1]: *** [arch/i386/kernel/setup.o] Error 1
> make: *** [arch/i386/kernel] Error 2
>
>   Help me please;
>
>   Regards.

As posted before the attached patch helps.

If you do not want to use the EARLY_PRINTK feature at all but are too lazy to 
turn it off in the Kernel debug menu explicitly (as I am, too ;-) you may 
also use the second attached patch wich corrects dependencies in Kconf.

Best regards
   Thomas Schlichter

[-- Attachment #1.2: early_printk_fix.diff --]
[-- Type: text/x-diff, Size: 660 bytes --]

--- linux-2.5.70-mm8/arch/i386/kernel/setup.c.orig	Wed Jun 11 11:10:35 2003
+++ linux-2.5.70-mm8/arch/i386/kernel/setup.c	Wed Jun 11 11:11:36 2003
@@ -910,6 +910,7 @@
 extern int __init serial8250_console_init(void);
 void setup_early_printk(void)
 {
+#ifdef CONFIG_SMP
 	/* 
 	 * printk currently checks cpu_online_map to make sure that
 	 * we don't try to printk from a CPU which hasn't had resources
@@ -917,6 +918,7 @@
 	 * enable here don't require per-cpu resources.
 	 */
 	set_bit(smp_processor_id(), &cpu_online_map);
+#endif
 #ifdef CONFIG_DEBUG_EP_SERIAL
 	console_setup(CONFIG_DEBUG_SERIAL_OPTIONS);
 	serial8250_console_init();

[-- Attachment #1.3: early_printk_Kconf.diff --]
[-- Type: text/x-diff, Size: 327 bytes --]

--- linux-2.5.70-mm8/arch/i386/Kconfig.orig	Wed Jun 11 11:23:17 2003
+++ linux-2.5.70-mm8/arch/i386/Kconfig	Wed Jun 11 11:25:25 2003
@@ -1795,7 +1795,7 @@
 
 config DEBUG_EARLY_PRINTK
 	bool
-	depends on !DEBUG_EARLY_PRINTK_OFF
+	depends on DEBUG_EP_SERIAL || DEBUG_EP_VGA
 	default y
 
 config DEBUG_SERIAL_OPTIONS

[-- Attachment #2: signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2003-06-11 17:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-11 17:16 problem when compile 2.5.70-mm8 jds
2003-06-11 18:02 ` Thomas Schlichter [this message]
2003-06-11 18:32   ` jds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200306112002.48728.schlicht@uni-mannheim.de \
    --to=schlicht@uni-mannheim.de \
    --cc=jds@soltis.cc \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox