]> git.baikalelectronics.ru Git - kernel.git/commit
of: fix sparse warnings in fdt, irq, reserved mem, and resolver code
authorRob Herring <robh@kernel.org>
Thu, 4 May 2017 17:56:12 +0000 (12:56 -0500)
committerRob Herring <robh@kernel.org>
Thu, 4 May 2017 19:01:13 +0000 (14:01 -0500)
commita1f23ea02f2770889576ad50829fbbf4fa6803a3
treebc3ca7262bb9ff371698a2f65e9e3cca0571a2fc
parent61b634c362f6e769fd76d980245f1d58e7a89f16
of: fix sparse warnings in fdt, irq, reserved mem, and resolver code

sparse generates the following warnings in drivers/of/:

../drivers/of/fdt.c:63:36: warning: cast to restricted __be32
../drivers/of/fdt.c:68:33: warning: cast to restricted __be32
../drivers/of/irq.c:105:88: warning: incorrect type in initializer (different base types)
../drivers/of/irq.c:105:88:    expected restricted __be32
../drivers/of/irq.c:105:88:    got int
../drivers/of/irq.c:526:35: warning: incorrect type in assignment (different modifiers)
../drivers/of/irq.c:526:35:    expected int ( *const [usertype] irq_init_cb )( ... )
../drivers/of/irq.c:526:35:    got void const *const data
../drivers/of/of_reserved_mem.c:200:50: warning: incorrect type in initializer (different modifiers)
../drivers/of/of_reserved_mem.c:200:50:    expected int ( *[usertype] initfn )( ... )
../drivers/of/of_reserved_mem.c:200:50:    got void const *const data
../drivers/of/resolver.c:95:42: warning: incorrect type in assignment (different base types)
../drivers/of/resolver.c:95:42:    expected unsigned int [unsigned] [usertype] <noident>
../drivers/of/resolver.c:95:42:    got restricted __be32 [usertype] <noident>

All these are harmless type mismatches fixed by adjusting the types.

Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/fdt.c
drivers/of/irq.c
drivers/of/of_reserved_mem.c
drivers/of/resolver.c
include/linux/of_irq.h