Skip to contentSkip to conversation

EDAC, AMD: Fix build error by including <linux/smp.h>

PATCH In review Theodore Ts'o 2 participants 2 messages Sep 18, 2009 EDAC-core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 EDAC, AMD: Fix build error by including <linux/smp.h>

Accessing the per-cpu variable cpu_llc_id now requires that <linux/smp.h> header file be included.

---

This fixes a compile error found in 2.6.31-git6

 drivers/edac/edac_mce_amd.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/edac/edac_mce_amd.c +1 -0
index c8ca713..6ae3b66 100644
@@ -1,4 +1,5 @@
 #include <linux/module.h>
+#include <linux/smp.h>
 #include "edac_mce_amd.h"
 
 static bool report_gart_errors;
Signature · 1 line
1.6.3.2.1.gb9f7d.dirty
#1 lore raw

Hi Theodore,

Quoted 8 lines · Theodore Ts'o

Accessing the per-cpu variable cpu_llc_id now requires that <linux/smp.h> header file be included.

---

This fixes a compile error found in 2.6.31-git6

This was properly fixed in the next snapshot, 2.6.31-git7.

Thanks.

Signature · 8 lines
Regards/Gruss,
Boris.

Operating | Advanced Micro Devices GmbH
  System  | Karl-Hammerschmidt-Str. 34, 85609 Dornach b. München, Germany
 Research | Geschäftsführer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni
  Center  | Sitz: Dornach, Gemeinde Aschheim, Landkreis München
  (OSRC)  | Registergericht München, HRB Nr. 43632