]> git.hungrycats.org Git - linux/commitdiff
[PATCH] janitor: remove __SMP__
authorRandy Dunlap <rddunlap@osdl.org>
Sat, 6 Sep 2003 07:34:53 +0000 (00:34 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 6 Sep 2003 07:34:53 +0000 (00:34 -0700)
Three small 1-line patches to get rid of any remaining __SMP__
references in the 2.6 kernel.

From: Ron Gage  <ron@rongage.org>

drivers/char/ser_a2232.c
drivers/message/fusion/linux_compat.h
drivers/scsi/3w-xxxx.c

index 2ea64abeef1dc8992f1933841b743913d4177f82..eb168a011cd6ff4c6654c4200f433faa6f85d90c 100644 (file)
@@ -731,7 +731,7 @@ int a2232board_init(void)
        volatile u_char *to;
        volatile struct a2232memory *mem;
 
-#ifdef __SMP__
+#ifdef CONFIG_SMP
        return -ENODEV; /* This driver is not SMP aware. Is there an SMP ZorroII-bus-machine? */
 #endif
 
index 4ffb21ae10343a2f1cb3144cd6e984a632b8eb56..838f87094777049cac722492a74522868ae63b31 100644 (file)
@@ -93,7 +93,7 @@ typedef void (*__cleanup_module_func_t)(void);
  * Used prior to schedule_timeout calls..
  */
 #define __set_current_state(state_value)       do { current->state = state_value; } while (0)
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 #define set_current_state(state_value)         do { __set_current_state(state_value); mb(); } while (0)
 #else
 #define set_current_state(state_value)         __set_current_state(state_value)
index 8de649829c01fa68d37dbda914a2b2cd65ee9fe3..fbae2fbf123fc0982ed1ba882cddd9e898e1a1d5 100644 (file)
 #include <linux/module.h>
 
 MODULE_AUTHOR ("3ware Inc.");
-#ifdef __SMP__
+#ifdef CONFIG_SMP
 MODULE_DESCRIPTION ("3ware Storage Controller Linux Driver (SMP)");
 #else
 MODULE_DESCRIPTION ("3ware Storage Controller Linux Driver");