Staging: hv: move logging.h
authorGreg Kroah-Hartman <gregkh@suse.de>
Fri, 28 Aug 2009 23:22:59 +0000 (16:22 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:02:00 +0000 (12:02 -0700)
Move it out of the include subdirectory.

No code changes here, just file movements.

Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
15 files changed:
drivers/staging/hv/Channel.c
drivers/staging/hv/ChannelMgmt.c
drivers/staging/hv/Connection.c
drivers/staging/hv/Hv.c
drivers/staging/hv/NetVsc.c
drivers/staging/hv/RingBuffer.c
drivers/staging/hv/RndisFilter.c
drivers/staging/hv/StorVsc.c
drivers/staging/hv/Vmbus.c
drivers/staging/hv/blkvsc_drv.c
drivers/staging/hv/include/logging.h [deleted file]
drivers/staging/hv/logging.h [new file with mode: 0644]
drivers/staging/hv/netvsc_drv.c
drivers/staging/hv/storvsc_drv.c
drivers/staging/hv/vmbus_drv.c

index 8849e23065f138e126636a97503ac19b909092d8..d303cbd4c5369479aa73ca2f40fed999565cc90c 100644 (file)
@@ -24,8 +24,7 @@
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include "osd.h"
-#include "include/logging.h"
-
+#include "logging.h"
 #include "VmbusPrivate.h"
 
 /* Internal routines */
index d526390b7061d6e6329df4f381576f3d928a2155..a940891d826573c95c9780f949ab20d2f5b158d4 100644 (file)
@@ -25,8 +25,7 @@
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include "osd.h"
-#include "include/logging.h"
-
+#include "logging.h"
 #include "VmbusPrivate.h"
 
 /* Data types */
index d8ff49d5b71e892df80aa46a139e0dc456ee27ea..d4d355e6b7c221d1b01e737028959ec7b213afe5 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/mm.h>
 #include <linux/vmalloc.h>
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "VmbusPrivate.h"
 
 /* Globals */
index 3800bf324816afbb20802421227611278faa1662..b61b35c39d90c771da593b32931c04e6562cfff0 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/mm.h>
 #include <linux/vmalloc.h>
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "VmbusPrivate.h"
 
 /* Globals */
index 9747ad73a12c2b3d320271ae445d5d3db4cced87..fb1cbf02ce5a2416d8f8bff72baad7f51784afb2 100644 (file)
@@ -25,7 +25,7 @@
 #include <linux/delay.h>
 #include <asm/io.h>
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "NetVsc.h"
 #include "RndisFilter.h"
 
index 7473f915403a1ccb9688206ffcb19a5dc4ad1848..f69ae33a91e3788a8db90f9d67f738a3a1430454 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "RingBuffer.h"
 
 
index 3a444800f94b5ad10fdc92e9fe6dbcb0e004b561..1c2f15799d3b951b0857e2bdf309474685a9c347 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/io.h>
 
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "include/NetVscApi.h"
 #include "RndisFilter.h"
 
index edb3ab6d12d6b12b5bc11af2b92071eac998e48a..82686dae78ac7579702d266a856116ca8b608866 100644 (file)
@@ -26,7 +26,7 @@
 #include <linux/mm.h>
 #include <linux/delay.h>
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "include/StorVscApi.h"
 #include "include/VmbusPacketFormat.h"
 #include "vstorage.h"
index b3004cb9b6c9ae7fa42858898ee0aa4808c05d05..5c4c96f649a88dea07ee8e4b7ec9b43bc3a70e6a 100644 (file)
@@ -24,7 +24,7 @@
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "VersionInfo.h"
 #include "VmbusPrivate.h"
 
index 8dcc140a5dcab214f77abd2cb002a48771234342..e255755b09b23ce08959b08583a2c6a3ff94ab72 100644 (file)
@@ -34,7 +34,7 @@
 #include <scsi/scsi_dbg.h>
 
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "vmbus.h"
 
 #include "include/StorVscApi.h"
diff --git a/drivers/staging/hv/include/logging.h b/drivers/staging/hv/include/logging.h
deleted file mode 100644 (file)
index 9e55617..0000000
+++ /dev/null
@@ -1,119 +0,0 @@
-/*
- *
- * Copyright (c) 2009, Microsoft Corporation.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
- * Place - Suite 330, Boston, MA 02111-1307 USA.
- *
- * Authors:
- *   Haiyang Zhang <haiyangz@microsoft.com>
- *   Hank Janssen  <hjanssen@microsoft.com>
- *
- */
-
-
-#ifndef _LOGGING_H_
-#define _LOGGING_H_
-
-/* #include <linux/init.h> */
-/* #include <linux/module.h> */
-
-
-#define VMBUS                          0x0001
-#define STORVSC                                0x0002
-#define NETVSC                         0x0004
-#define INPUTVSC                       0x0008
-#define BLKVSC                         0x0010
-#define VMBUS_DRV                      0x0100
-#define STORVSC_DRV                    0x0200
-#define NETVSC_DRV                     0x0400
-#define INPUTVSC_DRV           0x0800
-#define BLKVSC_DRV                     0x1000
-
-#define ALL_MODULES                    (VMBUS          |\
-                                                       STORVSC         |\
-                                                       NETVSC          |\
-                                                       INPUTVSC        |\
-                                                       BLKVSC          |\
-                                                       VMBUS_DRV       |\
-                                                       STORVSC_DRV     |\
-                                                       NETVSC_DRV      |\
-                                                       INPUTVSC_DRV|\
-                                                       BLKVSC_DRV)
-
-/* Logging Level */
-#define ERROR_LVL                              3
-#define WARNING_LVL                            4
-#define INFO_LVL                               6
-#define DEBUG_LVL                              7
-#define DEBUG_LVL_ENTEREXIT                    8
-#define DEBUG_RING_LVL                         9
-
-extern unsigned int vmbus_loglevel;
-
-#define ASSERT(expr)   \
-       if (!(expr)) {  \
-               printk(KERN_CRIT "Assertion failed! %s,%s,%s,line=%d\n", \
-                      #expr, __FILE__, __func__, __LINE__);    \
-               __asm__ __volatile__("int3");   \
-       }
-
-#define DPRINT(mod, lvl, fmt, args...) do {\
-       if ((mod & (HIWORD(vmbus_loglevel))) && \
-           (lvl <= LOWORD(vmbus_loglevel)))    \
-               printk(KERN_DEBUG #mod": %s() " fmt "\n", __func__, ## args);\
-       } while (0)
-
-#define DPRINT_DBG(mod, fmt, args...) do {\
-       if ((mod & (HIWORD(vmbus_loglevel))) &&         \
-           (DEBUG_LVL <= LOWORD(vmbus_loglevel)))      \
-               printk(KERN_DEBUG #mod": %s() " fmt "\n", __func__, ## args);\
-       } while (0)
-
-#define DPRINT_INFO(mod, fmt, args...) do {\
-       if ((mod & (HIWORD(vmbus_loglevel))) &&         \
-           (INFO_LVL <= LOWORD(vmbus_loglevel)))       \
-               printk(KERN_INFO #mod": " fmt "\n", ## args);\
-       } while (0)
-
-#define DPRINT_WARN(mod, fmt, args...) do {\
-       if ((mod & (HIWORD(vmbus_loglevel))) &&         \
-           (WARNING_LVL <= LOWORD(vmbus_loglevel)))    \
-               printk(KERN_WARNING #mod": WARNING! " fmt "\n", ## args);\
-       } while (0)
-
-#define DPRINT_ERR(mod, fmt, args...) do {\
-       if ((mod & (HIWORD(vmbus_loglevel))) &&         \
-           (ERROR_LVL <= LOWORD(vmbus_loglevel)))      \
-               printk(KERN_ERR #mod": %s() ERROR!! " fmt "\n", \
-                      __func__, ## args);\
-       } while (0)
-
-#ifdef DEBUG
-#define DPRINT_ENTER(mod) do {\
-       if ((mod & (HIWORD(vmbus_loglevel))) && \
-           (DEBUG_LVL_ENTEREXIT <= LOWORD(vmbus_loglevel)))    \
-               printk(KERN_DEBUG "["#mod"]: %s() enter\n", __func__);\
-       } while (0)
-
-#define DPRINT_EXIT(mod) do {\
-       if ((mod & (HIWORD(vmbus_loglevel))) && \
-           (DEBUG_LVL_ENTEREXIT <= LOWORD(vmbus_loglevel)))    \
-               printk(KERN_DEBUG "["#mod"]: %s() exit\n", __func__);\
-       } while (0)
-#else
-#define DPRINT_ENTER(mod)
-#define DPRINT_EXIT(mod)
-#endif
-
-#endif /* _LOGGING_H_ */
diff --git a/drivers/staging/hv/logging.h b/drivers/staging/hv/logging.h
new file mode 100644 (file)
index 0000000..9e55617
--- /dev/null
@@ -0,0 +1,119 @@
+/*
+ *
+ * Copyright (c) 2009, Microsoft Corporation.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms and conditions of the GNU General Public License,
+ * version 2, as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
+ * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
+ * more details.
+ *
+ * You should have received a copy of the GNU General Public License along with
+ * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
+ * Place - Suite 330, Boston, MA 02111-1307 USA.
+ *
+ * Authors:
+ *   Haiyang Zhang <haiyangz@microsoft.com>
+ *   Hank Janssen  <hjanssen@microsoft.com>
+ *
+ */
+
+
+#ifndef _LOGGING_H_
+#define _LOGGING_H_
+
+/* #include <linux/init.h> */
+/* #include <linux/module.h> */
+
+
+#define VMBUS                          0x0001
+#define STORVSC                                0x0002
+#define NETVSC                         0x0004
+#define INPUTVSC                       0x0008
+#define BLKVSC                         0x0010
+#define VMBUS_DRV                      0x0100
+#define STORVSC_DRV                    0x0200
+#define NETVSC_DRV                     0x0400
+#define INPUTVSC_DRV           0x0800
+#define BLKVSC_DRV                     0x1000
+
+#define ALL_MODULES                    (VMBUS          |\
+                                                       STORVSC         |\
+                                                       NETVSC          |\
+                                                       INPUTVSC        |\
+                                                       BLKVSC          |\
+                                                       VMBUS_DRV       |\
+                                                       STORVSC_DRV     |\
+                                                       NETVSC_DRV      |\
+                                                       INPUTVSC_DRV|\
+                                                       BLKVSC_DRV)
+
+/* Logging Level */
+#define ERROR_LVL                              3
+#define WARNING_LVL                            4
+#define INFO_LVL                               6
+#define DEBUG_LVL                              7
+#define DEBUG_LVL_ENTEREXIT                    8
+#define DEBUG_RING_LVL                         9
+
+extern unsigned int vmbus_loglevel;
+
+#define ASSERT(expr)   \
+       if (!(expr)) {  \
+               printk(KERN_CRIT "Assertion failed! %s,%s,%s,line=%d\n", \
+                      #expr, __FILE__, __func__, __LINE__);    \
+               __asm__ __volatile__("int3");   \
+       }
+
+#define DPRINT(mod, lvl, fmt, args...) do {\
+       if ((mod & (HIWORD(vmbus_loglevel))) && \
+           (lvl <= LOWORD(vmbus_loglevel)))    \
+               printk(KERN_DEBUG #mod": %s() " fmt "\n", __func__, ## args);\
+       } while (0)
+
+#define DPRINT_DBG(mod, fmt, args...) do {\
+       if ((mod & (HIWORD(vmbus_loglevel))) &&         \
+           (DEBUG_LVL <= LOWORD(vmbus_loglevel)))      \
+               printk(KERN_DEBUG #mod": %s() " fmt "\n", __func__, ## args);\
+       } while (0)
+
+#define DPRINT_INFO(mod, fmt, args...) do {\
+       if ((mod & (HIWORD(vmbus_loglevel))) &&         \
+           (INFO_LVL <= LOWORD(vmbus_loglevel)))       \
+               printk(KERN_INFO #mod": " fmt "\n", ## args);\
+       } while (0)
+
+#define DPRINT_WARN(mod, fmt, args...) do {\
+       if ((mod & (HIWORD(vmbus_loglevel))) &&         \
+           (WARNING_LVL <= LOWORD(vmbus_loglevel)))    \
+               printk(KERN_WARNING #mod": WARNING! " fmt "\n", ## args);\
+       } while (0)
+
+#define DPRINT_ERR(mod, fmt, args...) do {\
+       if ((mod & (HIWORD(vmbus_loglevel))) &&         \
+           (ERROR_LVL <= LOWORD(vmbus_loglevel)))      \
+               printk(KERN_ERR #mod": %s() ERROR!! " fmt "\n", \
+                      __func__, ## args);\
+       } while (0)
+
+#ifdef DEBUG
+#define DPRINT_ENTER(mod) do {\
+       if ((mod & (HIWORD(vmbus_loglevel))) && \
+           (DEBUG_LVL_ENTEREXIT <= LOWORD(vmbus_loglevel)))    \
+               printk(KERN_DEBUG "["#mod"]: %s() enter\n", __func__);\
+       } while (0)
+
+#define DPRINT_EXIT(mod) do {\
+       if ((mod & (HIWORD(vmbus_loglevel))) && \
+           (DEBUG_LVL_ENTEREXIT <= LOWORD(vmbus_loglevel)))    \
+               printk(KERN_DEBUG "["#mod"]: %s() exit\n", __func__);\
+       } while (0)
+#else
+#define DPRINT_ENTER(mod)
+#define DPRINT_EXIT(mod)
+#endif
+
+#endif /* _LOGGING_H_ */
index 36d5b5012ae2a3eceae9ba85894a02a51939bef8..f10a0cf43f3eb3c0b7ca88f731c8ecc53a209d12 100644 (file)
@@ -37,7 +37,7 @@
 #include <net/pkt_sched.h>
 
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "vmbus.h"
 
 #include "include/NetVscApi.h"
index 155ba1df4b33b574e45b2f3f9374c44951839c5a..2310282f4c9a9c9e72db81404e5bf3b1ec75d105 100644 (file)
@@ -37,7 +37,7 @@
 #include <scsi/scsi_dbg.h>
 
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "vmbus.h"
 #include "include/StorVscApi.h"
 
index 7d6353106697c1cd1f927222a329176ff32e84af..4462d5bb87e71fa87f44c854be7743196d2a32b0 100644 (file)
@@ -29,7 +29,7 @@
 #include <linux/interrupt.h>
 #include <linux/sysctl.h>
 #include "osd.h"
-#include "include/logging.h"
+#include "logging.h"
 #include "vmbus.h"