All of lore.kernel.org
 help / color / mirror / Atom feed
From: William Lee Irwin III <wli@holomorphy.com>
To: Norberto Bensa <norberto+linux-kernel@bensa.ath.cx>
Cc: linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>
Subject: Re: 2.6.7-rc3-mm1
Date: Wed, 9 Jun 2004 10:05:28 -0700	[thread overview]
Message-ID: <20040609170528.GR1444@holomorphy.com> (raw)
In-Reply-To: <200406091335.15566.norberto+linux-kernel@bensa.ath.cx>

On Wed, Jun 09, 2004 at 01:35:15PM -0300, Norberto Bensa wrote:
>   CC      drivers/pci/msi.o
> drivers/pci/msi.c: In function `msi_address_init':
> drivers/pci/msi.c:265: error: invalid operands to binary <<
> make[2]: *** [drivers/pci/msi.o] Error 1
> make[1]: *** [drivers/pci] Error 2
> make: *** [drivers] Error 2
> The offending line is:
> 
>         msi_address->lo_address.value |= (MSI_TARGET_CPU << MSI_TARGET_CPU_SHIFT);

The MSI writers have a lot to answer for. Could you test this?

Thanks.

Index: mm1-2.6.7-rc3/drivers/pci/msi.c
===================================================================
--- mm1-2.6.7-rc3.orig/drivers/pci/msi.c	2004-06-07 12:14:59.000000000 -0700
+++ mm1-2.6.7-rc3/drivers/pci/msi.c	2004-06-09 10:04:21.000000000 -0700
@@ -254,7 +254,8 @@
 
 static void msi_address_init(struct msg_address *msi_address)
 {
-	unsigned int	dest_id;
+	unsigned int dest_id;
+	cpumask_t msi_target_cpu = MSI_TARGET_CPU;
 
 	memset(msi_address, 0, sizeof(struct msg_address));
 	msi_address->hi_address = (u32)0;
@@ -262,7 +263,7 @@
 	msi_address->lo_address.u.dest_mode = MSI_DEST_MODE;
 	msi_address->lo_address.u.redirection_hint = MSI_REDIRECTION_HINT_MODE;
 	msi_address->lo_address.u.dest_id = dest_id;
-	msi_address->lo_address.value |= (MSI_TARGET_CPU << MSI_TARGET_CPU_SHIFT);
+	msi_address->lo_address.value |= any_online_cpu(msi_target_cpu) << MSI_TARGET_CPU_SHIFT;
 }
 
 static int assign_msi_vector(void)
Index: mm1-2.6.7-rc3/include/asm-i386/msi.h
===================================================================
--- mm1-2.6.7-rc3.orig/include/asm-i386/msi.h	2004-06-07 12:14:42.000000000 -0700
+++ mm1-2.6.7-rc3/include/asm-i386/msi.h	2004-06-09 09:50:04.000000000 -0700
@@ -14,7 +14,7 @@
 #define MSI_TARGET_CPU_SHIFT		12
 
 #ifdef CONFIG_SMP
-#define MSI_TARGET_CPU		logical_smp_processor_id()
+#define MSI_TARGET_CPU		cpumask_of_cpu(logical_smp_processor_id())
 #else
 #define MSI_TARGET_CPU		TARGET_CPUS
 #endif

  reply	other threads:[~2004-06-09 17:05 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-09  8:50 2.6.7-rc3-mm1 Andrew Morton
2004-06-09 11:25 ` 2.6.7-rc3-mm1 Eric BEGOT
2004-06-09 13:13   ` 2.6.7-rc3-mm1 Zwane Mwaikambo
2004-06-09 13:36     ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-09 13:42       ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-09 13:43       ` 2.6.7-rc3-mm1 Zwane Mwaikambo
2004-06-09 14:48         ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-09 14:58           ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-09 15:16             ` 2.6.7-rc3-mm1 William Lee Irwin III
     [not found]             ` <40C73198.4080700@yahoo.fr>
2004-06-09 15:50               ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-09 16:35 ` 2.6.7-rc3-mm1 Norberto Bensa
2004-06-09 17:05   ` William Lee Irwin III [this message]
2004-06-09 17:46     ` 2.6.7-rc3-mm1 Norberto Bensa
2004-06-10  3:38     ` 2.6.7-rc3-mm1 Norberto Bensa
2004-06-09 17:59 ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-09 17:59   ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-09 19:50   ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-09 19:50     ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-09 23:44 ` 2.6.7-rc3-mm1 (compile stats) John Cherry
2004-06-10  2:10 ` 2.6.7-rc3-mm1 Phil Brunner
2004-06-10  2:22   ` 2.6.7-rc3-mm1 Andrew Morton
2004-06-10  2:52   ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-10  8:59     ` 2.6.7-rc3-mm1 Phil Brunner
2004-06-10  5:16 ` 2.6.7-rc3-mm1 Clemens Schwaighofer
2004-06-10  5:31   ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-10  6:54     ` 2.6.7-rc3-mm1 Clemens Schwaighofer
2004-06-11  4:36 ` 2.6.7-rc3-mm1 Paul Jackson
2004-06-11  5:47   ` 2.6.7-rc3-mm1 Andrew Morton
2004-06-11  5:53     ` 2.6.7-rc3-mm1 Paul Jackson
  -- strict thread matches above, loose matches on Subject: below --
2004-06-09 15:33 2.6.7-rc3-mm1 Peter Maas
2004-06-09 15:52 ` 2.6.7-rc3-mm1 William Lee Irwin III
2004-06-09 20:03 2.6.7-rc3-mm1 Nguyen, Tom L
2004-06-10  0:51 2.6.7-rc3-mm1 Nguyen, Tom L
     [not found] <2576k-4hW-13@gated-at.bofh.it>
     [not found] ` <25LZK-88C-17@gated-at.bofh.it>
2004-06-11 10:48   ` 2.6.7-rc3-mm1 Andi Kleen
2004-06-11 11:32     ` 2.6.7-rc3-mm1 Paul Jackson

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=20040609170528.GR1444@holomorphy.com \
    --to=wli@holomorphy.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=norberto+linux-kernel@bensa.ath.cx \
    /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.