aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2010-07-22 18:00:18 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-07-22 18:00:18 -0400
commit2acadc269fa1957438e64684460c27a33e6d2b08 (patch)
tree350a72c8ff7adc513d3d6d1bb1a7c1fa3ae37661 /drivers
parent94daa643c144a5f76ac9ee2506084793d608374b (diff)
Staging: hv: remove DPRINT_ENTER macro
We have ftrace to look at function traces if its really needed. Don't roll custom macros for this. Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/hv/blkvsc.c4
-rw-r--r--drivers/staging/hv/blkvsc_drv.c12
-rw-r--r--drivers/staging/hv/channel.c21
-rw-r--r--drivers/staging/hv/channel_mgmt.c22
-rw-r--r--drivers/staging/hv/connection.c8
-rw-r--r--drivers/staging/hv/hv.c8
-rw-r--r--drivers/staging/hv/hv_utils.c6
-rw-r--r--drivers/staging/hv/logging.h7
-rw-r--r--drivers/staging/hv/netvsc.c30
-rw-r--r--drivers/staging/hv/netvsc_drv.c22
-rw-r--r--drivers/staging/hv/ring_buffer.c2
-rw-r--r--drivers/staging/hv/rndis_filter.c38
-rw-r--r--drivers/staging/hv/storvsc.c15
-rw-r--r--drivers/staging/hv/storvsc_drv.c17
-rw-r--r--drivers/staging/hv/vmbus.c9
-rw-r--r--drivers/staging/hv/vmbus_drv.c41
16 files changed, 0 insertions, 262 deletions
diff --git a/drivers/staging/hv/blkvsc.c b/drivers/staging/hv/blkvsc.c
index 0daebc472e6..3aeeda2cbe7 100644
--- a/drivers/staging/hv/blkvsc.c
+++ b/drivers/staging/hv/blkvsc.c
@@ -40,8 +40,6 @@ static int BlkVscOnDeviceAdd(struct hv_device *Device, void *AdditionalInfo)
40 struct storvsc_device_info *deviceInfo; 40 struct storvsc_device_info *deviceInfo;
41 int ret = 0; 41 int ret = 0;
42 42
43 DPRINT_ENTER(BLKVSC);
44
45 deviceInfo = (struct storvsc_device_info *)AdditionalInfo; 43 deviceInfo = (struct storvsc_device_info *)AdditionalInfo;
46 44
47 ret = StorVscOnDeviceAdd(Device, AdditionalInfo); 45 ret = StorVscOnDeviceAdd(Device, AdditionalInfo);
@@ -73,8 +71,6 @@ int BlkVscInitialize(struct hv_driver *Driver)
73 struct storvsc_driver_object *storDriver; 71 struct storvsc_driver_object *storDriver;
74 int ret = 0; 72 int ret = 0;
75 73
76 DPRINT_ENTER(BLKVSC);
77
78 storDriver = (struct storvsc_driver_object *)Driver; 74 storDriver = (struct storvsc_driver_object *)Driver;
79 75
80 /* Make sure we are at least 2 pages since 1 page is used for control */ 76 /* Make sure we are at least 2 pages since 1 page is used for control */
diff --git a/drivers/staging/hv/blkvsc_drv.c b/drivers/staging/hv/blkvsc_drv.c
index 61bd0be5fb1..f134021d48d 100644
--- a/drivers/staging/hv/blkvsc_drv.c
+++ b/drivers/staging/hv/blkvsc_drv.c
@@ -175,8 +175,6 @@ static int blkvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
175 struct driver_context *drv_ctx = &g_blkvsc_drv.drv_ctx; 175 struct driver_context *drv_ctx = &g_blkvsc_drv.drv_ctx;
176 int ret; 176 int ret;
177 177
178 DPRINT_ENTER(BLKVSC_DRV);
179
180 vmbus_get_interface(&storvsc_drv_obj->Base.VmbusChannelInterface); 178 vmbus_get_interface(&storvsc_drv_obj->Base.VmbusChannelInterface);
181 179
182 storvsc_drv_obj->RingBufferSize = blkvsc_ringbuffer_size; 180 storvsc_drv_obj->RingBufferSize = blkvsc_ringbuffer_size;
@@ -214,8 +212,6 @@ static void blkvsc_drv_exit(void)
214 struct device *current_dev; 212 struct device *current_dev;
215 int ret; 213 int ret;
216 214
217 DPRINT_ENTER(BLKVSC_DRV);
218
219 while (1) { 215 while (1) {
220 current_dev = NULL; 216 current_dev = NULL;
221 217
@@ -268,8 +264,6 @@ static int blkvsc_probe(struct device *device)
268 static int ide0_registered; 264 static int ide0_registered;
269 static int ide1_registered; 265 static int ide1_registered;
270 266
271 DPRINT_ENTER(BLKVSC_DRV);
272
273 DPRINT_DBG(BLKVSC_DRV, "blkvsc_probe - enter"); 267 DPRINT_DBG(BLKVSC_DRV, "blkvsc_probe - enter");
274 268
275 if (!storvsc_drv_obj->Base.OnDeviceAdd) { 269 if (!storvsc_drv_obj->Base.OnDeviceAdd) {
@@ -751,8 +745,6 @@ static int blkvsc_remove(struct device *device)
751 unsigned long flags; 745 unsigned long flags;
752 int ret; 746 int ret;
753 747
754 DPRINT_ENTER(BLKVSC_DRV);
755
756 DPRINT_DBG(BLKVSC_DRV, "blkvsc_remove()\n"); 748 DPRINT_DBG(BLKVSC_DRV, "blkvsc_remove()\n");
757 749
758 if (!storvsc_drv_obj->Base.OnDeviceRemove) { 750 if (!storvsc_drv_obj->Base.OnDeviceRemove) {
@@ -1492,8 +1484,6 @@ static int __init blkvsc_init(void)
1492 1484
1493 BUILD_BUG_ON(sizeof(sector_t) != 8); 1485 BUILD_BUG_ON(sizeof(sector_t) != 8);
1494 1486
1495 DPRINT_ENTER(BLKVSC_DRV);
1496
1497 DPRINT_INFO(BLKVSC_DRV, "Blkvsc initializing...."); 1487 DPRINT_INFO(BLKVSC_DRV, "Blkvsc initializing....");
1498 1488
1499 ret = blkvsc_drv_init(BlkVscInitialize); 1489 ret = blkvsc_drv_init(BlkVscInitialize);
@@ -1505,9 +1495,7 @@ static int __init blkvsc_init(void)
1505 1495
1506static void __exit blkvsc_exit(void) 1496static void __exit blkvsc_exit(void)
1507{ 1497{
1508 DPRINT_ENTER(BLKVSC_DRV);
1509 blkvsc_drv_exit(); 1498 blkvsc_drv_exit();
1510 DPRINT_ENTER(BLKVSC_DRV);
1511} 1499}
1512 1500
1513MODULE_LICENSE("GPL"); 1501MODULE_LICENSE("GPL");
diff --git a/drivers/staging/hv/channel.c b/drivers/staging/hv/channel.c
index 78d1aa5f7f9..de5b1f2b3a8 100644
--- a/drivers/staging/hv/channel.c
+++ b/drivers/staging/hv/channel.c
@@ -74,8 +74,6 @@ static void VmbusChannelSetEvent(struct vmbus_channel *Channel)
74{ 74{
75 struct hv_monitor_page *monitorPage; 75 struct hv_monitor_page *monitorPage;
76 76
77 DPRINT_ENTER(VMBUS);
78
79 if (Channel->OfferMsg.MonitorAllocated) { 77 if (Channel->OfferMsg.MonitorAllocated) {
80 /* Each u32 represents 32 channels */ 78 /* Each u32 represents 32 channels */
81 set_bit(Channel->OfferMsg.ChildRelId & 31, 79 set_bit(Channel->OfferMsg.ChildRelId & 31,
@@ -101,8 +99,6 @@ static void VmbusChannelClearEvent(struct vmbus_channel *channel)
101{ 99{
102 struct hv_monitor_page *monitorPage; 100 struct hv_monitor_page *monitorPage;
103 101
104 DPRINT_ENTER(VMBUS);
105
106 if (Channel->OfferMsg.MonitorAllocated) { 102 if (Channel->OfferMsg.MonitorAllocated) {
107 /* Each u32 represents 32 channels */ 103 /* Each u32 represents 32 channels */
108 clear_bit(Channel->OfferMsg.ChildRelId & 31, 104 clear_bit(Channel->OfferMsg.ChildRelId & 31,
@@ -180,8 +176,6 @@ int VmbusChannelOpen(struct vmbus_channel *NewChannel, u32 SendRingBufferSize,
180 unsigned long flags; 176 unsigned long flags;
181 int ret, err = 0; 177 int ret, err = 0;
182 178
183 DPRINT_ENTER(VMBUS);
184
185 /* Aligned to page size */ 179 /* Aligned to page size */
186 /* ASSERT(!(SendRingBufferSize & (PAGE_SIZE - 1))); */ 180 /* ASSERT(!(SendRingBufferSize & (PAGE_SIZE - 1))); */
187 /* ASSERT(!(RecvRingBufferSize & (PAGE_SIZE - 1))); */ 181 /* ASSERT(!(RecvRingBufferSize & (PAGE_SIZE - 1))); */
@@ -511,8 +505,6 @@ int VmbusChannelEstablishGpadl(struct vmbus_channel *Channel, void *Kbuffer,
511 unsigned long flags; 505 unsigned long flags;
512 int ret = 0; 506 int ret = 0;
513 507
514 DPRINT_ENTER(VMBUS);
515
516 nextGpadlHandle = atomic_read(&gVmbusConnection.NextGpadlHandle); 508 nextGpadlHandle = atomic_read(&gVmbusConnection.NextGpadlHandle);
517 atomic_inc(&gVmbusConnection.NextGpadlHandle); 509 atomic_inc(&gVmbusConnection.NextGpadlHandle);
518 510
@@ -610,8 +602,6 @@ int VmbusChannelTeardownGpadl(struct vmbus_channel *Channel, u32 GpadlHandle)
610 unsigned long flags; 602 unsigned long flags;
611 int ret; 603 int ret;
612 604
613 DPRINT_ENTER(VMBUS);
614
615 /* ASSERT(GpadlHandle != 0); */ 605 /* ASSERT(GpadlHandle != 0); */
616 606
617 info = kmalloc(sizeof(*info) + 607 info = kmalloc(sizeof(*info) +
@@ -668,8 +658,6 @@ void VmbusChannelClose(struct vmbus_channel *Channel)
668 unsigned long flags; 658 unsigned long flags;
669 int ret; 659 int ret;
670 660
671 DPRINT_ENTER(VMBUS);
672
673 /* Stop callback and cancel the timer asap */ 661 /* Stop callback and cancel the timer asap */
674 Channel->OnChannelCallback = NULL; 662 Channel->OnChannelCallback = NULL;
675 del_timer_sync(&Channel->poll_timer); 663 del_timer_sync(&Channel->poll_timer);
@@ -751,7 +739,6 @@ int VmbusChannelSendPacket(struct vmbus_channel *Channel, const void *Buffer,
751 u64 alignedData = 0; 739 u64 alignedData = 0;
752 int ret; 740 int ret;
753 741
754 DPRINT_ENTER(VMBUS);
755 DPRINT_DBG(VMBUS, "channel %p buffer %p len %d", 742 DPRINT_DBG(VMBUS, "channel %p buffer %p len %d",
756 Channel, Buffer, BufferLen); 743 Channel, Buffer, BufferLen);
757 744
@@ -802,8 +789,6 @@ int VmbusChannelSendPacketPageBuffer(struct vmbus_channel *Channel,
802 struct scatterlist bufferList[3]; 789 struct scatterlist bufferList[3];
803 u64 alignedData = 0; 790 u64 alignedData = 0;
804 791
805 DPRINT_ENTER(VMBUS);
806
807 if (PageCount > MAX_PAGE_BUFFER_COUNT) 792 if (PageCount > MAX_PAGE_BUFFER_COUNT)
808 return -EINVAL; 793 return -EINVAL;
809 794
@@ -869,8 +854,6 @@ int VmbusChannelSendPacketMultiPageBuffer(struct vmbus_channel *Channel,
869 u32 PfnCount = NUM_PAGES_SPANNED(MultiPageBuffer->Offset, 854 u32 PfnCount = NUM_PAGES_SPANNED(MultiPageBuffer->Offset,
870 MultiPageBuffer->Length); 855 MultiPageBuffer->Length);
871 856
872 DPRINT_ENTER(VMBUS);
873
874 DumpVmbusChannel(Channel); 857 DumpVmbusChannel(Channel);
875 858
876 DPRINT_DBG(VMBUS, "data buffer - offset %u len %u pfn count %u", 859 DPRINT_DBG(VMBUS, "data buffer - offset %u len %u pfn count %u",
@@ -944,8 +927,6 @@ int VmbusChannelRecvPacket(struct vmbus_channel *Channel, void *Buffer,
944 int ret; 927 int ret;
945 unsigned long flags; 928 unsigned long flags;
946 929
947 DPRINT_ENTER(VMBUS);
948
949 *BufferActualLen = 0; 930 *BufferActualLen = 0;
950 *RequestId = 0; 931 *RequestId = 0;
951 932
@@ -1011,8 +992,6 @@ int VmbusChannelRecvPacketRaw(struct vmbus_channel *Channel, void *Buffer,
1011 int ret; 992 int ret;
1012 unsigned long flags; 993 unsigned long flags;
1013 994
1014 DPRINT_ENTER(VMBUS);
1015
1016 *BufferActualLen = 0; 995 *BufferActualLen = 0;
1017 *RequestId = 0; 996 *RequestId = 0;
1018 997
diff --git a/drivers/staging/hv/channel_mgmt.c b/drivers/staging/hv/channel_mgmt.c
index 3f53b4d1e4c..9c86efc78eb 100644
--- a/drivers/staging/hv/channel_mgmt.c
+++ b/drivers/staging/hv/channel_mgmt.c
@@ -266,8 +266,6 @@ static inline void ReleaseVmbusChannel(void *context)
266{ 266{
267 struct vmbus_channel *channel = context; 267 struct vmbus_channel *channel = context;
268 268
269 DPRINT_ENTER(VMBUS);
270
271 DPRINT_DBG(VMBUS, "releasing channel (%p)", channel); 269 DPRINT_DBG(VMBUS, "releasing channel (%p)", channel);
272 destroy_workqueue(channel->ControlWQ); 270 destroy_workqueue(channel->ControlWQ);
273 DPRINT_DBG(VMBUS, "channel released (%p)", channel); 271 DPRINT_DBG(VMBUS, "channel released (%p)", channel);
@@ -306,8 +304,6 @@ static void VmbusChannelProcessOffer(void *context)
306 int cnt; 304 int cnt;
307 unsigned long flags; 305 unsigned long flags;
308 306
309 DPRINT_ENTER(VMBUS);
310
311 /* Make sure this is a new offer */ 307 /* Make sure this is a new offer */
312 spin_lock_irqsave(&gVmbusConnection.channel_lock, flags); 308 spin_lock_irqsave(&gVmbusConnection.channel_lock, flags);
313 309
@@ -401,7 +397,6 @@ static void VmbusChannelProcessRescindOffer(void *context)
401{ 397{
402 struct vmbus_channel *channel = context; 398 struct vmbus_channel *channel = context;
403 399
404 DPRINT_ENTER(VMBUS);
405 VmbusChildDeviceRemove(channel->DeviceObject); 400 VmbusChildDeviceRemove(channel->DeviceObject);
406 DPRINT_EXIT(VMBUS); 401 DPRINT_EXIT(VMBUS);
407} 402}
@@ -422,8 +417,6 @@ static void VmbusChannelOnOffer(struct vmbus_channel_message_header *hdr)
422 int i; 417 int i;
423 int fSupported = 0; 418 int fSupported = 0;
424 419
425 DPRINT_ENTER(VMBUS);
426
427 offer = (struct vmbus_channel_offer_channel *)hdr; 420 offer = (struct vmbus_channel_offer_channel *)hdr;
428 for (i = 0; i < MAX_NUM_DEVICE_CLASSES_SUPPORTED; i++) { 421 for (i = 0; i < MAX_NUM_DEVICE_CLASSES_SUPPORTED; i++) {
429 if (memcmp(&offer->Offer.InterfaceType, 422 if (memcmp(&offer->Offer.InterfaceType,
@@ -499,8 +492,6 @@ static void VmbusChannelOnOfferRescind(struct vmbus_channel_message_header *hdr)
499 struct vmbus_channel_rescind_offer *rescind; 492 struct vmbus_channel_rescind_offer *rescind;
500 struct vmbus_channel *channel; 493 struct vmbus_channel *channel;
501 494
502 DPRINT_ENTER(VMBUS);
503
504 rescind = (struct vmbus_channel_rescind_offer *)hdr; 495 rescind = (struct vmbus_channel_rescind_offer *)hdr;
505 channel = GetChannelFromRelId(rescind->ChildRelId); 496 channel = GetChannelFromRelId(rescind->ChildRelId);
506 if (channel == NULL) { 497 if (channel == NULL) {
@@ -524,7 +515,6 @@ static void VmbusChannelOnOfferRescind(struct vmbus_channel_message_header *hdr)
524static void VmbusChannelOnOffersDelivered( 515static void VmbusChannelOnOffersDelivered(
525 struct vmbus_channel_message_header *hdr) 516 struct vmbus_channel_message_header *hdr)
526{ 517{
527 DPRINT_ENTER(VMBUS);
528 DPRINT_EXIT(VMBUS); 518 DPRINT_EXIT(VMBUS);
529} 519}
530 520
@@ -544,8 +534,6 @@ static void VmbusChannelOnOpenResult(struct vmbus_channel_message_header *hdr)
544 struct vmbus_channel_open_channel *openMsg; 534 struct vmbus_channel_open_channel *openMsg;
545 unsigned long flags; 535 unsigned long flags;
546 536
547 DPRINT_ENTER(VMBUS);
548
549 result = (struct vmbus_channel_open_result *)hdr; 537 result = (struct vmbus_channel_open_result *)hdr;
550 DPRINT_DBG(VMBUS, "vmbus open result - %d", result->Status); 538 DPRINT_DBG(VMBUS, "vmbus open result - %d", result->Status);
551 539
@@ -592,8 +580,6 @@ static void VmbusChannelOnGpadlCreated(struct vmbus_channel_message_header *hdr)
592 struct vmbus_channel_gpadl_header *gpadlHeader; 580 struct vmbus_channel_gpadl_header *gpadlHeader;
593 unsigned long flags; 581 unsigned long flags;
594 582
595 DPRINT_ENTER(VMBUS);
596
597 gpadlCreated = (struct vmbus_channel_gpadl_created *)hdr; 583 gpadlCreated = (struct vmbus_channel_gpadl_created *)hdr;
598 DPRINT_DBG(VMBUS, "vmbus gpadl created result - %d", 584 DPRINT_DBG(VMBUS, "vmbus gpadl created result - %d",
599 gpadlCreated->CreationStatus); 585 gpadlCreated->CreationStatus);
@@ -645,8 +631,6 @@ static void VmbusChannelOnGpadlTorndown(
645 struct vmbus_channel_gpadl_teardown *gpadlTeardown; 631 struct vmbus_channel_gpadl_teardown *gpadlTeardown;
646 unsigned long flags; 632 unsigned long flags;
647 633
648 DPRINT_ENTER(VMBUS);
649
650 gpadlTorndown = (struct vmbus_channel_gpadl_torndown *)hdr; 634 gpadlTorndown = (struct vmbus_channel_gpadl_torndown *)hdr;
651 635
652 /* 636 /*
@@ -693,8 +677,6 @@ static void VmbusChannelOnVersionResponse(
693 struct vmbus_channel_version_response *versionResponse; 677 struct vmbus_channel_version_response *versionResponse;
694 unsigned long flags; 678 unsigned long flags;
695 679
696 DPRINT_ENTER(VMBUS);
697
698 versionResponse = (struct vmbus_channel_version_response *)hdr; 680 versionResponse = (struct vmbus_channel_version_response *)hdr;
699 spin_lock_irqsave(&gVmbusConnection.channelmsg_lock, flags); 681 spin_lock_irqsave(&gVmbusConnection.channelmsg_lock, flags);
700 682
@@ -750,8 +732,6 @@ void VmbusOnChannelMessage(void *Context)
750 struct vmbus_channel_message_header *hdr; 732 struct vmbus_channel_message_header *hdr;
751 int size; 733 int size;
752 734
753 DPRINT_ENTER(VMBUS);
754
755 hdr = (struct vmbus_channel_message_header *)msg->u.Payload; 735 hdr = (struct vmbus_channel_message_header *)msg->u.Payload;
756 size = msg->Header.PayloadSize; 736 size = msg->Header.PayloadSize;
757 737
@@ -787,8 +767,6 @@ int VmbusChannelRequestOffers(void)
787 struct vmbus_channel_msginfo *msgInfo; 767 struct vmbus_channel_msginfo *msgInfo;
788 int ret; 768 int ret;
789 769
790 DPRINT_ENTER(VMBUS);
791
792 msgInfo = kmalloc(sizeof(*msgInfo) + 770 msgInfo = kmalloc(sizeof(*msgInfo) +
793 sizeof(struct vmbus_channel_message_header), 771 sizeof(struct vmbus_channel_message_header),
794 GFP_KERNEL); 772 GFP_KERNEL);
diff --git a/drivers/staging/hv/connection.c b/drivers/staging/hv/connection.c
index e8824dadffc..b8dd8f9206b 100644
--- a/drivers/staging/hv/connection.c
+++ b/drivers/staging/hv/connection.c
@@ -44,8 +44,6 @@ int VmbusConnect(void)
44 struct vmbus_channel_initiate_contact *msg; 44 struct vmbus_channel_initiate_contact *msg;
45 unsigned long flags; 45 unsigned long flags;
46 46
47 DPRINT_ENTER(VMBUS);
48
49 /* Make sure we are not connecting or connected */ 47 /* Make sure we are not connecting or connected */
50 if (gVmbusConnection.ConnectState != Disconnected) 48 if (gVmbusConnection.ConnectState != Disconnected)
51 return -1; 49 return -1;
@@ -193,8 +191,6 @@ int VmbusDisconnect(void)
193 int ret = 0; 191 int ret = 0;
194 struct vmbus_channel_message_header *msg; 192 struct vmbus_channel_message_header *msg;
195 193
196 DPRINT_ENTER(VMBUS);
197
198 /* Make sure we are connected */ 194 /* Make sure we are connected */
199 if (gVmbusConnection.ConnectState != Connected) 195 if (gVmbusConnection.ConnectState != Connected)
200 return -1; 196 return -1;
@@ -285,8 +281,6 @@ void VmbusOnEvents(void)
285 int relid; 281 int relid;
286 u32 *recvInterruptPage = gVmbusConnection.RecvInterruptPage; 282 u32 *recvInterruptPage = gVmbusConnection.RecvInterruptPage;
287 283
288 DPRINT_ENTER(VMBUS);
289
290 /* Check events */ 284 /* Check events */
291 if (recvInterruptPage) { 285 if (recvInterruptPage) {
292 for (dword = 0; dword < maxdword; dword++) { 286 for (dword = 0; dword < maxdword; dword++) {
@@ -334,8 +328,6 @@ int VmbusSetEvent(u32 childRelId)
334{ 328{
335 int ret = 0; 329 int ret = 0;
336 330
337 DPRINT_ENTER(VMBUS);
338
339 /* Each u32 represents 32 channels */ 331 /* Each u32 represents 32 channels */
340 set_bit(childRelId & 31, 332 set_bit(childRelId & 31,
341 (unsigned long *)gVmbusConnection.SendInterruptPage + 333 (unsigned long *)gVmbusConnection.SendInterruptPage +
diff --git a/drivers/staging/hv/hv.c b/drivers/staging/hv/hv.c
index 6c77e64027f..6aa3697a07d 100644
--- a/drivers/staging/hv/hv.c
+++ b/drivers/staging/hv/hv.c
@@ -192,8 +192,6 @@ int HvInit(void)
192 union hv_x64_msr_hypercall_contents hypercallMsr; 192 union hv_x64_msr_hypercall_contents hypercallMsr;
193 void *virtAddr = NULL; 193 void *virtAddr = NULL;
194 194
195 DPRINT_ENTER(VMBUS);
196
197 memset(gHvContext.synICEventPage, 0, sizeof(void *) * MAX_NUM_CPUS); 195 memset(gHvContext.synICEventPage, 0, sizeof(void *) * MAX_NUM_CPUS);
198 memset(gHvContext.synICMessagePage, 0, sizeof(void *) * MAX_NUM_CPUS); 196 memset(gHvContext.synICMessagePage, 0, sizeof(void *) * MAX_NUM_CPUS);
199 197
@@ -303,8 +301,6 @@ void HvCleanup(void)
303{ 301{
304 union hv_x64_msr_hypercall_contents hypercallMsr; 302 union hv_x64_msr_hypercall_contents hypercallMsr;
305 303
306 DPRINT_ENTER(VMBUS);
307
308 kfree(gHvContext.SignalEventBuffer); 304 kfree(gHvContext.SignalEventBuffer);
309 gHvContext.SignalEventBuffer = NULL; 305 gHvContext.SignalEventBuffer = NULL;
310 gHvContext.SignalEventParam = NULL; 306 gHvContext.SignalEventParam = NULL;
@@ -392,8 +388,6 @@ void HvSynicInit(void *irqarg)
392 u32 irqVector = *((u32 *)(irqarg)); 388 u32 irqVector = *((u32 *)(irqarg));
393 int cpu = smp_processor_id(); 389 int cpu = smp_processor_id();
394 390
395 DPRINT_ENTER(VMBUS);
396
397 if (!gHvContext.HypercallPage) { 391 if (!gHvContext.HypercallPage) {
398 DPRINT_EXIT(VMBUS); 392 DPRINT_EXIT(VMBUS);
399 return; 393 return;
@@ -490,8 +484,6 @@ void HvSynicCleanup(void *arg)
490 union hv_synic_siefp siefp; 484 union hv_synic_siefp siefp;
491 int cpu = smp_processor_id(); 485 int cpu = smp_processor_id();
492 486
493 DPRINT_ENTER(VMBUS);
494
495 if (!gHvContext.SynICInitialized) { 487 if (!gHvContext.SynICInitialized) {
496 DPRINT_EXIT(VMBUS); 488 DPRINT_EXIT(VMBUS);
497 return; 489 return;
diff --git a/drivers/staging/hv/hv_utils.c b/drivers/staging/hv/hv_utils.c
index 8a49aafea37..08cde24de2a 100644
--- a/drivers/staging/hv/hv_utils.c
+++ b/drivers/staging/hv/hv_utils.c
@@ -50,8 +50,6 @@ static void shutdown_onchannelcallback(void *context)
50 struct icmsg_hdr *icmsghdrp; 50 struct icmsg_hdr *icmsghdrp;
51 struct icmsg_negotiate *negop = NULL; 51 struct icmsg_negotiate *negop = NULL;
52 52
53 DPRINT_ENTER(VMBUS);
54
55 buflen = PAGE_SIZE; 53 buflen = PAGE_SIZE;
56 buf = kmalloc(buflen, GFP_ATOMIC); 54 buf = kmalloc(buflen, GFP_ATOMIC);
57 55
@@ -158,8 +156,6 @@ static void timesync_onchannelcallback(void *context)
158 struct icmsg_hdr *icmsghdrp; 156 struct icmsg_hdr *icmsghdrp;
159 struct ictimesync_data *timedatap; 157 struct ictimesync_data *timedatap;
160 158
161 DPRINT_ENTER(VMBUS);
162
163 buflen = PAGE_SIZE; 159 buflen = PAGE_SIZE;
164 buf = kmalloc(buflen, GFP_ATOMIC); 160 buf = kmalloc(buflen, GFP_ATOMIC);
165 161
@@ -208,8 +204,6 @@ static void heartbeat_onchannelcallback(void *context)
208 struct icmsg_hdr *icmsghdrp; 204 struct icmsg_hdr *icmsghdrp;
209 struct heartbeat_msg_data *heartbeat_msg; 205 struct heartbeat_msg_data *heartbeat_msg;
210 206
211 DPRINT_ENTER(VMBUS);
212
213 buflen = PAGE_SIZE; 207 buflen = PAGE_SIZE;
214 buf = kmalloc(buflen, GFP_ATOMIC); 208 buf = kmalloc(buflen, GFP_ATOMIC);
215 209
diff --git a/drivers/staging/hv/logging.h b/drivers/staging/hv/logging.h
index ad4cfcfb7b1..090cda7d027 100644
--- a/drivers/staging/hv/logging.h
+++ b/drivers/staging/hv/logging.h
@@ -93,19 +93,12 @@ extern unsigned int vmbus_loglevel;
93 } while (0) 93 } while (0)
94 94
95#ifdef DEBUG 95#ifdef DEBUG
96#define DPRINT_ENTER(mod) do {\
97 if ((mod & (HIWORD(vmbus_loglevel))) && \
98 (DEBUG_LVL_ENTEREXIT <= LOWORD(vmbus_loglevel))) \
99 printk(KERN_DEBUG "["#mod"]: %s() enter\n", __func__);\
100 } while (0)
101
102#define DPRINT_EXIT(mod) do {\ 96#define DPRINT_EXIT(mod) do {\
103 if ((mod & (HIWORD(vmbus_loglevel))) && \ 97 if ((mod & (HIWORD(vmbus_loglevel))) && \
104 (DEBUG_LVL_ENTEREXIT <= LOWORD(vmbus_loglevel))) \ 98 (DEBUG_LVL_ENTEREXIT <= LOWORD(vmbus_loglevel))) \
105 printk(KERN_DEBUG "["#mod"]: %s() exit\n", __func__);\ 99 printk(KERN_DEBUG "["#mod"]: %s() exit\n", __func__);\
106 } while (0) 100 } while (0)
107#else 101#else
108#define DPRINT_ENTER(mod)
109#define DPRINT_EXIT(mod) 102#define DPRINT_EXIT(mod)
110#endif 103#endif
111 104
diff --git a/drivers/staging/hv/netvsc.c b/drivers/staging/hv/netvsc.c
index ba15059c45b..3f79f04a206 100644
--- a/drivers/staging/hv/netvsc.c
+++ b/drivers/staging/hv/netvsc.c
@@ -174,8 +174,6 @@ int NetVscInitialize(struct hv_driver *drv)
174{ 174{
175 struct netvsc_driver *driver = (struct netvsc_driver *)drv; 175 struct netvsc_driver *driver = (struct netvsc_driver *)drv;
176 176
177 DPRINT_ENTER(NETVSC);
178
179 DPRINT_DBG(NETVSC, "sizeof(struct hv_netvsc_packet)=%zd, " 177 DPRINT_DBG(NETVSC, "sizeof(struct hv_netvsc_packet)=%zd, "
180 "sizeof(struct nvsp_message)=%zd, " 178 "sizeof(struct nvsp_message)=%zd, "
181 "sizeof(struct vmtransfer_page_packet_header)=%zd", 179 "sizeof(struct vmtransfer_page_packet_header)=%zd",
@@ -214,8 +212,6 @@ static int NetVscInitializeReceiveBufferWithNetVsp(struct hv_device *Device)
214 struct netvsc_device *netDevice; 212 struct netvsc_device *netDevice;
215 struct nvsp_message *initPacket; 213 struct nvsp_message *initPacket;
216 214
217 DPRINT_ENTER(NETVSC);
218
219 netDevice = GetOutboundNetDevice(Device); 215 netDevice = GetOutboundNetDevice(Device);
220 if (!netDevice) { 216 if (!netDevice) {
221 DPRINT_ERR(NETVSC, "unable to get net device..." 217 DPRINT_ERR(NETVSC, "unable to get net device..."
@@ -345,8 +341,6 @@ static int NetVscInitializeSendBufferWithNetVsp(struct hv_device *Device)
345 struct netvsc_device *netDevice; 341 struct netvsc_device *netDevice;
346 struct nvsp_message *initPacket; 342 struct nvsp_message *initPacket;
347 343
348 DPRINT_ENTER(NETVSC);
349
350 netDevice = GetOutboundNetDevice(Device); 344 netDevice = GetOutboundNetDevice(Device);
351 if (!netDevice) { 345 if (!netDevice) {
352 DPRINT_ERR(NETVSC, "unable to get net device..." 346 DPRINT_ERR(NETVSC, "unable to get net device..."
@@ -443,8 +437,6 @@ static int NetVscDestroyReceiveBuffer(struct netvsc_device *NetDevice)
443 struct nvsp_message *revokePacket; 437 struct nvsp_message *revokePacket;
444 int ret = 0; 438 int ret = 0;
445 439
446 DPRINT_ENTER(NETVSC);
447
448 /* 440 /*
449 * If we got a section count, it means we received a 441 * If we got a section count, it means we received a
450 * SendReceiveBufferComplete msg (ie sent 442 * SendReceiveBufferComplete msg (ie sent
@@ -523,8 +515,6 @@ static int NetVscDestroySendBuffer(struct netvsc_device *NetDevice)
523 struct nvsp_message *revokePacket; 515 struct nvsp_message *revokePacket;
524 int ret = 0; 516 int ret = 0;
525 517
526 DPRINT_ENTER(NETVSC);
527
528 /* 518 /*
529 * If we got a section count, it means we received a 519 * If we got a section count, it means we received a
530 * SendReceiveBufferComplete msg (ie sent 520 * SendReceiveBufferComplete msg (ie sent
@@ -600,8 +590,6 @@ static int NetVscConnectToVsp(struct hv_device *Device)
600 struct nvsp_message *initPacket; 590 struct nvsp_message *initPacket;
601 int ndisVersion; 591 int ndisVersion;
602 592
603 DPRINT_ENTER(NETVSC);
604
605 netDevice = GetOutboundNetDevice(Device); 593 netDevice = GetOutboundNetDevice(Device);
606 if (!netDevice) { 594 if (!netDevice) {
607 DPRINT_ERR(NETVSC, "unable to get net device..." 595 DPRINT_ERR(NETVSC, "unable to get net device..."
@@ -702,8 +690,6 @@ Cleanup:
702 690
703static void NetVscDisconnectFromVsp(struct netvsc_device *NetDevice) 691static void NetVscDisconnectFromVsp(struct netvsc_device *NetDevice)
704{ 692{
705 DPRINT_ENTER(NETVSC);
706
707 NetVscDestroyReceiveBuffer(NetDevice); 693 NetVscDestroyReceiveBuffer(NetDevice);
708 NetVscDestroySendBuffer(NetDevice); 694 NetVscDestroySendBuffer(NetDevice);
709 695
@@ -722,8 +708,6 @@ static int NetVscOnDeviceAdd(struct hv_device *Device, void *AdditionalInfo)
722 struct netvsc_driver *netDriver = 708 struct netvsc_driver *netDriver =
723 (struct netvsc_driver *)Device->Driver; 709 (struct netvsc_driver *)Device->Driver;
724 710
725 DPRINT_ENTER(NETVSC);
726
727 netDevice = AllocNetDevice(Device); 711 netDevice = AllocNetDevice(Device);
728 if (!netDevice) { 712 if (!netDevice) {
729 ret = -1; 713 ret = -1;
@@ -824,8 +808,6 @@ static int NetVscOnDeviceRemove(struct hv_device *Device)
824 struct netvsc_device *netDevice; 808 struct netvsc_device *netDevice;
825 struct hv_netvsc_packet *netvscPacket, *pos; 809 struct hv_netvsc_packet *netvscPacket, *pos;
826 810
827 DPRINT_ENTER(NETVSC);
828
829 DPRINT_INFO(NETVSC, "Disabling outbound traffic on net device (%p)...", 811 DPRINT_INFO(NETVSC, "Disabling outbound traffic on net device (%p)...",
830 Device->Extension); 812 Device->Extension);
831 813
@@ -878,7 +860,6 @@ static int NetVscOnDeviceRemove(struct hv_device *Device)
878 */ 860 */
879static void NetVscOnCleanup(struct hv_driver *drv) 861static void NetVscOnCleanup(struct hv_driver *drv)
880{ 862{
881 DPRINT_ENTER(NETVSC);
882 DPRINT_EXIT(NETVSC); 863 DPRINT_EXIT(NETVSC);
883} 864}
884 865
@@ -889,8 +870,6 @@ static void NetVscOnSendCompletion(struct hv_device *Device,
889 struct nvsp_message *nvspPacket; 870 struct nvsp_message *nvspPacket;
890 struct hv_netvsc_packet *nvscPacket; 871 struct hv_netvsc_packet *nvscPacket;
891 872
892 DPRINT_ENTER(NETVSC);
893
894 netDevice = GetInboundNetDevice(Device); 873 netDevice = GetInboundNetDevice(Device);
895 if (!netDevice) { 874 if (!netDevice) {
896 DPRINT_ERR(NETVSC, "unable to get net device..." 875 DPRINT_ERR(NETVSC, "unable to get net device..."
@@ -940,8 +919,6 @@ static int NetVscOnSend(struct hv_device *Device,
940 919
941 struct nvsp_message sendMessage; 920 struct nvsp_message sendMessage;
942 921
943 DPRINT_ENTER(NETVSC);
944
945 netDevice = GetOutboundNetDevice(Device); 922 netDevice = GetOutboundNetDevice(Device);
946 if (!netDevice) { 923 if (!netDevice) {
947 DPRINT_ERR(NETVSC, "net device (%p) shutting down..." 924 DPRINT_ERR(NETVSC, "net device (%p) shutting down..."
@@ -1007,8 +984,6 @@ static void NetVscOnReceive(struct hv_device *Device,
1007 unsigned long flags; 984 unsigned long flags;
1008 LIST_HEAD(listHead); 985 LIST_HEAD(listHead);
1009 986
1010 DPRINT_ENTER(NETVSC);
1011
1012 netDevice = GetInboundNetDevice(Device); 987 netDevice = GetInboundNetDevice(Device);
1013 if (!netDevice) { 988 if (!netDevice) {
1014 DPRINT_ERR(NETVSC, "unable to get net device..." 989 DPRINT_ERR(NETVSC, "unable to get net device..."
@@ -1248,8 +1223,6 @@ static void NetVscOnReceiveCompletion(void *Context)
1248 bool fSendReceiveComp = false; 1223 bool fSendReceiveComp = false;
1249 unsigned long flags; 1224 unsigned long flags;
1250 1225
1251 DPRINT_ENTER(NETVSC);
1252
1253 /* ASSERT(packet->XferPagePacket); */ 1226 /* ASSERT(packet->XferPagePacket); */
1254 1227
1255 /* 1228 /*
@@ -1307,9 +1280,6 @@ static void NetVscOnChannelCallback(void *Context)
1307 unsigned char *buffer; 1280 unsigned char *buffer;
1308 int bufferlen = NETVSC_PACKET_SIZE; 1281 int bufferlen = NETVSC_PACKET_SIZE;
1309 1282
1310
1311 DPRINT_ENTER(NETVSC);
1312
1313 /* ASSERT(device); */ 1283 /* ASSERT(device); */
1314 1284
1315 packet = kzalloc(NETVSC_PACKET_SIZE * sizeof(unsigned char), 1285 packet = kzalloc(NETVSC_PACKET_SIZE * sizeof(unsigned char),
diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c
index 55b993298ff..c73fe95ad48 100644
--- a/drivers/staging/hv/netvsc_drv.c
+++ b/drivers/staging/hv/netvsc_drv.c
@@ -76,8 +76,6 @@ static int netvsc_open(struct net_device *net)
76 struct hv_device *device_obj = &net_device_ctx->device_ctx->device_obj; 76 struct hv_device *device_obj = &net_device_ctx->device_ctx->device_obj;
77 int ret = 0; 77 int ret = 0;
78 78
79 DPRINT_ENTER(NETVSC_DRV);
80
81 if (netif_carrier_ok(net)) { 79 if (netif_carrier_ok(net)) {
82 /* Open up the device */ 80 /* Open up the device */
83 ret = RndisFilterOnOpen(device_obj); 81 ret = RndisFilterOnOpen(device_obj);
@@ -102,8 +100,6 @@ static int netvsc_close(struct net_device *net)
102 struct hv_device *device_obj = &net_device_ctx->device_ctx->device_obj; 100 struct hv_device *device_obj = &net_device_ctx->device_ctx->device_obj;
103 int ret; 101 int ret;
104 102
105 DPRINT_ENTER(NETVSC_DRV);
106
107 netif_stop_queue(net); 103 netif_stop_queue(net);
108 104
109 ret = RndisFilterOnClose(device_obj); 105 ret = RndisFilterOnClose(device_obj);
@@ -121,8 +117,6 @@ static void netvsc_xmit_completion(void *context)
121 struct sk_buff *skb = (struct sk_buff *) 117 struct sk_buff *skb = (struct sk_buff *)
122 (unsigned long)packet->Completion.Send.SendCompletionTid; 118 (unsigned long)packet->Completion.Send.SendCompletionTid;
123 119
124 DPRINT_ENTER(NETVSC_DRV);
125
126 kfree(packet); 120 kfree(packet);
127 121
128 if (skb) { 122 if (skb) {
@@ -151,8 +145,6 @@ static int netvsc_start_xmit(struct sk_buff *skb, struct net_device *net)
151 int ret; 145 int ret;
152 unsigned int i, num_pages; 146 unsigned int i, num_pages;
153 147
154 DPRINT_ENTER(NETVSC_DRV);
155
156 DPRINT_DBG(NETVSC_DRV, "xmit packet - len %d data_len %d", 148 DPRINT_DBG(NETVSC_DRV, "xmit packet - len %d data_len %d",
157 skb->len, skb->data_len); 149 skb->len, skb->data_len);
158 150
@@ -238,8 +230,6 @@ static void netvsc_linkstatus_callback(struct hv_device *device_obj,
238 struct vm_device *device_ctx = to_vm_device(device_obj); 230 struct vm_device *device_ctx = to_vm_device(device_obj);
239 struct net_device *net = dev_get_drvdata(&device_ctx->device); 231 struct net_device *net = dev_get_drvdata(&device_ctx->device);
240 232
241 DPRINT_ENTER(NETVSC_DRV);
242
243 if (!net) { 233 if (!net) {
244 DPRINT_ERR(NETVSC_DRV, "got link status but net device " 234 DPRINT_ERR(NETVSC_DRV, "got link status but net device "
245 "not initialized yet"); 235 "not initialized yet");
@@ -270,8 +260,6 @@ static int netvsc_recv_callback(struct hv_device *device_obj,
270 int i; 260 int i;
271 unsigned long flags; 261 unsigned long flags;
272 262
273 DPRINT_ENTER(NETVSC_DRV);
274
275 if (!net) { 263 if (!net) {
276 DPRINT_ERR(NETVSC_DRV, "got receive callback but net device " 264 DPRINT_ERR(NETVSC_DRV, "got receive callback but net device "
277 "not initialized yet"); 265 "not initialized yet");
@@ -364,8 +352,6 @@ static int netvsc_probe(struct device *device)
364 struct netvsc_device_info device_info; 352 struct netvsc_device_info device_info;
365 int ret; 353 int ret;
366 354
367 DPRINT_ENTER(NETVSC_DRV);
368
369 if (!net_drv_obj->Base.OnDeviceAdd) 355 if (!net_drv_obj->Base.OnDeviceAdd)
370 return -1; 356 return -1;
371 357
@@ -438,8 +424,6 @@ static int netvsc_remove(struct device *device)
438 struct hv_device *device_obj = &device_ctx->device_obj; 424 struct hv_device *device_obj = &device_ctx->device_obj;
439 int ret; 425 int ret;
440 426
441 DPRINT_ENTER(NETVSC_DRV);
442
443 if (net == NULL) { 427 if (net == NULL) {
444 DPRINT_INFO(NETVSC, "no net device to remove"); 428 DPRINT_INFO(NETVSC, "no net device to remove");
445 DPRINT_EXIT(NETVSC_DRV); 429 DPRINT_EXIT(NETVSC_DRV);
@@ -488,8 +472,6 @@ static void netvsc_drv_exit(void)
488 struct device *current_dev; 472 struct device *current_dev;
489 int ret; 473 int ret;
490 474
491 DPRINT_ENTER(NETVSC_DRV);
492
493 while (1) { 475 while (1) {
494 current_dev = NULL; 476 current_dev = NULL;
495 477
@@ -526,8 +508,6 @@ static int netvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
526 struct driver_context *drv_ctx = &g_netvsc_drv.drv_ctx; 508 struct driver_context *drv_ctx = &g_netvsc_drv.drv_ctx;
527 int ret; 509 int ret;
528 510
529 DPRINT_ENTER(NETVSC_DRV);
530
531 vmbus_get_interface(&net_drv_obj->Base.VmbusChannelInterface); 511 vmbus_get_interface(&net_drv_obj->Base.VmbusChannelInterface);
532 512
533 net_drv_obj->RingBufferSize = ring_size * PAGE_SIZE; 513 net_drv_obj->RingBufferSize = ring_size * PAGE_SIZE;
@@ -570,7 +550,6 @@ static int __init netvsc_init(void)
570{ 550{
571 int ret; 551 int ret;
572 552
573 DPRINT_ENTER(NETVSC_DRV);
574 DPRINT_INFO(NETVSC_DRV, "Netvsc initializing...."); 553 DPRINT_INFO(NETVSC_DRV, "Netvsc initializing....");
575 554
576 if (!dmi_check_system(hv_netvsc_dmi_table)) 555 if (!dmi_check_system(hv_netvsc_dmi_table))
@@ -585,7 +564,6 @@ static int __init netvsc_init(void)
585 564
586static void __exit netvsc_exit(void) 565static void __exit netvsc_exit(void)
587{ 566{
588 DPRINT_ENTER(NETVSC_DRV);
589 netvsc_drv_exit(); 567 netvsc_drv_exit();
590 DPRINT_EXIT(NETVSC_DRV); 568 DPRINT_EXIT(NETVSC_DRV);
591} 569}
diff --git a/drivers/staging/hv/ring_buffer.c b/drivers/staging/hv/ring_buffer.c
index ae2a10e24d9..bac8056fab2 100644
--- a/drivers/staging/hv/ring_buffer.c
+++ b/drivers/staging/hv/ring_buffer.c
@@ -352,8 +352,6 @@ int RingBufferWrite(RING_BUFFER_INFO *OutRingInfo,
352 u64 prevIndices = 0; 352 u64 prevIndices = 0;
353 unsigned long flags; 353 unsigned long flags;
354 354
355 DPRINT_ENTER(VMBUS);
356
357 for_each_sg(sglist, sg, sgcount, i) 355 for_each_sg(sglist, sg, sgcount, i)
358 { 356 {
359 totalBytesToWrite += sg->length; 357 totalBytesToWrite += sg->length;
diff --git a/drivers/staging/hv/rndis_filter.c b/drivers/staging/hv/rndis_filter.c
index 5edf0853c6a..6640682d36b 100644
--- a/drivers/staging/hv/rndis_filter.c
+++ b/drivers/staging/hv/rndis_filter.c
@@ -244,8 +244,6 @@ static int RndisFilterSendRequest(struct rndis_device *Device,
244 int ret; 244 int ret;
245 struct hv_netvsc_packet *packet; 245 struct hv_netvsc_packet *packet;
246 246
247 DPRINT_ENTER(NETVSC);
248
249 /* Setup the packet to send it */ 247 /* Setup the packet to send it */
250 packet = &Request->Packet; 248 packet = &Request->Packet;
251 249
@@ -276,8 +274,6 @@ static void RndisFilterReceiveResponse(struct rndis_device *Device,
276 bool found = false; 274 bool found = false;
277 unsigned long flags; 275 unsigned long flags;
278 276
279 DPRINT_ENTER(NETVSC);
280
281 spin_lock_irqsave(&Device->request_lock, flags); 277 spin_lock_irqsave(&Device->request_lock, flags);
282 list_for_each_entry(request, &Device->RequestList, ListEntry) { 278 list_for_each_entry(request, &Device->RequestList, ListEntry) {
283 /* 279 /*
@@ -353,8 +349,6 @@ static void RndisFilterReceiveData(struct rndis_device *Device,
353 struct rndis_packet *rndisPacket; 349 struct rndis_packet *rndisPacket;
354 u32 dataOffset; 350 u32 dataOffset;
355 351
356 DPRINT_ENTER(NETVSC);
357
358 /* empty ethernet frame ?? */ 352 /* empty ethernet frame ?? */
359 /* ASSERT(Packet->PageBuffers[0].Length > */ 353 /* ASSERT(Packet->PageBuffers[0].Length > */
360 /* RNDIS_MESSAGE_SIZE(struct rndis_packet)); */ 354 /* RNDIS_MESSAGE_SIZE(struct rndis_packet)); */
@@ -389,8 +383,6 @@ static int RndisFilterOnReceive(struct hv_device *Device,
389 struct rndis_message rndisMessage; 383 struct rndis_message rndisMessage;
390 struct rndis_message *rndisHeader; 384 struct rndis_message *rndisHeader;
391 385
392 DPRINT_ENTER(NETVSC);
393
394 if (!netDevice) 386 if (!netDevice)
395 return -EINVAL; 387 return -EINVAL;
396 388
@@ -492,8 +484,6 @@ static int RndisFilterQueryDevice(struct rndis_device *Device, u32 Oid,
492 struct rndis_query_complete *queryComplete; 484 struct rndis_query_complete *queryComplete;
493 int ret = 0; 485 int ret = 0;
494 486
495 DPRINT_ENTER(NETVSC);
496
497 if (!Result) 487 if (!Result)
498 return -EINVAL; 488 return -EINVAL;
499 489
@@ -568,8 +558,6 @@ static int RndisFilterSetPacketFilter(struct rndis_device *Device,
568 u32 status; 558 u32 status;
569 int ret; 559 int ret;
570 560
571 DPRINT_ENTER(NETVSC);
572
573 /* ASSERT(RNDIS_MESSAGE_SIZE(struct rndis_set_request) + sizeof(u32) <= */ 561 /* ASSERT(RNDIS_MESSAGE_SIZE(struct rndis_set_request) + sizeof(u32) <= */
574 /* sizeof(struct rndis_message)); */ 562 /* sizeof(struct rndis_message)); */
575 563
@@ -621,8 +609,6 @@ Exit:
621 609
622int RndisFilterInit(struct netvsc_driver *Driver) 610int RndisFilterInit(struct netvsc_driver *Driver)
623{ 611{
624 DPRINT_ENTER(NETVSC);
625
626 DPRINT_DBG(NETVSC, "sizeof(struct rndis_filter_packet) == %zd", 612 DPRINT_DBG(NETVSC, "sizeof(struct rndis_filter_packet) == %zd",
627 sizeof(struct rndis_filter_packet)); 613 sizeof(struct rndis_filter_packet));
628 614
@@ -671,8 +657,6 @@ static int RndisFilterInitDevice(struct rndis_device *Device)
671 u32 status; 657 u32 status;
672 int ret; 658 int ret;
673 659
674 DPRINT_ENTER(NETVSC);
675
676 request = GetRndisRequest(Device, REMOTE_NDIS_INITIALIZE_MSG, 660 request = GetRndisRequest(Device, REMOTE_NDIS_INITIALIZE_MSG,
677 RNDIS_MESSAGE_SIZE(struct rndis_initialize_request)); 661 RNDIS_MESSAGE_SIZE(struct rndis_initialize_request));
678 if (!request) { 662 if (!request) {
@@ -720,8 +704,6 @@ static void RndisFilterHaltDevice(struct rndis_device *Device)
720 struct rndis_request *request; 704 struct rndis_request *request;
721 struct rndis_halt_request *halt; 705 struct rndis_halt_request *halt;
722 706
723 DPRINT_ENTER(NETVSC);
724
725 /* Attempt to do a rndis device halt */ 707 /* Attempt to do a rndis device halt */
726 request = GetRndisRequest(Device, REMOTE_NDIS_HALT_MSG, 708 request = GetRndisRequest(Device, REMOTE_NDIS_HALT_MSG,
727 RNDIS_MESSAGE_SIZE(struct rndis_halt_request)); 709 RNDIS_MESSAGE_SIZE(struct rndis_halt_request));
@@ -748,8 +730,6 @@ static int RndisFilterOpenDevice(struct rndis_device *Device)
748{ 730{
749 int ret; 731 int ret;
750 732
751 DPRINT_ENTER(NETVSC);
752
753 if (Device->State != RNDIS_DEV_INITIALIZED) 733 if (Device->State != RNDIS_DEV_INITIALIZED)
754 return 0; 734 return 0;
755 735
@@ -768,8 +748,6 @@ static int RndisFilterCloseDevice(struct rndis_device *Device)
768{ 748{
769 int ret; 749 int ret;
770 750
771 DPRINT_ENTER(NETVSC);
772
773 if (Device->State != RNDIS_DEV_DATAINITIALIZED) 751 if (Device->State != RNDIS_DEV_DATAINITIALIZED)
774 return 0; 752 return 0;
775 753
@@ -790,8 +768,6 @@ static int RndisFilterOnDeviceAdd(struct hv_device *Device,
790 struct rndis_device *rndisDevice; 768 struct rndis_device *rndisDevice;
791 struct netvsc_device_info *deviceInfo = AdditionalInfo; 769 struct netvsc_device_info *deviceInfo = AdditionalInfo;
792 770
793 DPRINT_ENTER(NETVSC);
794
795 rndisDevice = GetRndisDevice(); 771 rndisDevice = GetRndisDevice();
796 if (!rndisDevice) { 772 if (!rndisDevice) {
797 DPRINT_EXIT(NETVSC); 773 DPRINT_EXIT(NETVSC);
@@ -859,8 +835,6 @@ static int RndisFilterOnDeviceRemove(struct hv_device *Device)
859 struct netvsc_device *netDevice = Device->Extension; 835 struct netvsc_device *netDevice = Device->Extension;
860 struct rndis_device *rndisDevice = netDevice->Extension; 836 struct rndis_device *rndisDevice = netDevice->Extension;
861 837
862 DPRINT_ENTER(NETVSC);
863
864 /* Halt and release the rndis device */ 838 /* Halt and release the rndis device */
865 RndisFilterHaltDevice(rndisDevice); 839 RndisFilterHaltDevice(rndisDevice);
866 840
@@ -877,8 +851,6 @@ static int RndisFilterOnDeviceRemove(struct hv_device *Device)
877 851
878static void RndisFilterOnCleanup(struct hv_driver *Driver) 852static void RndisFilterOnCleanup(struct hv_driver *Driver)
879{ 853{
880 DPRINT_ENTER(NETVSC);
881
882 DPRINT_EXIT(NETVSC); 854 DPRINT_EXIT(NETVSC);
883} 855}
884 856
@@ -887,8 +859,6 @@ int RndisFilterOnOpen(struct hv_device *Device)
887 int ret; 859 int ret;
888 struct netvsc_device *netDevice = Device->Extension; 860 struct netvsc_device *netDevice = Device->Extension;
889 861
890 DPRINT_ENTER(NETVSC);
891
892 if (!netDevice) 862 if (!netDevice)
893 return -EINVAL; 863 return -EINVAL;
894 864
@@ -904,8 +874,6 @@ int RndisFilterOnClose(struct hv_device *Device)
904 int ret; 874 int ret;
905 struct netvsc_device *netDevice = Device->Extension; 875 struct netvsc_device *netDevice = Device->Extension;
906 876
907 DPRINT_ENTER(NETVSC);
908
909 if (!netDevice) 877 if (!netDevice)
910 return -EINVAL; 878 return -EINVAL;
911 879
@@ -925,8 +893,6 @@ static int RndisFilterOnSend(struct hv_device *Device,
925 struct rndis_packet *rndisPacket; 893 struct rndis_packet *rndisPacket;
926 u32 rndisMessageSize; 894 u32 rndisMessageSize;
927 895
928 DPRINT_ENTER(NETVSC);
929
930 /* Add the rndis header */ 896 /* Add the rndis header */
931 filterPacket = (struct rndis_filter_packet *)Packet->Extension; 897 filterPacket = (struct rndis_filter_packet *)Packet->Extension;
932 /* ASSERT(filterPacket); */ 898 /* ASSERT(filterPacket); */
@@ -980,8 +946,6 @@ static void RndisFilterOnSendCompletion(void *Context)
980{ 946{
981 struct rndis_filter_packet *filterPacket = Context; 947 struct rndis_filter_packet *filterPacket = Context;
982 948
983 DPRINT_ENTER(NETVSC);
984
985 /* Pass it back to the original handler */ 949 /* Pass it back to the original handler */
986 filterPacket->OnCompletion(filterPacket->CompletionContext); 950 filterPacket->OnCompletion(filterPacket->CompletionContext);
987 951
@@ -991,8 +955,6 @@ static void RndisFilterOnSendCompletion(void *Context)
991 955
992static void RndisFilterOnSendRequestCompletion(void *Context) 956static void RndisFilterOnSendRequestCompletion(void *Context)
993{ 957{
994 DPRINT_ENTER(NETVSC);
995
996 /* Noop */ 958 /* Noop */
997 DPRINT_EXIT(NETVSC); 959 DPRINT_EXIT(NETVSC);
998} 960}
diff --git a/drivers/staging/hv/storvsc.c b/drivers/staging/hv/storvsc.c
index 27a276e08ee..7a206858cb1 100644
--- a/drivers/staging/hv/storvsc.c
+++ b/drivers/staging/hv/storvsc.c
@@ -356,8 +356,6 @@ static void StorVscOnIOCompletion(struct hv_device *Device,
356 struct hv_storvsc_request *request; 356 struct hv_storvsc_request *request;
357 struct storvsc_device *storDevice; 357 struct storvsc_device *storDevice;
358 358
359 DPRINT_ENTER(STORVSC);
360
361 storDevice = MustGetStorDevice(Device); 359 storDevice = MustGetStorDevice(Device);
362 if (!storDevice) { 360 if (!storDevice) {
363 DPRINT_ERR(STORVSC, "unable to get stor device..." 361 DPRINT_ERR(STORVSC, "unable to get stor device..."
@@ -449,8 +447,6 @@ static void StorVscOnChannelCallback(void *context)
449 struct storvsc_request_extension *request; 447 struct storvsc_request_extension *request;
450 int ret; 448 int ret;
451 449
452 DPRINT_ENTER(STORVSC);
453
454 /* ASSERT(device); */ 450 /* ASSERT(device); */
455 451
456 storDevice = MustGetStorDevice(device); 452 storDevice = MustGetStorDevice(device);
@@ -547,8 +543,6 @@ static int StorVscOnDeviceAdd(struct hv_device *Device, void *AdditionalInfo)
547 struct storvsc_device_info *deviceInfo; 543 struct storvsc_device_info *deviceInfo;
548 int ret = 0; 544 int ret = 0;
549 545
550 DPRINT_ENTER(STORVSC);
551
552 deviceInfo = (struct storvsc_device_info *)AdditionalInfo; 546 deviceInfo = (struct storvsc_device_info *)AdditionalInfo;
553 storDevice = AllocStorDevice(Device); 547 storDevice = AllocStorDevice(Device);
554 if (!storDevice) { 548 if (!storDevice) {
@@ -596,8 +590,6 @@ static int StorVscOnDeviceRemove(struct hv_device *Device)
596{ 590{
597 struct storvsc_device *storDevice; 591 struct storvsc_device *storDevice;
598 592
599 DPRINT_ENTER(STORVSC);
600
601 DPRINT_INFO(STORVSC, "disabling storage device (%p)...", 593 DPRINT_INFO(STORVSC, "disabling storage device (%p)...",
602 Device->Extension); 594 Device->Extension);
603 595
@@ -637,8 +629,6 @@ int StorVscOnHostReset(struct hv_device *Device)
637 struct vstor_packet *vstorPacket; 629 struct vstor_packet *vstorPacket;
638 int ret; 630 int ret;
639 631
640 DPRINT_ENTER(STORVSC);
641
642 DPRINT_INFO(STORVSC, "resetting host adapter..."); 632 DPRINT_INFO(STORVSC, "resetting host adapter...");
643 633
644 storDevice = GetStorDevice(Device); 634 storDevice = GetStorDevice(Device);
@@ -702,8 +692,6 @@ static int StorVscOnIORequest(struct hv_device *Device,
702 struct vstor_packet *vstorPacket; 692 struct vstor_packet *vstorPacket;
703 int ret = 0; 693 int ret = 0;
704 694
705 DPRINT_ENTER(STORVSC);
706
707 requestExtension = 695 requestExtension =
708 (struct storvsc_request_extension *)Request->Extension; 696 (struct storvsc_request_extension *)Request->Extension;
709 vstorPacket = &requestExtension->VStorPacket; 697 vstorPacket = &requestExtension->VStorPacket;
@@ -796,7 +784,6 @@ static int StorVscOnIORequest(struct hv_device *Device,
796 */ 784 */
797static void StorVscOnCleanup(struct hv_driver *Driver) 785static void StorVscOnCleanup(struct hv_driver *Driver)
798{ 786{
799 DPRINT_ENTER(STORVSC);
800 DPRINT_EXIT(STORVSC); 787 DPRINT_EXIT(STORVSC);
801} 788}
802 789
@@ -807,8 +794,6 @@ int StorVscInitialize(struct hv_driver *Driver)
807{ 794{
808 struct storvsc_driver_object *storDriver; 795 struct storvsc_driver_object *storDriver;
809 796
810 DPRINT_ENTER(STORVSC);
811
812 storDriver = (struct storvsc_driver_object *)Driver; 797 storDriver = (struct storvsc_driver_object *)Driver;
813 798
814 DPRINT_DBG(STORVSC, "sizeof(STORVSC_REQUEST)=%zd " 799 DPRINT_DBG(STORVSC, "sizeof(STORVSC_REQUEST)=%zd "
diff --git a/drivers/staging/hv/storvsc_drv.c b/drivers/staging/hv/storvsc_drv.c
index d22e35f598b..16d468529cd 100644
--- a/drivers/staging/hv/storvsc_drv.c
+++ b/drivers/staging/hv/storvsc_drv.c
@@ -141,8 +141,6 @@ static int storvsc_drv_init(int (*drv_init)(struct hv_driver *drv))
141 struct storvsc_driver_object *storvsc_drv_obj = &g_storvsc_drv.drv_obj; 141 struct storvsc_driver_object *storvsc_drv_obj = &g_storvsc_drv.drv_obj;
142 struct driver_context *drv_ctx = &g_storvsc_drv.drv_ctx; 142 struct driver_context *drv_ctx = &g_storvsc_drv.drv_ctx;
143 143
144 DPRINT_ENTER(STORVSC_DRV);
145
146 vmbus_get_interface(&storvsc_drv_obj->Base.VmbusChannelInterface); 144 vmbus_get_interface(&storvsc_drv_obj->Base.VmbusChannelInterface);
147 145
148 storvsc_drv_obj->RingBufferSize = storvsc_ringbuffer_size; 146 storvsc_drv_obj->RingBufferSize = storvsc_ringbuffer_size;
@@ -194,8 +192,6 @@ static void storvsc_drv_exit(void)
194 struct device *current_dev = NULL; 192 struct device *current_dev = NULL;
195 int ret; 193 int ret;
196 194
197 DPRINT_ENTER(STORVSC_DRV);
198
199 while (1) { 195 while (1) {
200 current_dev = NULL; 196 current_dev = NULL;
201 197
@@ -243,8 +239,6 @@ static int storvsc_probe(struct device *device)
243 struct host_device_context *host_device_ctx; 239 struct host_device_context *host_device_ctx;
244 struct storvsc_device_info device_info; 240 struct storvsc_device_info device_info;
245 241
246 DPRINT_ENTER(STORVSC_DRV);
247
248 if (!storvsc_drv_obj->Base.OnDeviceAdd) 242 if (!storvsc_drv_obj->Base.OnDeviceAdd)
249 return -1; 243 return -1;
250 244
@@ -340,8 +334,6 @@ static int storvsc_remove(struct device *device)
340 (struct host_device_context *)host->hostdata; 334 (struct host_device_context *)host->hostdata;
341 335
342 336
343 DPRINT_ENTER(STORVSC_DRV);
344
345 if (!storvsc_drv_obj->Base.OnDeviceRemove) { 337 if (!storvsc_drv_obj->Base.OnDeviceRemove) {
346 DPRINT_EXIT(STORVSC_DRV); 338 DPRINT_EXIT(STORVSC_DRV);
347 return -1; 339 return -1;
@@ -393,8 +385,6 @@ static void storvsc_commmand_completion(struct hv_storvsc_request *request)
393 /* (unsigned long)cmd_request); */ 385 /* (unsigned long)cmd_request); */
394 /* ASSERT(scmnd->scsi_done); */ 386 /* ASSERT(scmnd->scsi_done); */
395 387
396 DPRINT_ENTER(STORVSC_DRV);
397
398 if (cmd_request->bounce_sgl_count) { 388 if (cmd_request->bounce_sgl_count) {
399 /* using bounce buffer */ 389 /* using bounce buffer */
400 /* printk("copy_from_bounce_buffer\n"); */ 390 /* printk("copy_from_bounce_buffer\n"); */
@@ -647,8 +637,6 @@ static int storvsc_queuecommand(struct scsi_cmnd *scmnd,
647 int i; 637 int i;
648 struct scatterlist *sgl; 638 struct scatterlist *sgl;
649 639
650 DPRINT_ENTER(STORVSC_DRV);
651
652 DPRINT_DBG(STORVSC_DRV, "scmnd %p dir %d, use_sg %d buf %p len %d " 640 DPRINT_DBG(STORVSC_DRV, "scmnd %p dir %d, use_sg %d buf %p len %d "
653 "queue depth %d tagged %d", scmnd, scmnd->sc_data_direction, 641 "queue depth %d tagged %d", scmnd, scmnd->sc_data_direction,
654 scsi_sg_count(scmnd), scsi_sglist(scmnd), 642 scsi_sg_count(scmnd), scsi_sglist(scmnd),
@@ -873,8 +861,6 @@ static int storvsc_host_reset_handler(struct scsi_cmnd *scmnd)
873 (struct host_device_context *)scmnd->device->host->hostdata; 861 (struct host_device_context *)scmnd->device->host->hostdata;
874 struct vm_device *device_ctx = host_device_ctx->device_ctx; 862 struct vm_device *device_ctx = host_device_ctx->device_ctx;
875 863
876 DPRINT_ENTER(STORVSC_DRV);
877
878 DPRINT_INFO(STORVSC_DRV, "sdev (%p) dev obj (%p) - host resetting...", 864 DPRINT_INFO(STORVSC_DRV, "sdev (%p) dev obj (%p) - host resetting...",
879 scmnd->device, &device_ctx->device_obj); 865 scmnd->device, &device_ctx->device_obj);
880 866
@@ -977,7 +963,6 @@ static int __init storvsc_init(void)
977{ 963{
978 int ret; 964 int ret;
979 965
980 DPRINT_ENTER(STORVSC_DRV);
981 DPRINT_INFO(STORVSC_DRV, "Storvsc initializing...."); 966 DPRINT_INFO(STORVSC_DRV, "Storvsc initializing....");
982 ret = storvsc_drv_init(StorVscInitialize); 967 ret = storvsc_drv_init(StorVscInitialize);
983 DPRINT_EXIT(STORVSC_DRV); 968 DPRINT_EXIT(STORVSC_DRV);
@@ -986,9 +971,7 @@ static int __init storvsc_init(void)
986 971
987static void __exit storvsc_exit(void) 972static void __exit storvsc_exit(void)
988{ 973{
989 DPRINT_ENTER(STORVSC_DRV);
990 storvsc_drv_exit(); 974 storvsc_drv_exit();
991 DPRINT_ENTER(STORVSC_DRV);
992} 975}
993 976
994MODULE_LICENSE("GPL"); 977MODULE_LICENSE("GPL");
diff --git a/drivers/staging/hv/vmbus.c b/drivers/staging/hv/vmbus.c
index 007543bdb41..f389c3c290f 100644
--- a/drivers/staging/hv/vmbus.c
+++ b/drivers/staging/hv/vmbus.c
@@ -57,7 +57,6 @@ static struct hv_device *gDevice; /* vmbus root device */
57 */ 57 */
58static void VmbusGetChannelOffers(void) 58static void VmbusGetChannelOffers(void)
59{ 59{
60 DPRINT_ENTER(VMBUS);
61 VmbusChannelRequestOffers(); 60 VmbusChannelRequestOffers();
62 DPRINT_EXIT(VMBUS); 61 DPRINT_EXIT(VMBUS);
63} 62}
@@ -120,8 +119,6 @@ static int VmbusOnDeviceAdd(struct hv_device *dev, void *AdditionalInfo)
120 u32 *irqvector = AdditionalInfo; 119 u32 *irqvector = AdditionalInfo;
121 int ret; 120 int ret;
122 121
123 DPRINT_ENTER(VMBUS);
124
125 gDevice = dev; 122 gDevice = dev;
126 123
127 memcpy(&gDevice->deviceType, &gVmbusDeviceType, sizeof(struct hv_guid)); 124 memcpy(&gDevice->deviceType, &gVmbusDeviceType, sizeof(struct hv_guid));
@@ -148,7 +145,6 @@ static int VmbusOnDeviceRemove(struct hv_device *dev)
148{ 145{
149 int ret = 0; 146 int ret = 0;
150 147
151 DPRINT_ENTER(VMBUS);
152 VmbusChannelReleaseUnattachedChannels(); 148 VmbusChannelReleaseUnattachedChannels();
153 VmbusDisconnect(); 149 VmbusDisconnect();
154 on_each_cpu(HvSynicCleanup, NULL, 1); 150 on_each_cpu(HvSynicCleanup, NULL, 1);
@@ -164,7 +160,6 @@ static void VmbusOnCleanup(struct hv_driver *drv)
164{ 160{
165 /* struct vmbus_driver *driver = (struct vmbus_driver *)drv; */ 161 /* struct vmbus_driver *driver = (struct vmbus_driver *)drv; */
166 162
167 DPRINT_ENTER(VMBUS);
168 HvCleanup(); 163 HvCleanup();
169 DPRINT_EXIT(VMBUS); 164 DPRINT_EXIT(VMBUS);
170} 165}
@@ -239,8 +234,6 @@ static int VmbusOnISR(struct hv_driver *drv)
239 page_addr = gHvContext.synICMessagePage[cpu]; 234 page_addr = gHvContext.synICMessagePage[cpu];
240 msg = (struct hv_message *)page_addr + VMBUS_MESSAGE_SINT; 235 msg = (struct hv_message *)page_addr + VMBUS_MESSAGE_SINT;
241 236
242 DPRINT_ENTER(VMBUS);
243
244 /* Check if there are actual msgs to be process */ 237 /* Check if there are actual msgs to be process */
245 if (msg->Header.MessageType != HvMessageTypeNone) { 238 if (msg->Header.MessageType != HvMessageTypeNone) {
246 DPRINT_DBG(VMBUS, "received msg type %d size %d", 239 DPRINT_DBG(VMBUS, "received msg type %d size %d",
@@ -271,8 +264,6 @@ int VmbusInitialize(struct hv_driver *drv)
271 struct vmbus_driver *driver = (struct vmbus_driver *)drv; 264 struct vmbus_driver *driver = (struct vmbus_driver *)drv;
272 int ret; 265 int ret;
273 266
274 DPRINT_ENTER(VMBUS);
275
276 DPRINT_INFO(VMBUS, "+++++++ HV Driver version = %s +++++++", 267 DPRINT_INFO(VMBUS, "+++++++ HV Driver version = %s +++++++",
277 HV_DRV_VERSION); 268 HV_DRV_VERSION);
278 DPRINT_INFO(VMBUS, "+++++++ Vmbus supported version = %d +++++++", 269 DPRINT_INFO(VMBUS, "+++++++ Vmbus supported version = %d +++++++",
diff --git a/drivers/staging/hv/vmbus_drv.c b/drivers/staging/hv/vmbus_drv.c
index 4f6f64031f8..13003fcf2e2 100644
--- a/drivers/staging/hv/vmbus_drv.c
+++ b/drivers/staging/hv/vmbus_drv.c
@@ -253,8 +253,6 @@ static int vmbus_bus_init(int (*drv_init)(struct hv_driver *drv))
253 int ret; 253 int ret;
254 unsigned int vector; 254 unsigned int vector;
255 255
256 DPRINT_ENTER(VMBUS_DRV);
257
258 /* 256 /*
259 * Set this up to allow lower layer to callback to add/remove child 257 * Set this up to allow lower layer to callback to add/remove child
260 * devices on the bus 258 * devices on the bus
@@ -374,8 +372,6 @@ static void vmbus_bus_exit(void)
374 372
375 struct vm_device *dev_ctx = &g_vmbus_drv.device_ctx; 373 struct vm_device *dev_ctx = &g_vmbus_drv.device_ctx;
376 374
377 DPRINT_ENTER(VMBUS_DRV);
378
379 /* Remove the root device */ 375 /* Remove the root device */
380 if (vmbus_drv_obj->Base.OnDeviceRemove) 376 if (vmbus_drv_obj->Base.OnDeviceRemove)
381 vmbus_drv_obj->Base.OnDeviceRemove(&dev_ctx->device_obj); 377 vmbus_drv_obj->Base.OnDeviceRemove(&dev_ctx->device_obj);
@@ -416,8 +412,6 @@ int vmbus_child_driver_register(struct driver_context *driver_ctx)
416 struct vmbus_driver *vmbus_drv_obj = &g_vmbus_drv.drv_obj; 412 struct vmbus_driver *vmbus_drv_obj = &g_vmbus_drv.drv_obj;
417 int ret; 413 int ret;
418 414
419 DPRINT_ENTER(VMBUS_DRV);
420
421 DPRINT_INFO(VMBUS_DRV, "child driver (%p) registering - name %s", 415 DPRINT_INFO(VMBUS_DRV, "child driver (%p) registering - name %s",
422 driver_ctx, driver_ctx->driver.name); 416 driver_ctx, driver_ctx->driver.name);
423 417
@@ -447,8 +441,6 @@ EXPORT_SYMBOL(vmbus_child_driver_register);
447 */ 441 */
448void vmbus_child_driver_unregister(struct driver_context *driver_ctx) 442void vmbus_child_driver_unregister(struct driver_context *driver_ctx)
449{ 443{
450 DPRINT_ENTER(VMBUS_DRV);
451
452 DPRINT_INFO(VMBUS_DRV, "child driver (%p) unregistering - name %s", 444 DPRINT_INFO(VMBUS_DRV, "child driver (%p) unregistering - name %s",
453 driver_ctx, driver_ctx->driver.name); 445 driver_ctx, driver_ctx->driver.name);
454 446
@@ -503,8 +495,6 @@ static struct hv_device *vmbus_child_device_create(struct hv_guid *type,
503 struct vm_device *child_device_ctx; 495 struct vm_device *child_device_ctx;
504 struct hv_device *child_device_obj; 496 struct hv_device *child_device_obj;
505 497
506 DPRINT_ENTER(VMBUS_DRV);
507
508 /* Allocate the new child device */ 498 /* Allocate the new child device */
509 child_device_ctx = kzalloc(sizeof(struct vm_device), GFP_KERNEL); 499 child_device_ctx = kzalloc(sizeof(struct vm_device), GFP_KERNEL);
510 if (!child_device_ctx) { 500 if (!child_device_ctx) {
@@ -561,8 +551,6 @@ static int vmbus_child_device_register(struct hv_device *root_device_obj,
561 to_vm_device(child_device_obj); 551 to_vm_device(child_device_obj);
562 static atomic_t device_num = ATOMIC_INIT(0); 552 static atomic_t device_num = ATOMIC_INIT(0);
563 553
564 DPRINT_ENTER(VMBUS_DRV);
565
566 DPRINT_DBG(VMBUS_DRV, "child device (%p) registering", 554 DPRINT_DBG(VMBUS_DRV, "child device (%p) registering",
567 child_device_ctx); 555 child_device_ctx);
568 556
@@ -604,8 +592,6 @@ static void vmbus_child_device_unregister(struct hv_device *device_obj)
604{ 592{
605 struct vm_device *device_ctx = to_vm_device(device_obj); 593 struct vm_device *device_ctx = to_vm_device(device_obj);
606 594
607 DPRINT_ENTER(VMBUS_DRV);
608
609 DPRINT_INFO(VMBUS_DRV, "unregistering child device (%p)", 595 DPRINT_INFO(VMBUS_DRV, "unregistering child device (%p)",
610 &device_ctx->device); 596 &device_ctx->device);
611 597
@@ -626,8 +612,6 @@ static void vmbus_child_device_unregister(struct hv_device *device_obj)
626 */ 612 */
627static void vmbus_child_device_destroy(struct hv_device *device_obj) 613static void vmbus_child_device_destroy(struct hv_device *device_obj)
628{ 614{
629 DPRINT_ENTER(VMBUS_DRV);
630
631 DPRINT_EXIT(VMBUS_DRV); 615 DPRINT_EXIT(VMBUS_DRV);
632} 616}
633 617
@@ -643,8 +627,6 @@ static int vmbus_uevent(struct device *device, struct kobj_uevent_env *env)
643 struct vm_device *device_ctx = device_to_vm_device(device); 627 struct vm_device *device_ctx = device_to_vm_device(device);
644 int ret; 628 int ret;
645 629
646 DPRINT_ENTER(VMBUS_DRV);
647
648 DPRINT_INFO(VMBUS_DRV, "generating uevent - VMBUS_DEVICE_CLASS_GUID={" 630 DPRINT_INFO(VMBUS_DRV, "generating uevent - VMBUS_DEVICE_CLASS_GUID={"
649 "%02x%02x%02x%02x-%02x%02x-%02x%02x-" 631 "%02x%02x%02x%02x-%02x%02x-%02x%02x-"
650 "%02x%02x%02x%02x%02x%02x%02x%02x}", 632 "%02x%02x%02x%02x%02x%02x%02x%02x}",
@@ -719,8 +701,6 @@ static int vmbus_match(struct device *device, struct device_driver *driver)
719 struct driver_context *driver_ctx = driver_to_driver_context(driver); 701 struct driver_context *driver_ctx = driver_to_driver_context(driver);
720 struct vm_device *device_ctx = device_to_vm_device(device); 702 struct vm_device *device_ctx = device_to_vm_device(device);
721 703
722 DPRINT_ENTER(VMBUS_DRV);
723
724 /* We found our driver ? */ 704 /* We found our driver ? */
725 if (memcmp(&device_ctx->class_id, &driver_ctx->class_id, 705 if (memcmp(&device_ctx->class_id, &driver_ctx->class_id,
726 sizeof(struct hv_guid)) == 0) { 706 sizeof(struct hv_guid)) == 0) {
@@ -756,8 +736,6 @@ static void vmbus_probe_failed_cb(struct work_struct *context)
756{ 736{
757 struct vm_device *device_ctx = (struct vm_device *)context; 737 struct vm_device *device_ctx = (struct vm_device *)context;
758 738
759 DPRINT_ENTER(VMBUS_DRV);
760
761 /* 739 /*
762 * Kick off the process of unregistering the device. 740 * Kick off the process of unregistering the device.
763 * This will call vmbus_remove() and eventually vmbus_device_release() 741 * This will call vmbus_remove() and eventually vmbus_device_release()
@@ -779,8 +757,6 @@ static int vmbus_probe(struct device *child_device)
779 struct vm_device *device_ctx = 757 struct vm_device *device_ctx =
780 device_to_vm_device(child_device); 758 device_to_vm_device(child_device);
781 759
782 DPRINT_ENTER(VMBUS_DRV);
783
784 /* Let the specific open-source driver handles the probe if it can */ 760 /* Let the specific open-source driver handles the probe if it can */
785 if (driver_ctx->probe) { 761 if (driver_ctx->probe) {
786 ret = device_ctx->probe_error = driver_ctx->probe(child_device); 762 ret = device_ctx->probe_error = driver_ctx->probe(child_device);
@@ -812,8 +788,6 @@ static int vmbus_remove(struct device *child_device)
812 int ret; 788 int ret;
813 struct driver_context *driver_ctx; 789 struct driver_context *driver_ctx;
814 790
815 DPRINT_ENTER(VMBUS_DRV);
816
817 /* Special case root bus device */ 791 /* Special case root bus device */
818 if (child_device->parent == NULL) { 792 if (child_device->parent == NULL) {
819 /* 793 /*
@@ -853,8 +827,6 @@ static void vmbus_shutdown(struct device *child_device)
853{ 827{
854 struct driver_context *driver_ctx; 828 struct driver_context *driver_ctx;
855 829
856 DPRINT_ENTER(VMBUS_DRV);
857
858 /* Special case root bus device */ 830 /* Special case root bus device */
859 if (child_device->parent == NULL) { 831 if (child_device->parent == NULL) {
860 /* 832 /*
@@ -887,7 +859,6 @@ static void vmbus_shutdown(struct device *child_device)
887 */ 859 */
888static void vmbus_bus_release(struct device *device) 860static void vmbus_bus_release(struct device *device)
889{ 861{
890 DPRINT_ENTER(VMBUS_DRV);
891 /* FIXME */ 862 /* FIXME */
892 /* Empty release functions are a bug, or a major sign 863 /* Empty release functions are a bug, or a major sign
893 * of a problem design, this MUST BE FIXED! */ 864 * of a problem design, this MUST BE FIXED! */
@@ -903,8 +874,6 @@ static void vmbus_device_release(struct device *device)
903{ 874{
904 struct vm_device *device_ctx = device_to_vm_device(device); 875 struct vm_device *device_ctx = device_to_vm_device(device);
905 876
906 DPRINT_ENTER(VMBUS_DRV);
907
908 /* vmbus_child_device_destroy(&device_ctx->device_obj); */ 877 /* vmbus_child_device_destroy(&device_ctx->device_obj); */
909 kfree(device_ctx); 878 kfree(device_ctx);
910 879
@@ -921,8 +890,6 @@ static void vmbus_msg_dpc(unsigned long data)
921{ 890{
922 struct vmbus_driver *vmbus_drv_obj = (struct vmbus_driver *)data; 891 struct vmbus_driver *vmbus_drv_obj = (struct vmbus_driver *)data;
923 892
924 DPRINT_ENTER(VMBUS_DRV);
925
926 /* ASSERT(vmbus_drv_obj->OnMsgDpc != NULL); */ 893 /* ASSERT(vmbus_drv_obj->OnMsgDpc != NULL); */
927 894
928 /* Call to bus driver to handle interrupt */ 895 /* Call to bus driver to handle interrupt */
@@ -938,8 +905,6 @@ static void vmbus_event_dpc(unsigned long data)
938{ 905{
939 struct vmbus_driver *vmbus_drv_obj = (struct vmbus_driver *)data; 906 struct vmbus_driver *vmbus_drv_obj = (struct vmbus_driver *)data;
940 907
941 DPRINT_ENTER(VMBUS_DRV);
942
943 /* ASSERT(vmbus_drv_obj->OnEventDpc != NULL); */ 908 /* ASSERT(vmbus_drv_obj->OnEventDpc != NULL); */
944 909
945 /* Call to bus driver to handle interrupt */ 910 /* Call to bus driver to handle interrupt */
@@ -953,8 +918,6 @@ static irqreturn_t vmbus_isr(int irq, void *dev_id)
953 struct vmbus_driver *vmbus_driver_obj = &g_vmbus_drv.drv_obj; 918 struct vmbus_driver *vmbus_driver_obj = &g_vmbus_drv.drv_obj;
954 int ret; 919 int ret;
955 920
956 DPRINT_ENTER(VMBUS_DRV);
957
958 /* ASSERT(vmbus_driver_obj->OnIsr != NULL); */ 921 /* ASSERT(vmbus_driver_obj->OnIsr != NULL); */
959 922
960 /* Call to bus driver to handle interrupt */ 923 /* Call to bus driver to handle interrupt */
@@ -993,8 +956,6 @@ static int __init vmbus_init(void)
993{ 956{
994 int ret = 0; 957 int ret = 0;
995 958
996 DPRINT_ENTER(VMBUS_DRV);
997
998 DPRINT_INFO(VMBUS_DRV, 959 DPRINT_INFO(VMBUS_DRV,
999 "Vmbus initializing.... current log level 0x%x (%x,%x)", 960 "Vmbus initializing.... current log level 0x%x (%x,%x)",
1000 vmbus_loglevel, HIWORD(vmbus_loglevel), LOWORD(vmbus_loglevel)); 961 vmbus_loglevel, HIWORD(vmbus_loglevel), LOWORD(vmbus_loglevel));
@@ -1011,8 +972,6 @@ static int __init vmbus_init(void)
1011 972
1012static void __exit vmbus_exit(void) 973static void __exit vmbus_exit(void)
1013{ 974{
1014 DPRINT_ENTER(VMBUS_DRV);
1015
1016 vmbus_bus_exit(); 975 vmbus_bus_exit();
1017 /* Todo: it is used for loglevel, to be ported to new kernel. */ 976 /* Todo: it is used for loglevel, to be ported to new kernel. */
1018 DPRINT_EXIT(VMBUS_DRV); 977 DPRINT_EXIT(VMBUS_DRV);