Skip to content

Commit 20c36ce

Browse files
Bixuan CuiMarc Zyngier
authored andcommitted
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 <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 2a7313d commit 20c36ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/linux/irqdomain.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ static inline struct fwnode_handle *irq_domain_alloc_fwnode(phys_addr_t *pa)
251251
}
252252

253253
void irq_domain_free_fwnode(struct fwnode_handle *fwnode);
254-
struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size,
254+
struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int size,
255255
irq_hw_number_t hwirq_max, int direct_max,
256256
const struct irq_domain_ops *ops,
257257
void *host_data);

kernel/irq/irqdomain.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ EXPORT_SYMBOL_GPL(irq_domain_free_fwnode);
136136
* Allocates and initializes an irq_domain structure.
137137
* Returns pointer to IRQ domain, or NULL on failure.
138138
*/
139-
struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, int size,
139+
struct irq_domain *__irq_domain_add(struct fwnode_handle *fwnode, unsigned int size,
140140
irq_hw_number_t hwirq_max, int direct_max,
141141
const struct irq_domain_ops *ops,
142142
void *host_data)

0 commit comments

Comments
 (0)