]> git.baikalelectronics.ru Git - kernel.git/commit
irqchip/crossbar: Fix incorrect type of register size
authorFranck Demathieu <fdemathieu@gmail.com>
Mon, 6 Mar 2017 13:41:06 +0000 (14:41 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 7 Mar 2017 14:34:39 +0000 (14:34 +0000)
commit03e785acc657daa5c61a260c8603e2b51ac8f3b8
treeb16504a886d8f8814d859c6b4e991544e806d1a5
parent65c82ea11d33af58edf6caed558ebc63496b226c
irqchip/crossbar: Fix incorrect type of register size

The 'size' variable is unsigned according to the dt-bindings.
As this variable is used as integer in other places, create a new variable
that allows to fix the following sparse issue (-Wtypesign):

  drivers/irqchip/irq-crossbar.c:279:52: warning: incorrect type in argument 3 (different signedness)
  drivers/irqchip/irq-crossbar.c:279:52:    expected unsigned int [usertype] *out_value
  drivers/irqchip/irq-crossbar.c:279:52:    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