summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv
Commit message (Collapse)AuthorAgeFilesLines
* Staging: hv: Storage class should be before const qualifierTobias Klauser2010-06-181-1/+1
| | | | | | | | | | | | | The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
* Merge staging-next tree into Linus's latest versionGreg Kroah-Hartman2010-05-2139-475/+1301
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: drivers/staging/arlan/arlan-main.c drivers/staging/comedi/drivers/cb_das16_cs.c drivers/staging/cx25821/cx25821-alsa.c drivers/staging/dt3155/dt3155_drv.c drivers/staging/hv/hv.c drivers/staging/netwave/netwave_cs.c drivers/staging/wavelan/wavelan.c drivers/staging/wavelan/wavelan_cs.c drivers/staging/wlags49_h2/wl_cs.c This required a bit of hand merging due to the conflicts that happened in the later .34-rc releases, as well as some staging driver changing coming in through other trees (v4l and pcmcia). Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: Added heartbeat functionality to hv_utilsHank Janssen2010-05-174-3/+92
| | | | | | | | | | | | | | | | Add heartbeat functionality to hv_utils/Hyper-V Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: Use kmemdupJulia Lawall2010-05-171-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use kmemdup when some other buffer is immediately copied into the allocated region. A simplified version of the semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // <smpl> @@ expression from,to,size,flag; statement S; @@ - to = \(kmalloc\|kzalloc\)(size,flag); + to = kmemdup(from,size,flag); if (to==NULL || ...) S - memcpy(to, from, size); // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: Fix error checking in channel.cHaiyang Zhang2010-05-141-4/+4
| | | | | | | | | | | | | | | | | | | | Fixed errors in return value checking code, which caused vmbus channel not functioning. Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Cc: Bill Pemberton <wfp5p@virginia.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: auto-load MSFT PV NIC driverK. Y. Srinivasan2010-05-141-0/+26
| | | | | | | | | | | | | | Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: Optimize adj_guesttime function and add more detailed commentsHaiyang Zhang2010-05-111-10/+23
| | | | | | | | | | | | | | | | | | Credits go to Joe Perches <joe@perches.com> for suggesting the changes. Cc: Joe Perches <joe@perches.com> Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: storvsc module descriptionsStephen Hemminger2010-05-111-1/+3
| | | | | | | | | | | | | | Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: block_operations can be constStephen Hemminger2010-05-111-1/+1
| | | | | | | | | | | | | | Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: add module description to blkvscStephen Hemminger2010-05-111-2/+3
| | | | | | | | | | | | | | Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename VersionInfo.h to version_info.hGreg Kroah-Hartman2010-05-117-6/+6
| | | | | | | | | | | | | | | | The great renaming of the hv code is now complete. Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename VmbusPacketFormat.h to vmbus_packet_format.hGreg Kroah-Hartman2010-05-115-4/+4
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename VmbusChannelInterface.h to vmbus_channel_interface.hGreg Kroah-Hartman2010-05-114-3/+3
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename VmbusPrivate.h to vmbus_private.hGreg Kroah-Hartman2010-05-118-7/+7
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename VmbusApi.h to vmbus_api.hGreg Kroah-Hartman2010-05-117-6/+6
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename StorVscApi.h to storvsc_api.hGreg Kroah-Hartman2010-05-114-3/+3
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename NetVscApi.h to netvsc_api.hGreg Kroah-Hartman2010-05-114-3/+3
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename ChannelInterface.c and .h to channel_interface.c and .hGreg Kroah-Hartman2010-05-114-2/+2
| | | | | | | | | | | | | | | | All of the uppercase .c files are now gone. Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename ChannelMgmt.c and .h to channel_mgmt.c and .hGreg Kroah-Hartman2010-05-115-3/+3
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename RndisFilter.c and .h to rndis_filter.c and .hGreg Kroah-Hartman2010-05-114-3/+3
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename StorVsc.c to storvsc.cGreg Kroah-Hartman2010-05-113-2/+2
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename NetVsc.c and .h to netvsc.c and .hGreg Kroah-Hartman2010-05-114-3/+3
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename Vmbus.c to vmbus.cGreg Kroah-Hartman2010-05-112-1/+1
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename BlkVsc.c to blkvsc.cGreg Kroah-Hartman2010-05-112-1/+1
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename RingBuffer.c and .h to ring_buffer.c and .hGreg Kroah-Hartman2010-05-115-4/+4
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename Connection.c to connection.cGreg Kroah-Hartman2010-05-112-1/+1
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename Channel.c and .h to channel.c and .hGreg Kroah-Hartman2010-05-115-3/+3
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename Hv.h to hv.hGreg Kroah-Hartman2010-05-112-1/+1
| | | | | | | | | | | | Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename Hv.c to hv.cGreg Kroah-Hartman2010-05-112-1/+1
| | | | | | | | | | | | | | | | No CamelCase in file names. Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: rename hyperv_utils.c to hv_utils.cGreg Kroah-Hartman2010-05-112-1/+0
| | | | | | | | | | | | | | | | | | As the module only has one .c file in it, just name the file the same as the desired module. Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: util.h: fix up space mess againGreg Kroah-Hartman2010-05-111-11/+11
| | | | | | | | | | | | | | | | Again, use tabs, not spaces, it's not difficult to remember... Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: remove typedef that was just added.Greg Kroah-Hartman2010-05-112-6/+4
| | | | | | | | | | | | | | | | It's a u64, so use a u64, it's not some special typedef. Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: Add Time Sync feature to hv_utils module.Haiyang Zhang2010-05-113-3/+130
| | | | | | | | | | | | | | | | | | The Time Sync feature synchronizes guest time to host UTC time after reboot, and restore from saved/paused state. Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * Staging: hv: Channel.c: fix up compiler warningGreg Kroah-Hartman2010-05-111-1/+1
| | | | | | | | | | | | | | | | | | | | In the series of ASSERT removals, somehow we ended up with a compiler warning in Channel.c. This patch fixes that up. Cc: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT in logging.hBill Pemberton2010-05-111-7/+0
| | | | | | | | | | | | | | | | | | ASSERT is no longer used in hv, so remove the define Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT() and return -EINVAL in NetVsc.cBill Pemberton2010-05-111-1/+5
| | | | | | | | | | | | | | | | | | return -EINVAL instead of calling ASSERT() Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: replace ASSERT() with WARN_ON() in NetVsc.cBill Pemberton2010-05-111-1/+1
| | | | | | | | | | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT()sBill Pemberton2010-05-113-27/+26
| | | | | | | | | | | | | | | | | | These ASSERT()s serve no purpose other than for debugging. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT()s in vmbus_drv.cBill Pemberton2010-05-111-3/+3
| | | | | | | | | | | | | | | | | | These ASSERT()s serve no purpose other than for debugging. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT()s and return -EINVAL in RingBuffer.cBill Pemberton2010-05-111-1/+2
| | | | | | | | | | | | | | | | | | return -EINVAL instead of calling ASSERT() for these conditionals. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: check return value of RingBufferInit()Bill Pemberton2010-05-112-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | RingBufferInit() would always return sucess and instead relied on an ASSERT() to test for an error condition. Remove the ASSERT() and return -EINVAL instead. The return value of RingBufferInit() was also never checked, so check it. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT()s in RingBuffer.cBill Pemberton2010-05-111-3/+3
| | | | | | | | | | | | | | | | | | These ASSERT()s serve no purpose other than for debugging. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT()s in RndisFilter.cBill Pemberton2010-05-111-4/+11
| | | | | | | | | | | | | | | | | | return -EINVAL instead of calling ASSERT() for these conditionals. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT()s in RndisFilter.cBill Pemberton2010-05-111-9/+9
| | | | | | | | | | | | | | | | | | These ASSERT()s serve no purpose other than for debugging. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT()s in StorVsc.cBill Pemberton2010-05-111-13/+13
| | | | | | | | | | | | | | | | | | These ASSERT()s serve no purpose other than for debugging. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT()s in blkvsc_drv.cBill Pemberton2010-05-111-5/+5
| | | | | | | | | | | | | | | | | | These ASSERT()s serve no purpose other than for debugging. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: make the block driver depend on LBDAFBill Pemberton2010-05-112-2/+2
| | | | | | | | | | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: return error instead calling ASSERT in blkvsc_drv.cBill Pemberton2010-05-111-1/+5
| | | | | | | | | | | | | | Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT()s in storvsc_drv.cBill Pemberton2010-05-111-15/+13
| | | | | | | | | | | | | | | | | | These ASSERT()s serve no purpose other than for debugging. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
| * staging: hv: remove ASSERT()s in Channel.cBill Pemberton2010-05-111-9/+9
| | | | | | | | | | | | | | | | | | These ASSERT()s serve no purpose other than for debugging. Signed-off-by: Bill Pemberton <wfp5p@virginia.edu> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>