All of lore.kernel.org
 help / color / mirror / Atom feed
From: mbs <mbs@mc.com>
To: Greg Louis <glouis@dynamicro.on.ca>, linux-kernel@vger.kernel.org
Subject: Re: Linux 2.4.19-rc3-ac4
Date: Mon, 29 Jul 2002 17:07:41 -0400	[thread overview]
Message-ID: <200207292103.RAA25686@mc.com> (raw)
In-Reply-To: <20020729164636.32b8929f.glouis@dynamicro.on.ca>

sched.c calls arch_load_balance() which calls find_idle_package()

at least on a p4.  

(tried your fix and build failed due to that.)

On Monday 29 July 2002 16:46, Greg Louis wrote:
> On Mon, 29 Jul 2002 13:41:07 -0500,
>
>  "Stephen Lee" <steve@tuxsoft.com> wrote:
> > When compiling with this patch I get the following:
> >
> > gcc -D__KERNEL__ -I/usr/src/linux-2.4.19-rc3-ac4/include -Wall
> > -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing
> > -fno-common-fomit-f
> > rame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon
> > -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
> > In file included from
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/smp.h:14,
> >                  from
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/sched.h:23,
> >                  from
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/mm.h:4,
> >                  from
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/slab.h:14,
> >                  from
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/proc_fs.h:5,
> >                  from init/main.c:15:
> > /usr/src/linux-2.4.19-rc3-ac4/include/asm/smp.h: In function
> > `find_idle_package':
> > /usr/src/linux-2.4.19-rc3-ac4/include/asm/smp.h:153: `smp_num_cpus'
> > undeclared (first use in this function)
> > /usr/src/linux-2.4.19-rc3-ac4/include/asm/smp.h:153: (Each undeclared
> > identifier is reported only once
> > /usr/src/linux-2.4.19-rc3-ac4/include/asm/smp.h:153: for each function
> > it appears in.)
> > /usr/src/linux-2.4.19-rc3-ac4/include/asm/smp.h:163: warning: implicit
> > declaration of function `idle_cpu'
> > /usr/src/linux-2.4.19-rc3-ac4/include/asm/smp.h: In function
> > `arch_load_balance':
> > /usr/src/linux-2.4.19-rc3-ac4/include/asm/smp.h:177: warning: implicit
> > declaration of function `cpu_rq'
> > /usr/src/linux-2.4.19-rc3-ac4/include/asm/smp.h:177: warning:
> > assignment makes pointer from integer without a cast
> > /usr/src/linux-2.4.19-rc3-ac4/include/asm/smp.h:178: warning: implicit
> > declaration of function `resched_task'
> > /usr/src/linux-2.4.19-rc3-ac4/include/asm/smp.h:178: dereferencing
> > pointer to incomplete type
> > In file included from
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/sched.h:23,
> >                  from
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/mm.h:4,
> >                  from
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/slab.h:14,
> >                  from
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/proc_fs.h:5,
> >                  from init/main.c:15:
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/smp.h: At top level:
> > /usr/src/linux-2.4.19-rc3-ac4/include/linux/smp.h:58: `smp_num_cpus'
> > used prior to declaration
> > make: *** [init/main.o] Error 1
>
> The two inline functions containing these errors appear to be nowhere
> used, at least as far as I can tell with find -exec grep.  Removing the
> code allows successful compilation on an SMP box, and it seems to be
> running ok with the new kernel.  (Despite the directory name this is an
> -ac4 tree).
>
> --- linux-2.4.19rc3/include/asm-i386/smp.h~	2002-07-29 16:26:36.000000000
> -0400 +++ linux-2.4.19rc3/include/asm-i386/smp.h	2002-07-29
> 16:26:36.000000000 -0400 @@ -140,6 +140,7 @@
>
>  #define NO_PROC_ID		0xFF		/* No processor magic marker */
>
> +#if 0
>  #ifdef CONFIG_SMP
>  #define ARCH_HAS_LOAD_BALANCE
>  /*
> @@ -183,3 +184,4 @@
>  }
>  #endif
>  #endif
> +#endif

-- 
/**************************************************
**   Mark Salisbury       ||      mbs@mc.com     **
** If you would like to sponsor me for the       **
** Mass Getaway, a 150 mile bicycle ride to for  **
** MS, contact me to donate by cash or check or  **
** click the link below to donate by credit card **
**************************************************/
https://www.nationalmssociety.org/pledge/pledge.asp?participantid=86736

  reply	other threads:[~2002-07-29 20:59 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-29 17:40 Linux 2.4.19-rc3-ac4 Alan Cox
2002-07-29 18:41 ` Stephen Lee
2002-07-29 20:46   ` Greg Louis
2002-07-29 21:07     ` mbs [this message]
2002-07-29 21:13     ` Greg Louis
2002-07-29 18:42 ` Linux 2.4.19-rc3-ac4 -build error! mbs
2002-07-29 20:44 ` Linux 2.4.19-rc3-ac4 Erik Andersen
2002-07-29 20:51   ` Grendel
2002-07-29 21:04     ` Erik Andersen

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=200207292103.RAA25686@mc.com \
    --to=mbs@mc.com \
    --cc=glouis@dynamicro.on.ca \
    --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.