diff options
author | Rashika Kheria <rashika.kheria@gmail.com> | 2013-12-18 01:34:27 -0500 |
---|---|---|
committer | Joerg Roedel <joro@8bytes.org> | 2013-12-30 09:37:01 -0500 |
commit | 6a7885c49b5b79c6e2e73db6fd9db9051b4a28f9 (patch) | |
tree | 8daf7cbad1f5e9ec85e206b71e4536b2fb357c8c /drivers/iommu | |
parent | 21004dcd3ba25163d620eddc703185cd50c89a93 (diff) |
iommu/vt-d: Mark functions as static in intel_irq_remapping.c
Mark functions int get_irte() and ir_dev_scope_init() as static in
intel_irq_remapping.c because they are not used outside this file.
This eliminates the following warnings in intel_irq_remapping.c:
drivers/iommu/intel_irq_remapping.c:49:5: warning: no previous prototype for ‘get_irte’ [-Wmissing-prototypes]
drivers/iommu/intel_irq_remapping.c:810:12: warning: no previous prototype for ‘ir_dev_scope_init’ [-Wmissing-prototypes]
Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Joerg Roedel <joro@8bytes.org>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/intel_irq_remapping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c index bab10b1002fb..c988b8d85df8 100644 --- a/drivers/iommu/intel_irq_remapping.c +++ b/drivers/iommu/intel_irq_remapping.c | |||
@@ -46,7 +46,7 @@ static struct irq_2_iommu *irq_2_iommu(unsigned int irq) | |||
46 | return cfg ? &cfg->irq_2_iommu : NULL; | 46 | return cfg ? &cfg->irq_2_iommu : NULL; |
47 | } | 47 | } |
48 | 48 | ||
49 | int get_irte(int irq, struct irte *entry) | 49 | static int get_irte(int irq, struct irte *entry) |
50 | { | 50 | { |
51 | struct irq_2_iommu *irq_iommu = irq_2_iommu(irq); | 51 | struct irq_2_iommu *irq_iommu = irq_2_iommu(irq); |
52 | unsigned long flags; | 52 | unsigned long flags; |
@@ -807,7 +807,7 @@ int __init parse_ioapics_under_ir(void) | |||
807 | return 1; | 807 | return 1; |
808 | } | 808 | } |
809 | 809 | ||
810 | int __init ir_dev_scope_init(void) | 810 | static int __init ir_dev_scope_init(void) |
811 | { | 811 | { |
812 | if (!irq_remapping_enabled) | 812 | if (!irq_remapping_enabled) |
813 | return 0; | 813 | return 0; |