Commit c70faab
RISC-V: KVM: Use flexible array for APLIC IRQ state
Store the per-source APLIC IRQ state in the APLIC allocation instead
of allocating it separately.
This ties the IRQ state lifetime directly to the APLIC state, removes a
separate allocation failure path, and lets __counted_by() describe the
array bounds.
Assisted-by: Codex:GPT-5.5
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260511032144.361520-1-rosenp@gmail.com
Signed-off-by: Anup Patel <anup@brainfault.org>1 parent 60aa673 commit c70faab
1 file changed
Lines changed: 3 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
581 | 581 | | |
582 | 582 | | |
583 | 583 | | |
584 | | - | |
| 584 | + | |
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | 591 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | 592 | | |
598 | 593 | | |
599 | 594 | | |
| |||
606 | 601 | | |
607 | 602 | | |
608 | 603 | | |
609 | | - | |
| 604 | + | |
610 | 605 | | |
611 | 606 | | |
612 | 607 | | |
| |||
619 | 614 | | |
620 | 615 | | |
621 | 616 | | |
622 | | - | |
623 | | - | |
624 | 617 | | |
625 | 618 | | |
626 | 619 | | |
| |||
638 | 631 | | |
639 | 632 | | |
640 | 633 | | |
641 | | - | |
642 | | - | |
643 | 634 | | |
644 | 635 | | |
645 | 636 | | |
0 commit comments