Julia Lawall
d93089df1b
drivers/staging/ath6kl/os/linux/cfg80211.c: Add missing call to cfg80211_put_bss
...
A call to cfg80211_get_bss hould be accompanied by a call to
cfg80211_put_bss in error-handling code.
A simplified version of the semantic match that finds this problem is:
(http://coccinelle.lip6.fr/ )
// <smpl>
@r exists@
local idexpression struct cfg80211_bss * x;
expression ra,rr;
position p1,p2;
@@
x = cfg80211_get_bss@p1(...)
... when != x = rr
when != cfg80211_put_bss(x,...)
when != if (...) { ... cfg80211_put_bss(x,...) ...}
if(...) { ... when != x = ra
when forall
when != cfg80211_put_bss(x,...)
\(return <+...x...+>; \| return@p2...; \) }
@script:python@
p1 << r.p1;
p2 << r.p2;
@@
cocci.print_main("cfg80211_get_bss",p1)
cocci.print_secs("return",p2)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:31:31 -07:00
Clemens Noss
aacd531df9
staging: brcm80211: use correct pointer types in bcm_pktq_flush
...
to clarify the intention:
On Sun, May 15, 2011 at 09:54:26PM +0200, Arend van Spriel wrote:
> On 05/15/2011 08:10 PM, Hauke Mehrtens wrote:
[...]
>> Why don't you use the correct pointer type here instead of casting then
>> around and the parameter names are meaningless too.
>>
>> static bool cb_del_ampdu_pkt(struct sk_buff *mpdu, struct
>> cb_del_ampdu_pars *ampdu_pars)
[...]
> Actually this is a generic callback mechanism in which an additional
> parameter can be passed, which can be of *any* type hence a void pointer
> seems justified here and a meaningless name is used. I do agree that the
> txi parameter will always be a struct sk_buff and should be indicated as
> such.
Reported-by: Hauke Mehrtens <hauke@hauke-m.de >
Signed-off-by: Clemens Noss <cnoss@gmx.de >
Acked-by: Roland Vossen <rvossen@broadcom.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:31:30 -07:00
Clemens Noss
84067de664
staging: brcm80211: fix cast to pointer from integer
...
bcm_pktq_flush and related functions only ever get 0 or a pointer for
arg, so make it a pointer.
This might fix a crash on 64bit.
Signed-off-by: Clemens Noss <cnoss@gmx.de >
Acked-by: Roland Vossen <rvossen@broadcom.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:31:30 -07:00
Rahul Tank
7a9aea511a
staging: echo: Trivial indentation changes
...
--bcaec50161b317392804a33628dd
Content-Type: text/plain; charset=ISO-8859-1
Hi Greg,
Please find patch attached .
Thanks,
Rahul
Hi Greg,<br><br> Please find patch attached .<br><br>Thanks,<br> Rahul<br>
From ba1dbafaef1a87c1338c5bb0e6bba3be06071c90 Mon Sep 17 00:00:00 2001
From: Rahul Tank <rahul.tank@gmail.com >
Date: Sat, 14 May 2011 11:28:25 +0530
Subject: [PATCH] Trivial indentation cleanup
Signed-off-by: Rahul Tank <rahul.tank@gmail.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:31:29 -07:00
matt mooney
1c6e79d992
staging: usbip: userspace: modify project gcc flags
...
Add -Werror, remove -Wstrict-prototypes, and change -W to -Wextra.
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:29 -07:00
matt mooney
be0d54ae39
staging: usbip: userspace: move common cflags to configure.ac
...
There are a standard set of cflags that are used in each makefile so
let's set those in EXTRA_CFLAGS and enforce them for the entire project.
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:29 -07:00
matt mooney
968c6595e7
staging: usbip: userspace: remove gcc warnings
...
The warnings were for unused parameters, so __attribute__((unused))
has been added until it can be determined they are truly unneeded.
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:28 -07:00
matt mooney
88d6f40839
staging: usbip: userspace: remove revision $Id$
...
This is git not CVS!
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:28 -07:00
matt mooney
d762f5e10c
staging: usbip: userspace: set libusbip version in configure.ac
...
Move libusbip version setting to configure.ac so that version
numbers can be found in a single location.
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:27 -07:00
matt mooney
cd62e07e87
staging: usbip: userspace: cleanup makefiles
...
Remove unneeded comments; change deprecated flag INCLUDE to
AM_CPPFLAGS and put -D option in *_CPPFLAGS; and use "simply
expanded variables" in assignments.
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:27 -07:00
matt mooney
af8bab0639
staging: usbip: userspace: configure.ac: major overhaul
...
All parameters have been quoted; and autoscan was rerun so new
headers, types, and functions were added. The deprecated macros
AM_CONFIG_HEADER and AM_PROG_LIBTOOL were changed to
AC_CONFIG_HEADERS and LT_INIT, respectively. The AS_HELP_STRING
macro is used to avoid arbitrary spacing for proper help menu
alignment, and AS_CASE to avoid quoting issues. And finally, the
macros were realigned to allow mere mortals the ability to read them.
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:27 -07:00
matt mooney
220973dd23
staging: usbip: userspace: update module name references
...
Change all references to the kernel modules to correspond with the new
names.
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:26 -07:00
matt mooney
9abec45232
staging: usbip: userspace: whitespace cleanup
...
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:26 -07:00
matt mooney
33df2286f7
staging: usbip: userspace: remove unused files
...
Remove ChangeLog and NEWS.
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:25 -07:00
matt mooney
f9b90071e0
staging: usbip: userspace: rename source directories
...
Rename cmd/ to src/ and lib/ to libsrc/.
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:25 -07:00
matt mooney
7f27b19911
staging: usbip: userspace: move manpages to separate directory
...
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:26:24 -07:00
Takahiro Hirofuchi
0945b4fe3f
staging: usbip: add userspace code
...
Add userspace code from svn trunk revision 175. Located at
https://usbip.svn.sourceforge.net/svnroot/usbip/linux/trunk/src .
Signed-off-by: matt mooney <mfm@muteddisk.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 13:23:42 -07:00
K. Y. Srinivasan
a9869c9425
Staging: hv: netvsc_drv: Make netvsc_drv_exit() the module exit function
...
Make netvsc_drv_exit() the module exit function.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:58 -07:00
K. Y. Srinivasan
1fde28cffb
Staging: hv: netvsc_drv: Make netvsc_drv_init the module init function
...
Now make netvsc_drv_init the module init function.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:57 -07:00
K. Y. Srinivasan
bb546d0e93
Staging: hv: netvsc_drv: Move the dmi_check code to netvsc_drv_init()
...
In preparation to eliminating netvsc_init(), move the dmi_check code
to netvsc_drv_init().
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:57 -07:00
K. Y. Srinivasan
073aad34b3
Staging: hv: netvsc_drv: Change the signature of netvsc_drv_init()
...
Change the signature of netvsc_drv_init().
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:56 -07:00
K. Y. Srinivasan
4753ff6a10
Staging: hv: netvsc_drv: Move the dmi table declaration to earlier in the file
...
Move the dmi table declaration to earlier in the file.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:56 -07:00
K. Y. Srinivasan
770cbb589b
Staging: hv: netvsc_drv: Get rid of the used type struct netvsc_driver
...
Now, get rid of the unused type struct netvsc_driver.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:55 -07:00
K. Y. Srinivasan
d00717301b
Staging: hv: netvsc_drv: Get rid of the unused function drv_to_netvscdrv()
...
Get rid of the unused function drv_to_netvscdrv().
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:54 -07:00
K. Y. Srinivasan
10ffe98cdc
Staging: hv: netvsc_drv: Get rid of the empty function rndis_filter_init()
...
Get rid of the empty function rndis_filter_init().
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:54 -07:00
K. Y. Srinivasan
c7620cd029
Staging: hv: netvsc_drv: Get rid of some unnecessary/dead code from rndis_filter.c
...
After the cleanup that has been done, some code in rndis_filter.c
is no longer needed; get rid of it.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:53 -07:00
K. Y. Srinivasan
fde0ef9b23
Staging: hv: netvsc_drv: Make netvsc_drv an instance of struct hv_driver
...
In preparation to getting rid of struct netvsc_driver, make
the variable netvsc_drv an instance of struct hv_driver.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:52 -07:00
K. Y. Srinivasan
4e3cba6b4c
Staging: hv: netvsc_drv: Get rid of the unnecessary state from struct netvsc_driver
...
Now get rid of unused state (ring_buf_size) from struct netvsc_driver.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:52 -07:00
K. Y. Srinivasan
70843a2177
Staging: hv: netvsc_drv: Get rid of the unnecessary assignment of ring_buf_size
...
Since we pass ring size information differently, this assignment is
not needed.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:51 -07:00
K. Y. Srinivasan
aae23986fd
Staging: hv: netvsc_drv: Get the ring size information from struct netvsc_device_info
...
Get the ring size information from struct netvsc_device_info.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:51 -07:00
K. Y. Srinivasan
78001df39c
Staging: hv: netvsc_drv: Add ring_size element to struct netvsc_device_info
...
Add ring_size element to struct netvsc_device_info.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:50 -07:00
K. Y. Srinivasan
8afe583d21
Staging: hv: netvsc_drv: Get rid of unused state in struct netvsc_driver
...
Now, get rid of unused state (req_ext_size) from struct netvsc_driver.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:49 -07:00
K. Y. Srinivasan
d0e3304614
Staging: hv: netvsc_drv: Get rid of an unnecessary assignment in rndis_filter.c
...
Now that we compute the size of struct rndis_filter_packet where
it is needed, get rid of the unnecessary assignment.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:48 -07:00
K. Y. Srinivasan
f8ba8c7050
Staging: hv: netvsc_drv: Directly get the size of rndis_filter_packet
...
Directly get the size of rndis_filter_packet.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:47 -07:00
K. Y. Srinivasan
9dbfd1509e
Staging: hv: netvsc_drv: Move the definition of struct rndis_filter_packet to hyperv_net.h
...
Move the definition of struct rndis_filter_packet to hyperv_net.h.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:28:47 -07:00
K. Y. Srinivasan
e3f8a80efb
Staging: hv: netvsc_drv: Get rid of unnecessary state in struct netvsc_driver
...
Since the function pointers in struct netvsc_driver are no longer used
(as these are invoked directly), get rid of this unused state.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:18 -07:00
K. Y. Srinivasan
ac6f785901
Staging: hv: netvsc_drv: Directly invoke the function rndis_filter_receive()
...
Directly invoke the function rndis_filter_receive().
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:17 -07:00
K. Y. Srinivasan
a25e1dbe9e
Staging: hv: netvsc_drv: Directly invoke the function netvsc_recv_callback()
...
Directly invoke the function netvsc_recv_callback().
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:17 -07:00
K. Y. Srinivasan
39fb6aab38
Staging: hv: netvsc_drv: Invoke netvsc_linkstatus_callback directly
...
Invoke netvsc_linkstatus_callback directly.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:16 -07:00
K. Y. Srinivasan
0ec6ff4011
Staging: hv: netvsc_drv: Invoke netvsc_send() directly
...
Invoke netvsc_send() directly.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:15 -07:00
K. Y. Srinivasan
55acb696a8
Staging: hv: netvsc_drv: Invoke rndis_filter_send() directly
...
In preparation to getting rid of struct netvsc_driver,
make the function rndis_filter_send() non-static.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:14 -07:00
K. Y. Srinivasan
0652aebc5a
Staging: hv: netvsc_drv: Make the function rndis_filter_send() non-static
...
In preparation to getting rid of struct netvsc_driver,
make the function rndis_filter_send() non-static.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:14 -07:00
K. Y. Srinivasan
5fcc411519
Staging: hv: netvsc_drv: Make the function rndis_filter_receive() non-static
...
In preparation to getting rid of struct netvsc_driver,
make the function rndis_filter_receive() non-static.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:14 -07:00
K. Y. Srinivasan
f79adf8f13
Staging: hv: netvsc_drv: Make the function netvsc_recv_callback() non-static
...
In preparation to getting rid of struct netvsc_driver,
make the function netvsc_recv_callback() non-static.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:13 -07:00
K. Y. Srinivasan
90ef117a30
Staging: hv: netvsc_drv: Make the function netvsc_linkstatus_callback() non-static
...
In preparation to getting rid of struct netvsc_driver,
make the function netvsc_linkstatus_callback() non-static.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:13 -07:00
K. Y. Srinivasan
f9819f05f2
Staging: hv: netvsc_drv: Make the function netvsc_send non-static
...
In preparation to getting rid of struct netvsc_driver,
make the function netvsc_send non-static.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:12 -07:00
K. Y. Srinivasan
a76c36bc0d
Staging: hv: netvsc_drv: Get rid of unused state in struct netvsc_driver
...
In preparation to getting rid of struct netvsc_driver, get rid of the
unused state (void *ctx) in struct netvsc_driver.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:11 -07:00
K. Y. Srinivasan
a881fdd0ca
Staging: hv: netvsc_drv: Clean up the netvsc_drv_exit() function
...
To conform to the Linux device model, the device should persist even
when there is no driver bound to it. Cleanup the netvsc_drv_exit() routine
keeping this in mind.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:11 -07:00
K. Y. Srinivasan
96053efd3c
Staging: hv: mousevsc_drv: Cleanup mousevsc_drv_exit() function
...
To conform to the Linux device model, the device should persist even
when there is no driver bound to it. Cleanup the mousevsc_drv_exit() routine
keeping this in mind.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:10 -07:00
K. Y. Srinivasan
2bda87cb6c
Staging: hv: storvsc_drv: Cleanup storvsc_drv_exit() function
...
To conform to the Linux device model, the device should persist even
when there is no driver bound to it. Cleanup the storvsc_drv_exit() routine
keeping this in mind.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com >
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com >
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com >
Signed-off-by: Hank Janssen <hjanssen@microsoft.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2011-05-17 12:27:10 -07:00