]> asedeno.scripts.mit.edu Git - linux.git/commit
irqchip/crossbar: Fix incorrect type of local variables
authorFranck Demathieu <fdemathieu@gmail.com>
Thu, 23 Feb 2017 09:48:55 +0000 (10:48 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 6 Mar 2017 14:40:04 +0000 (14:40 +0000)
commit077dbaee9df53c597df532a08d721d03f4570f3d
tree85734a9932946cadccaaf9d83a95c0ac036f42a0
parentc1ae3cfa0e89fa1a7ecc4c99031f5e9ae99d9201
irqchip/crossbar: Fix incorrect type of local variables

The max and entry variables are unsigned according to the dt-bindings.
Fix following 3 sparse issues (-Wtypesign):

  drivers/irqchip/irq-crossbar.c:222:52: warning: incorrect type in argument 3 (different signedness)
  drivers/irqchip/irq-crossbar.c:222:52:    expected unsigned int [usertype] *out_value
  drivers/irqchip/irq-crossbar.c:222:52:    got int *<noident>

  drivers/irqchip/irq-crossbar.c:245:56: warning: incorrect type in argument 4 (different signedness)
  drivers/irqchip/irq-crossbar.c:245:56:    expected unsigned int [usertype] *out_value
  drivers/irqchip/irq-crossbar.c:245:56:    got int *<noident>

  drivers/irqchip/irq-crossbar.c:263:56: warning: incorrect type in argument 4 (different signedness)
  drivers/irqchip/irq-crossbar.c:263:56:    expected unsigned int [usertype] *out_value
  drivers/irqchip/irq-crossbar.c:263:56:    got int *<noident>

Signed-off-by: Franck Demathieu <fdemathieu@gmail.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
drivers/irqchip/irq-crossbar.c