diff options
author | Jaswinder Singh Rajput <jaswinder@infradead.org> | 2008-12-29 11:14:12 -0500 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2008-12-30 01:08:12 -0500 |
commit | 412a1be265b894a45cebbfc2b57eb7a593bf34b2 (patch) | |
tree | de90b71a5240dd02cdd0536dceaef3f6cc8f3aa8 /arch/x86/kernel/amd_iommu_init.c | |
parent | 824877111cd7f2b4fd2fe6947c5c5cbbb3ac5bd8 (diff) |
x86: amd_iommu_init.c: iommu_enable and iommu_enable_event_logging should be static
Impact: cleanup, reduce kernel size a bit, avoid sparse warning
Fixes sparse warning:
arch/x86/kernel/amd_iommu_init.c:246:13: warning: symbol 'iommu_enable' was not declared. Should it be static?
arch/x86/kernel/amd_iommu_init.c:259:13: warning: symbol 'iommu_enable_event_logging' was not declared. Should it be static?
Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'arch/x86/kernel/amd_iommu_init.c')
-rw-r--r-- | arch/x86/kernel/amd_iommu_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c index c625800c55ca..fb85e8d466cc 100644 --- a/arch/x86/kernel/amd_iommu_init.c +++ b/arch/x86/kernel/amd_iommu_init.c | |||
@@ -243,7 +243,7 @@ static void __init iommu_feature_disable(struct amd_iommu *iommu, u8 bit) | |||
243 | } | 243 | } |
244 | 244 | ||
245 | /* Function to enable the hardware */ | 245 | /* Function to enable the hardware */ |
246 | void __init iommu_enable(struct amd_iommu *iommu) | 246 | static void __init iommu_enable(struct amd_iommu *iommu) |
247 | { | 247 | { |
248 | printk(KERN_INFO "AMD IOMMU: Enabling IOMMU " | 248 | printk(KERN_INFO "AMD IOMMU: Enabling IOMMU " |
249 | "at %02x:%02x.%x cap 0x%hx\n", | 249 | "at %02x:%02x.%x cap 0x%hx\n", |
@@ -256,7 +256,7 @@ void __init iommu_enable(struct amd_iommu *iommu) | |||
256 | } | 256 | } |
257 | 257 | ||
258 | /* Function to enable IOMMU event logging and event interrupts */ | 258 | /* Function to enable IOMMU event logging and event interrupts */ |
259 | void __init iommu_enable_event_logging(struct amd_iommu *iommu) | 259 | static void __init iommu_enable_event_logging(struct amd_iommu *iommu) |
260 | { | 260 | { |
261 | iommu_feature_enable(iommu, CONTROL_EVT_LOG_EN); | 261 | iommu_feature_enable(iommu, CONTROL_EVT_LOG_EN); |
262 | iommu_feature_enable(iommu, CONTROL_EVT_INT_EN); | 262 | iommu_feature_enable(iommu, CONTROL_EVT_INT_EN); |