Skip to contentSkip to conversation

EDAC, mce_amd_inj: Include irq_vectors header to fix build errors

PATCH Applied Aravind Gopalakrishnan 2 participants 2 messages Jun 5, 2015 – Jun 6, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 EDAC, mce_amd_inj: Include irq_vectors header to fix build errors

Even though !CONFIG_SMP and MCE injection are practically mutually exclusive, it's better to include irq_vectors.h just in case randconfig builders out there don't set CONFIG_SMP.

When that happens, DEFERRED_ERROR_VECTOR and THRESHOLD_APIC_VECTOR macro definitions go out of scope and kernel build will fail.

Tested the .config that broke the build against latest tip with changes in for-next branch of bp.git and it builds fine now.

---
 drivers/edac/mce_amd_inj.c | 1 +
 1 file changed, 1 insertion(+)
drivers/edac/mce_amd_inj.c +1 -0
index 3f7217f..3e1b53f 100644
@@ -18,6 +18,7 @@
 #include <linux/string.h>
 #include <linux/uaccess.h>
 #include <asm/mce.h>
+#include <asm/irq_vectors.h>
 
 #include "mce_amd.h"
 
Signature · 1 line
2.4.0
maintainer Applied
#1 lore raw
Quoted 6 lines · Aravind Gopalakrishnan

Even though !CONFIG_SMP and MCE injection are practically mutually exclusive, it's better to include irq_vectors.h just in case randconfig builders out there don't set CONFIG_SMP.

When that happens, DEFERRED_ERROR_VECTOR and THRESHOLD_APIC_VECTOR macro definitions go out of scope and kernel build will fail.

Good!

Quoted 15 lines

Tested the .config that broke the build against latest tip with changes in for-next branch of bp.git and it builds fine now.

---
 drivers/edac/mce_amd_inj.c | 1 +
 1 file changed, 1 insertion(+)
drivers/edac/mce_amd_inj.c +0 -0
index 3f7217f..3e1b53f 100644

drivers/edac/mce_amd_inj.c line 23

Quoted 6 lines
drivers/edac/mce_amd_inj.c +1 -0
@@ -18,6 +18,7 @@
 #include <linux/string.h>
 #include <linux/uaccess.h>
 #include <asm/mce.h>
+#include <asm/irq_vectors.h>
 
 #include "mce_amd.h"

Applied, thanks.

Signature · 5 lines
Regards/Gruss,
    Boris.

ECO tip #101: Trim your mails when you reply.
--