summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBixuan Cui <cuibixuan@huawei.com>2021-09-16 04:52:03 +0200
committerMarc Zyngier <maz@kernel.org>2021-09-22 15:29:32 +0200
commit20c36ce2164f1774b487d443ece99b754bc6ad43 (patch)
tree38d75b36adce35bcb70f899cbdfd1fa0eb96fd12 /include
parentirqchip/armada-370-xp: Fix ack/eoi breakage (diff)
downloadlinux-20c36ce2164f1774b487d443ece99b754bc6ad43.tar.xz
linux-20c36ce2164f1774b487d443ece99b754bc6ad43.zip
irqdomain: Change the type of 'size' in __irq_domain_add() to be consistent
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
Diffstat (limited to 'include')
-rw-r--r--include/linux/irqdomain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h
index 23e4ee523576..9ee238ad29ce 100644
--- a/include/linux/irqdomain.h
+++ b/include/linux/irqdomain.h
@@ -251,7 +251,7 @@ static inline struct fwnode_handle *irq_domain_alloc_fwnode(phys_addr_t *pa)
}
void irq_domain_free_fwnode(struct fwnode_handle *fwnode);
-struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size,
+struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int size,
irq_hw_number_t hwirq_max, int direct_max,
const struct irq_domain_ops *ops,
void *host_data);