Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751924AbbECI52 (ORCPT ); Sun, 3 May 2015 04:57:28 -0400 Received: from www.osadl.org ([62.245.132.105]:59082 "EHLO www.osadl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751632AbbECI5J (ORCPT ); Sun, 3 May 2015 04:57:09 -0400 From: Nicholas Mc Guire To: Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Nicholas Mc Guire Subject: [PATCH] genirq: fix type inconsistency Date: Sun, 3 May 2015 10:49:11 +0200 Message-Id: <1430642951-23964-1-git-send-email-hofrat@osadl.org> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1139 Lines: 37 The return type of kstat_irqs_usr() is unsigned int and kstat_irqs() also returns unsigned int so sum should be unsigned int here as well. Signed-off-by: Nicholas Mc Guire --- While it would go trough two automatic type conversions and thus the result would still be correct it makes static code checkers happy if types match. Patch was compile tested with x86_64_defconfig Patch is against 4.1-rc1 (localversion-next is -next-20150501) kernel/irq/irqdesc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 99793b9..996ab1c 100644 --- a/kernel/irq/irqdesc.c +++ b/kernel/irq/irqdesc.c @@ -639,7 +639,7 @@ unsigned int kstat_irqs(unsigned int irq) */ unsigned int kstat_irqs_usr(unsigned int irq) { - int sum; + unsigned int sum; irq_lock_sparse(); sum = kstat_irqs(irq); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/