]> 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)
commit4b9de5da7e120c7f02395da729f0ec77ce7a6044
treeb16504a886d8f8814d859c6b4e991544e806d1a5
parent90922a2d03d84de36bf8a9979d62580102f31a92
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