From patchwork Wed Jun 3 08:34:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 27627 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 n538c3GW020309 for ; Wed, 3 Jun 2009 08:38:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751553AbZFCIh7 (ORCPT ); Wed, 3 Jun 2009 04:37:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751805AbZFCIh7 (ORCPT ); Wed, 3 Jun 2009 04:37:59 -0400 Received: from rv-out-0506.google.com ([209.85.198.227]:44158 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751553AbZFCIh6 (ORCPT ); Wed, 3 Jun 2009 04:37:58 -0400 Received: by rv-out-0506.google.com with SMTP id l9so3005261rvb.5 for ; Wed, 03 Jun 2009 01:38:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=XJKtKz8JC3NMKl81nkpbmDvp8Z+o2PY1MpCl8Y9z/Aw=; b=knzDPNNXN6AaINYq0ycyOrg87OMm0Bll6xSKJhRYmLNr+/S8Ur9bqe46i0k32t8vJm bTO9ta5WVHDS5o928sTW0mfbFqRGlDTITGJVyGMf44CmrRBQ51Jq0p1Zvts6G9XPnB5r g6Ht1h9shJwpfqQ6Eiq4GLnCALyJOiVm7UnUQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=uySdAmSIbE/vgfinZKQmQJ5jwwWuJ7eNz1v6VsMU15jHBSPWmT6MpDF7Rc7f8z7gRS NiKk7n50YaHUVxB05qvsKxm/gARhb+whdWDg4VGn+LUoEbrSjP9113QzIaLpBi18IJxX Zt7lQk6MmMvHIcZQTYt70XauSN/We7jo1vEdg= Received: by 10.141.175.5 with SMTP id c5mr594186rvp.176.1244018280827; Wed, 03 Jun 2009 01:38:00 -0700 (PDT) Received: from rx1.opensource.se (210.5.32.202.bf.2iij.net [202.32.5.210]) by mx.google.com with ESMTPS id f42sm22229197rvb.11.2009.06.03.01.37.59 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 03 Jun 2009 01:38:00 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Wed, 03 Jun 2009 17:34:46 +0900 Message-Id: <20090603083446.28534.27711.sendpatchset@rx1.opensource.se> Subject: [PATCH] sh: intc compile warning fix Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org From: Magnus Damm This patch fixes a compile warning in the intc code for the CONFIG_SPARSE_IRQ=n case. Signed-off-by: Magnus Damm --- drivers/sh/intc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0001/drivers/sh/intc.c +++ work/drivers/sh/intc.c 2009-06-03 12:55:05.000000000 +0900 @@ -671,7 +671,7 @@ unsigned int intc_evt2irq(unsigned int v void __init register_intc_controller(struct intc_desc *desc) { - unsigned int i, k, smp, cpu = smp_processor_id(); + unsigned int i, k, smp; struct intc_desc_int *d; d = alloc_bootmem(sizeof(*d)); @@ -778,7 +778,7 @@ void __init register_intc_controller(str continue; #ifdef CONFIG_SPARSE_IRQ - irq_desc = irq_to_desc_alloc_cpu(irq, cpu); + irq_desc = irq_to_desc_alloc_cpu(irq, smp_processor_id()); if (unlikely(!irq_desc)) { printk(KERN_INFO "can not get irq_desc for %d\n", irq); continue;