From patchwork Fri Aug 28 19:00:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kyle mcmartin X-Patchwork-Id: 44561 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n7SJ1Llu014000 for ; Fri, 28 Aug 2009 19:01:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751852AbZH1TAg (ORCPT ); Fri, 28 Aug 2009 15:00:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751864AbZH1TAg (ORCPT ); Fri, 28 Aug 2009 15:00:36 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:54020 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751852AbZH1TAg (ORCPT ); Fri, 28 Aug 2009 15:00:36 -0400 Received: from kyle by bombadil.infradead.org with local (Exim 4.69 #1 (Red Hat Linux)) id 1Mh6ge-0004g6-RZ; Fri, 28 Aug 2009 19:00:36 +0000 Date: Fri, 28 Aug 2009 15:00:36 -0400 From: Kyle McMartin To: torvalds@linux-foundation.org Cc: grundler@parisc-linux.org, linux-parisc@vger.kernel.org, deller@gmx.de Subject: [PATCH] parisc: fix warning in traps.c Message-ID: <20090828190036.GG19494@bombadil.infradead.org> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-parisc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-parisc@vger.kernel.org From: Grant Grundler On Tue, Aug 18, 2009 at 01:45:17PM -0400, John David Anglin wrote: > CC arch/parisc/kernel/traps.o > arch/parisc/kernel/traps.c: In function 'handle_interruption': > arch/parisc/kernel/traps.c:535:18: warning: operation on 'regs->iasq[0]' > may be undefined Yes - Line 535 should use both [0] and [1]. Reported-by: John David Anglin Signed-off-by: Grant Grundler Signed-off-by: Kyle McMartin --- To unsubscribe from this list: send the line "unsubscribe linux-parisc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- a/arch/parisc/kernel/traps.c +++ b/arch/parisc/kernel/traps.c @@ -532,7 +532,7 @@ void notrace handle_interruption(int code, struct pt_regs *regs) /* Kill the user process later */ regs->iaoq[0] = 0 | 3; regs->iaoq[1] = regs->iaoq[0] + 4; - regs->iasq[0] = regs->iasq[0] = regs->sr[7]; + regs->iasq[0] = regs->iasq[1] = regs->sr[7]; regs->gr[0] &= ~PSW_B; return; }