[PATCH] EDAC BUG FIX module names quoted in sysfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Doug Thompson <[email protected]>

This patch applies to kernel 2.6.17-mm4

This patch does the following:

Fix the quoted module name in the sysfs for EDAC modules and reported by several
people.

Instead of  ../?edac_e752x?/   now the following will be presented, like other
modules:   ../edac_e752x/


Signed-off-by:		Doug Thompson <[email protected]>
---

 amd76x_edac.c  |    2 +-
 e752x_edac.c   |    1 +
 e7xxx_edac.c   |    1 +
 edac_mc.h      |    4 ----
 i82860_edac.c  |    1 +
 i82875p_edac.c |    1 +
 r82600_edac.c  |    1 +
 7 files changed, 6 insertions(+), 5 deletions(-)



Index: linux-2.6.17.edac/drivers/edac/amd76x_edac.c
===================================================================
--- linux-2.6.17.edac.orig/drivers/edac/amd76x_edac.c	2006-06-30 14:21:23.000000000
-0600
+++ linux-2.6.17.edac/drivers/edac/amd76x_edac.c	2006-06-30 14:22:19.000000000 -0600
@@ -20,8 +20,8 @@
 #include <linux/slab.h>
 #include "edac_mc.h"
 
-#define AMD76X_REVISION	" Ver: 2.0.0 "  __DATE__
-
+#define AMD76X_REVISION	" Ver: 2.0.1 "  __DATE__
+#define EDAC_MOD_STR	"amd76x_edac"
 
 #define amd76x_printk(level, fmt, arg...) \
 	edac_printk(level, "amd76x", fmt, ##arg)
Index: linux-2.6.17.edac/drivers/edac/e752x_edac.c
===================================================================
--- linux-2.6.17.edac.orig/drivers/edac/e752x_edac.c	2006-06-30 14:21:23.000000000
-0600
+++ linux-2.6.17.edac/drivers/edac/e752x_edac.c	2006-06-30 14:22:02.000000000 -0600
@@ -25,7 +25,8 @@
 #include <linux/slab.h>
 #include "edac_mc.h"
 
-#define E752X_REVISION	" Ver: 2.0.0 " __DATE__
+#define E752X_REVISION	" Ver: 2.0.1 " __DATE__
+#define EDAC_MOD_STR	"e752x_edac"
 
 static int force_function_unhide;
 
Index: linux-2.6.17.edac/drivers/edac/e7xxx_edac.c
===================================================================
--- linux-2.6.17.edac.orig/drivers/edac/e7xxx_edac.c	2006-06-30 14:21:23.000000000
-0600
+++ linux-2.6.17.edac/drivers/edac/e7xxx_edac.c	2006-06-30 14:22:33.000000000 -0600
@@ -30,7 +30,8 @@
 #include <linux/slab.h>
 #include "edac_mc.h"
 
-#define	E7XXX_REVISION " Ver: 2.0.0 " __DATE__
+#define	E7XXX_REVISION " Ver: 2.0.1 " __DATE__
+#define	EDAC_MOD_STR	"e7xxx_edac"
 
 #define e7xxx_printk(level, fmt, arg...) \
 	edac_printk(level, "e7xxx", fmt, ##arg)
Index: linux-2.6.17.edac/drivers/edac/edac_mc.h
===================================================================
--- linux-2.6.17.edac.orig/drivers/edac/edac_mc.h	2006-06-30 14:21:21.000000000
-0600
+++ linux-2.6.17.edac/drivers/edac/edac_mc.h	2006-06-30 14:21:25.000000000 -0600
@@ -79,10 +79,6 @@
 
 #endif  /* !CONFIG_EDAC_DEBUG */
 
-#define edac_xstr(s) edac_str(s)
-#define edac_str(s) #s
-#define EDAC_MOD_STR edac_xstr(KBUILD_BASENAME)
-
 #define BIT(x) (1 << (x))
 
 #define PCI_VEND_DEV(vend, dev) PCI_VENDOR_ID_ ## vend, \
Index: linux-2.6.17.edac/drivers/edac/i82860_edac.c
===================================================================
--- linux-2.6.17.edac.orig/drivers/edac/i82860_edac.c	2006-06-30 14:21:23.000000000
-0600
+++ linux-2.6.17.edac/drivers/edac/i82860_edac.c	2006-06-30 14:22:46.000000000 -0600
@@ -17,7 +17,8 @@
 #include <linux/slab.h>
 #include "edac_mc.h"
 
-#define  I82860_REVISION " Ver: 2.0.0 " __DATE__
+#define  I82860_REVISION " Ver: 2.0.1 " __DATE__
+#define EDAC_MOD_STR	"i82860_edac"
 
 #define i82860_printk(level, fmt, arg...) \
 	edac_printk(level, "i82860", fmt, ##arg)
Index: linux-2.6.17.edac/drivers/edac/i82875p_edac.c
===================================================================
--- linux-2.6.17.edac.orig/drivers/edac/i82875p_edac.c	2006-06-30 14:21:23.000000000
-0600
+++ linux-2.6.17.edac/drivers/edac/i82875p_edac.c	2006-06-30 14:22:57.000000000
-0600
@@ -21,7 +21,8 @@
 #include <linux/slab.h>
 #include "edac_mc.h"
 
-#define I82875P_REVISION	" Ver: 2.0.0 " __DATE__
+#define I82875P_REVISION	" Ver: 2.0.1 " __DATE__
+#define EDAC_MOD_STR		"i82875p_edac"
 
 #define i82875p_printk(level, fmt, arg...) \
 	edac_printk(level, "i82875p", fmt, ##arg)
Index: linux-2.6.17.edac/drivers/edac/r82600_edac.c
===================================================================
--- linux-2.6.17.edac.orig/drivers/edac/r82600_edac.c	2006-06-30 14:21:23.000000000
-0600
+++ linux-2.6.17.edac/drivers/edac/r82600_edac.c	2006-06-30 14:23:18.000000000 -0600
@@ -23,7 +23,8 @@
 #include <linux/slab.h>
 #include "edac_mc.h"
 
-#define R82600_REVISION	" Ver: 2.0.0 " __DATE__
+#define R82600_REVISION	" Ver: 2.0.1 " __DATE__
+#define EDAC_MOD_STR	"r82600_edac"
 
 #define r82600_printk(level, fmt, arg...) \
 	edac_printk(level, "r82600", fmt, ##arg)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux