public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Daniele Pala <dandario@libero.it>
To: linux-kernel@vger.kernel.org
Subject: [PPC] Trivial patch
Date: Tue, 31 Aug 2004 00:24:14 +0200	[thread overview]
Message-ID: <20040830222414.GA1612@SuperSoul> (raw)

The problem: 

arch/ppc/syslib/open_pic.c: In function `openpic_mapirq':
arch/ppc/syslib/open_pic.c:779: array index in non-array initializer
arch/ppc/syslib/open_pic.c:779: (near initialization for `irqdest')
arch/ppc/syslib/open_pic.c:779: warning: missing braces around initializer
arch/ppc/syslib/open_pic.c:779: warning: (near initialization for `irqdest.bits')
make[1]: *** [arch/ppc/syslib/open_pic.o] Error 1
make: *** [arch/ppc/syslib] Error 2

the fix:

--- open_pic.c	Mon Aug 30 11:16:07 2004
+++ open_pic_mod.c	Mon Aug 30 11:15:39 2004
@@ -776,7 +776,7 @@
 	if (ISR[irq] == 0)
 		return;
 	if (!cpus_empty(keepmask)) {
-		cpumask_t irqdest = { .bits[0] = openpic_read(&ISR[irq]->Destination) };
+		cpumask_t irqdest = { irqdest.bits[0] = openpic_read(&ISR[irq]->Destination) };
 		cpus_and(irqdest, irqdest, keepmask);
 		cpus_or(physmask, physmask, irqdest);
 	}


Please CC me privately, i'm not subscribed to the list. Cheers,

	Daniele

                 reply	other threads:[~2004-08-30 22:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20040830222414.GA1612@SuperSoul \
    --to=dandario@libero.it \
    --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