public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Wayne.Brown@altec.com
To: "Daniel I. Applebaum" <kernel@danapple.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: 2.4.15-pre4 compile problem
Date: Mon, 12 Nov 2001 14:27:59 -0600	[thread overview]
Message-ID: <86256B02.00718123.00@smtpnotes.altec.com> (raw)



Try this patch (it works for me):

--- ./arch/i386/kernel/setup.c     Mon Nov 12 14:16:11 2001
+++ ./arch/i386/kernel/setup.c.fixed     Mon Nov 12 14:19:54 2001
@@ -2788,7 +2788,7 @@

 static void *c_start(struct seq_file *m, loff_t *pos)
 {
-    return *pos < NR_CPUS ? &cpu_data[*pos] : NULL;
+    return *pos < NR_CPUS ? &(cpu_data)[*pos] : NULL;
 }
 static void *c_next(struct seq_file *m, void *v, loff_t *pos)
 {







"Daniel I. Applebaum" <kernel@danapple.com> on 11/12/2001 01:39:33 PM

To:   linux-kernel@vger.kernel.org
cc:    (bcc: Wayne Brown/Corporate/Altec)

Subject:  2.4.15-pre4 compile problem




While compiling 2.4.15-pre4:
+++++++++++++++
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=i686    -c -o setup.o setup.c
setup.c: In function `c_start':
setup.c:2791: subscripted value is neither array nor pointer
setup.c:2792: warning: control reaches end of non-void function
gmake[1]: *** [setup.o] Error 1
gmake[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
gmake: *** [_dir_arch/i386/kernel] Error 2
+++++++++++++++++

Here's the block of code:
+++++++++++++++++
static void *c_start(struct seq_file *m, loff_t *pos)
{
        return *pos < NR_CPUS ? &cpu_data[*pos] : NULL;
}
+++++++++++++++++

Note that I'm compiling a non-SMP kernel.

Do I have to generate my .config from scatch each time, or can I copy
2.4.14/.config to 2.4.15-pre4/.config and run 'gmake menuconfig'?
(I've been doing the latter.)

Dan.
-
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/





             reply	other threads:[~2001-11-12 20:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-12 20:27 Wayne.Brown [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-11-12 19:39 2.4.15-pre4 compile problem Daniel I. Applebaum
2001-11-12 20:22 ` Daniel I. Applebaum
2001-11-12 20:27 ` Linus Torvalds
2001-11-12 20:34 ` Slo Mo Snail
2001-11-12 20:45   ` Robert Love

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=86256B02.00718123.00@smtpnotes.altec.com \
    --to=wayne.brown@altec.com \
    --cc=kernel@danapple.com \
    --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