OSDN Git Service

irqdomain: Use struct_size() helper when allocating irqdomain
authorMarc Zyngier <maz@kernel.org>
Mon, 5 Apr 2021 10:30:51 +0000 (11:30 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 10 Jun 2021 12:09:17 +0000 (13:09 +0100)
commit426fa316148bccabf48f9c91a13c387ee911eadc
treed151df34801f562d9778ac9cda63c75b49e71324
parent4f86a06e2d6ece5316e4c42fbf946ee22acb30f3
irqdomain: Use struct_size() helper when allocating irqdomain

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>
kernel/irq/irqdomain.c