]> git.baikalelectronics.ru Git - kernel.git/commit
irqdomain: Change the type of 'size' in __irq_domain_add() to be consistent
authorBixuan Cui <cuibixuan@huawei.com>
Thu, 16 Sep 2021 02:52:03 +0000 (10:52 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2023 07:32:49 +0000 (08:32 +0100)
commit16b3111df75ad7d2b95a31ed7c6801ec4d568033
treeb257d1e8097314b036319371b31c07ff4490e75f
parent032c27d9be43c6c9e93ad6040e0bebe6c7cb6b8d
irqdomain: Change the type of 'size' in __irq_domain_add() to be consistent

[ Upstream commit 97d0e1a95b28fc005bf720a79f547128b02fea1a ]

The 'size' is used in struct_size(domain, revmap, size) and its input
parameter type is 'size_t'(unsigned int).
Changing the size to 'unsigned int' to make the type consistent.

Signed-off-by: Bixuan Cui <cuibixuan@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210916025203.44841-1-cuibixuan@huawei.com
Stable-dep-of: 8932c32c3053 ("irqdomain: Fix domain registration race")
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/irqdomain.h
kernel/irq/irqdomain.c