diff options
author | mark gross <mgross@linux.intel.com> | 2008-02-08 04:18:39 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 09:22:24 -0800 |
commit | d94afc6ccf6690b30ae112ec8101b3f10d50114e (patch) | |
tree | f54fb1fe147861db876b99809ff1cd1a316c45c0 /include/linux/dmar.h | |
parent | f8bab73515ca5b392680bb033dceeb37b8463e95 (diff) | |
download | talos-op-linux-d94afc6ccf6690b30ae112ec8101b3f10d50114e.tar.gz talos-op-linux-d94afc6ccf6690b30ae112ec8101b3f10d50114e.zip |
intel-iommu: fault_reason index cleanup
Fix an off by one bug in the fault reason string reporting function, and
clean up some of the code around this buglet.
[akpm@linux-foundation.org: cleanup]
Signed-off-by: mark gross <mgross@linux.intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/dmar.h')
-rw-r--r-- | include/linux/dmar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dmar.h b/include/linux/dmar.h index ffb6439cb5e6..56c73b847551 100644 --- a/include/linux/dmar.h +++ b/include/linux/dmar.h @@ -28,7 +28,7 @@ #ifdef CONFIG_DMAR struct intel_iommu; -extern char *dmar_get_fault_reason(u8 fault_reason); +extern const char *dmar_get_fault_reason(u8 fault_reason); /* Can't use the common MSI interrupt functions * since DMAR is not a pci device |