Skip to content

Commit 9f510d1

Browse files
rikardfalkebornjoergroedel
authored andcommitted
iommu/hyper-v: Constify hyperv_ir_domain_ops
The struct hyperv_ir_domain_ops is not modified and can be made const to allow the compiler to put it in read-only memory. Before: text data bss dec hex filename 2916 1180 1120 5216 1460 drivers/iommu/hyperv-iommu.o After: text data bss dec hex filename 3044 1052 1120 5216 1460 drivers/iommu/hyperv-iommu.o Signed-off-by: Rikard Falkeborn <[email protected]> Acked-by: Wei Liu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 6a8b55e commit 9f510d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/hyperv-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ static int hyperv_irq_remapping_activate(struct irq_domain *domain,
131131
return 0;
132132
}
133133

134-
static struct irq_domain_ops hyperv_ir_domain_ops = {
134+
static const struct irq_domain_ops hyperv_ir_domain_ops = {
135135
.alloc = hyperv_irq_remapping_alloc,
136136
.free = hyperv_irq_remapping_free,
137137
.activate = hyperv_irq_remapping_activate,

0 commit comments

Comments
 (0)