From: Nicholas Mc Guire Date: Sun, 3 May 2015 08:49:11 +0000 (+0200) Subject: genirq: Fix type inconsistency X-Git-Tag: v4.2-rc1~163^2~23 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7df0b278385df3c8d0606c620e6ab1e9eea3d9cd;p=karo-tx-linux.git genirq: Fix type inconsistency 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 Link: http://lkml.kernel.org/r/1430642951-23964-1-git-send-email-hofrat@osadl.org Signed-off-by: Thomas Gleixner --- diff --git a/kernel/irq/irqdesc.c b/kernel/irq/irqdesc.c index 8228f7382491..73a76e2ee936 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);