Instead of open-coding the size computation of struct irqdomain,
use the struct_size() helper instead.
This is going to be handy as we change the type of the revmap
array.
Signed-off-by: Marc Zyngier <maz@kernel.org>
                    (!IS_ENABLED(CONFIG_IRQ_DOMAIN_NOMAP) && direct_max)))
                return NULL;
 
-       domain = kzalloc_node(sizeof(*domain) + (sizeof(unsigned int) * size),
+       domain = kzalloc_node(struct_size(domain, revmap, size),
                              GFP_KERNEL, of_node_to_nid(to_of_node(fwnode)));
        if (!domain)
                return NULL;