mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "J.A. Magallon" <jamagallon@able.es>
To: Lista Linux-Kernel <linux-kernel@vger.kernel.org>
Cc: William Lee Irwin III <wli@holomorphy.com>,
	Andrew Morton <akpm@osdl.org>
Subject: Re: 2.6.9-rc3-mm3
Date: Thu, 07 Oct 2004 21:46:37 +0000	[thread overview]
Message-ID: <1097185597l.10532l.1l@werewolf.able.es> (raw)
In-Reply-To: <1097184341l.10532l.0l@werewolf.able.es> (from jamagallon@able.es on Thu Oct  7 23:25:41 2004)


On 2004.10.07, J.A. Magallon wrote:
> 
> This conflicts with kernel/irq/proc.c:
> 
> 	unsigned long prof_cpu_mask = -1;
> 
> Shouldn't this be:
> 
> 	cpumask_t prof_cpu_mask = CPU_MASK_NONE;
> 
> This will show problems when NR_CPUS > sizeof(long)....
> 

Err....

There is a problem with this -mm:

line 422185:

--- /dev/null   2003-09-15 06:40:47.000000000 -0700
+++ 25/kernel/irq/proc.c    2004-10-07 00:39:41.626877840 -0700
@@ -0,0 +1,183 @@
+/*
+ * linux/kernel/irq/proc.c
+ *
+ * Copyright (C) 1992, 1998-2004 Linus Torvalds, Ingo Molnar
+ *
+ * This file contains the /proc/irq/ handling code.
+ */
+
+#include <linux/irq.h>
+#include <linux/proc_fs.h>
+#include <linux/interrupt.h>
+
+unsigned long prof_cpu_mask = -1;
+
 ^^^^ ^^^^^^^^^^ ^^^^^^^^^^^^^  ^

And then:

line 426061:
--- linux-2.6.9-rc3/kernel/profile.c    2004-09-30 12:56:52.000000000 -0700
+++ 25/kernel/profile.c 2004-10-07 00:41:51.898073608 -0700
...
 static int prof_on;
 static cpumask_t prof_cpu_mask = CPU_MASK_ALL;
+#ifdef CONFIG_SMP

If you do the change I proposed before:

  LD      kernel/built-in.o
kernel/irq/built-in.o(.bss+0x20): multiple definition of `prof_cpu_mask'
kernel/profile.o(.data+0x0): first defined here
make[1]: *** [kernel/built-in.o] Error 1
make: *** [kernel] Error 2

And, for example:
werewolf:/usr/src/linux# grep -r "int prof_cpu_mask_read_proc" *
arch/m32r/kernel/irq.c:static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
kernel/profile.c:static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
kernel/irq/proc.c:static int prof_cpu_mask_read_proc(char *page, char **start, off_t off,

Duplicate code ?
the profile.c is in -rc3, and -mm3 adds the one in irq/proc.c.

???

--
J.A. Magallon <jamagallon()able!es>     \               Software is like sex:
werewolf!able!es                         \         It's better when it's free
Mandrakelinux release 10.1 (Community) for i586
Linux 2.6.9-rc3-mm2 (gcc 3.4.1 (Mandrakelinux 10.1 3.4.1-4mdk)) #2



  reply	other threads:[~2004-10-07 21:50 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-07  8:51 2.6.9-rc3-mm3 Andrew Morton
2004-10-07  9:30 ` 2.6.9-rc3-mm3 Martin Zwickel
2004-10-07  9:41 ` 2.6.9-rc3-mm3 Nick Sanders
2004-10-07  9:50   ` 2.6.9-rc3-mm3 Andrew Morton
2004-10-07 10:10     ` 2.6.9-rc3-mm3 Martin Zwickel
2004-10-07 10:44       ` 2.6.9-rc3-mm3 Hanno Meyer-Thurow
     [not found]         ` <20041007125610.0019eb3d@mango.fruits.de>
2004-10-07 10:58           ` 2.6.9-rc3-mm3 Hanno Meyer-Thurow
2004-10-07 10:16     ` 2.6.9-rc3-mm3 Nick Sanders
2004-10-07 11:40     ` 2.6.9-rc3-mm3 William Lee Irwin III
2004-10-07 21:25       ` 2.6.9-rc3-mm3 J.A. Magallon
2004-10-07 21:46         ` J.A. Magallon [this message]
2004-10-07 22:07           ` 2.6.9-rc3-mm3 Andrew Morton
2004-10-07 22:41             ` 2.6.9-rc3-mm3 J.A. Magallon
2004-10-07 22:54               ` 2.6.9-rc3-mm3 Andrew Morton
2004-10-07 23:06                 ` 2.6.9-rc3-mm3 J.A. Magallon
2004-10-07 23:40                   ` 2.6.9-rc3-mm3 Greg KH
2004-10-08  1:05                 ` 2.6.9-rc3-mm3 Paul Fulghum
2004-10-08 11:23               ` 2.6.9-rc3-mm3 William Lee Irwin III
2004-10-08 11:34               ` 2.6.9-rc3-mm3 Ryan Cumming
2004-10-08  7:00             ` 2.6.9-rc3-mm3 Ingo Molnar
2004-10-07 22:03         ` 2.6.9-rc3-mm3 William Lee Irwin III
2004-10-07  9:59   ` 2.6.9-rc3-mm3 Martin Zwickel
2004-10-07 10:04 ` 2.6.9-rc3-mm3 Jesper Juhl
2004-10-07 10:15   ` 2.6.9-rc3-mm3 Russell King
2004-10-07 16:58 ` 2.6.9-rc3-mm3: `risc_code_addr01' multiple definition Adrian Bunk
2004-10-07 17:29   ` Andrew Vasquez
2004-10-07 17:50     ` James Bottomley
2004-10-07 18:13       ` Andrew Vasquez
2004-10-07 18:15         ` Andrew Vasquez
2004-10-07 18:30         ` Andrew Vasquez
2004-10-21 13:02       ` Jes Sorensen
2004-10-07 17:08 ` 2.6.9-rc3-mm3 (compile stats) John Cherry
2004-10-07 20:56 ` 2.6.9-rc3-mm3 Joel Schopp
2004-10-07 21:33   ` 2.6.9-rc3-mm3 Andrew Morton
2004-10-07 21:01 ` 2.6.9-rc3-mm3: build problem on dual-Opteron w/ NUMA Rafael J. Wysocki
2004-10-07 21:40   ` Andrew Morton
2004-10-07 21:46     ` Andi Kleen
2004-10-08 10:33 ` 2.6.9-rc3-mm3: vm-thrashing-control-tuning Hideo AOKI
2004-10-08 20:49   ` Andrew Morton
2004-10-07 11:10 2.6.9-rc3-mm3 Oleg Nesterov
2004-10-07 18:18 ` 2.6.9-rc3-mm3 Andrew Morton
     [not found] <20041007015139.6f5b833b.akpm@osdl.org.suse.lists.linux.kernel>
     [not found] ` <200410071041.20723.sandersn@btinternet.com.suse.lists.linux.kernel>
     [not found]   ` <20041007025007.77ec1a44.akpm@osdl.org.suse.lists.linux.kernel>
2004-10-07 11:23     ` 2.6.9-rc3-mm3 Andi Kleen

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=1097185597l.10532l.1l@werewolf.able.es \
    --to=jamagallon@able.es \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=wli@holomorphy.com \
    /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

all inboxes | Powered by JetHome®