All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dipankar Sarma <dipankar@in.ibm.com>
To: Con Kolivas <conman@kolivas.net>
Cc: linux kernel mailing list <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@digeo.com>
Subject: Re: 2.5.44-mm5
Date: Fri, 25 Oct 2002 18:09:21 +0530	[thread overview]
Message-ID: <20021025180921.B14451@in.ibm.com> (raw)
In-Reply-To: <1035547268.3db9328488960@kolivas.net>; from conman@kolivas.net on Fri, Oct 25, 2002 at 12:04:22PM +0000

On Fri, Oct 25, 2002 at 12:04:22PM +0000, Con Kolivas wrote:
> 
> Compile failure (gcc3.2):
> 
>   gcc -Wp,-MD,init/.version.o.d -D__KERNEL__ -Iinclude -Wall -Wstrict-prototypes
> -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe
> -mpreferred-stack-boundary=2 -march=i686 -Iarch/i386/mach-generic
> -fomit-frame-pointer -nostdinc -iwithprefix include    -DKBUILD_BASENAME=version
>   -c -o init/version.o init/version.c
>    ld -m elf_i386  -r -o init/built-in.o init/main.o init/version.o init/do_mounts.o
>         ld -m elf_i386 -e stext -T arch/i386/vmlinux.lds.s
> arch/i386/kernel/head.o arch/i386/kernel/init_task.o  init/built-in.o
> --start-group  arch/i386/kernel/built-in.o  arch/i386/mm/built-in.o 
> arch/i386/mach-generic/built-in.o  kernel/built-in.o  mm/built-in.o 
> fs/built-in.o  ipc/built-in.o  security/built-in.o  lib/lib.a 
> arch/i386/lib/lib.a  drivers/built-in.o  sound/built-in.o 
> arch/i386/pci/built-in.o  arch/i386/oprofile/built-in.o  net/built-in.o
> --end-group  -o .tmp_vmlinux1
> kernel/built-in.o: In function `sched_init':
> kernel/built-in.o(.init.text+0xc4): undefined reference to `init_kstat'
> make: *** [.tmp_vmlinux1] Error 1

The patch below should fix your problem, hopefully. Although I 
don't understand why kstat initialization isn't in common code.
I will try to fix it the right way later.

Thanks
-- 
Dipankar Sarma  <dipankar@in.ibm.com> http://lse.sourceforge.net
Linux Technology Center, IBM Software Lab, Bangalore, India.



diff -urN linux-2.5.44-mm5/kernel/sched.c linux-2.5.44-mm5-fix/kernel/sched.c
--- linux-2.5.44-mm5/kernel/sched.c	Fri Oct 25 15:11:06 2002
+++ linux-2.5.44-mm5-fix/kernel/sched.c	Fri Oct 25 15:40:01 2002
@@ -2160,6 +2160,8 @@
  * Don't use in new code.
  */
 spinlock_t kernel_flag __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
+#else
+static inline void init_kstat(void) { }
 #endif
 
 void __init sched_init(void)


  reply	other threads:[~2002-10-25 12:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-25 12:01 2.5.44-mm5 Con Kolivas
2002-10-25 12:39 ` Dipankar Sarma [this message]
2002-10-28  9:02   ` 2.5.44-mm5 Ravikiran G Thirumalai
  -- strict thread matches above, loose matches on Subject: below --
2002-10-25  5:40 2.5.44-mm5 Andrew Morton
2002-10-25  5:40 ` 2.5.44-mm5 Andrew Morton
2002-10-25 18:34 ` 2.5.44-mm5 Daniel Phillips
2002-10-25 18:34   ` 2.5.44-mm5 Daniel Phillips

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=20021025180921.B14451@in.ibm.com \
    --to=dipankar@in.ibm.com \
    --cc=akpm@digeo.com \
    --cc=conman@kolivas.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.