07 May, 2011
1 commit
-
If staging:vt6655 is built without CONFIG_DM being defined, there are large
numbers of warnings of the following form due to use of #if instead of #ifdef:In file included from drivers/staging/vt6655/upc.h:32,
from drivers/staging/vt6655/mac.h:39,
from drivers/staging/vt6655/wroute.c:34:
drivers/staging/vt6655/device.h:399:5: warning: "CONFIG_PM" is not definedSigned-off-by: Larry Finger
Signed-off-by: Greg Kroah-Hartman
26 Apr, 2011
3 commits
-
Done via perl script:
$ cat remove_semi_switch.pl
my $match_balanced_parentheses = qr/(\((?:[^\(\)]++|(?-1))*\))/;
my $match_balanced_braces = qr/(\{(?:[^\{\}]++|(?-1))*\})/;foreach my $file (@ARGV) {
my $f;
my $text;
my $oldtext;next if ((-d $file));
open($f, '
Signed-off-by: Greg Kroah-Hartman -
Done via perl script:
$ cat remove_semi_for.pl
my $match_balanced_parentheses = qr/(\((?:[^\(\)]++|(?-1))*\))/;
my $match_balanced_braces = qr/(\{(?:[^\{\}]++|(?-1))*\})/;foreach my $file (@ARGV) {
my $f;
my $text;
my $oldtext;next if ((-d $file));
open($f, '
Signed-off-by: Greg Kroah-Hartman -
Done via perl script:
$ cat remove_semi_if.pl
my $match_balanced_parentheses = qr/(\((?:[^\(\)]++|(?-1))*\))/;
my $match_balanced_braces = qr/(\{(?:[^\{\}]++|(?-1))*\})/;foreach my $file (@ARGV) {
my $f;
my $text;
my $oldtext;next if ((-d $file));
open($f, '
Signed-off-by: Greg Kroah-Hartman
08 Apr, 2011
1 commit
-
* 'staging-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging-2.6: (28 commits)
staging: usbip: bugfix for isochronous packets and optimization
staging: usbip: bugfix add number of packets for isochronous frames
staging: usbip: bugfixes related to kthread conversion
staging: usbip: fix shutdown problems.
staging: hv: Fix GARP not sent after Quick Migration
staging: IIO: IMU: ADIS16400: Avoid using printk facility directly
staging: IIO: IMU: ADIS16400: Fix product ID check, skip embedded revision number
staging: IIO: IMU: ADIS16400: Make sure only enabled scan_elements are pushed into the ring
staging: IIO: IMU: ADIS16400: Fix addresses of GYRO and ACCEL calibration offset
staging: IIO: IMU: ADIS16400: Add delay after self test
staging: IIO: IMU: ADIS16400: Fix up SPI messages cs_change behavior
staging/rtl81*: build as loadable modules only
staging: brcm80211: removed 'is_amsdu causing toss' log spam
staging: brcm80211: fix for 'Short CCK' log spam
staging: brcm80211: fix for 'AC_BE txop..' logs spammed problem
staging: memrar: remove driver from tree
staging: sep: remove last memrar remnants
staging: fix hv_mouse build, needs delay.h
staging: fix olpc_dcon build errors
staging: sm7xx: fixed defines
...Fix up trivial conflict in drivers/staging/memrar/memrar_handler.c
(deleted vs trivial spelling fixes)
05 Apr, 2011
1 commit
-
It causes lots of linking errors when both of these modules are built into the
kernel directly due to their global symbol mess.Reported-by: Linus Torvalds
Signed-off-by: Greg Kroah-Hartman
31 Mar, 2011
1 commit
-
Fixes generated by 'codespell' and manually reviewed.
Signed-off-by: Lucas De Marchi
15 Mar, 2011
1 commit
-
This patch was generated by the following semantic patch:
//
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);@@ expression E; @@
- if (E != NULL) { kfree(E); E = NULL; }
+ kfree(E);
+ E = NULL;
//Signed-off-by: Ilia Mirkin
Signed-off-by: Greg Kroah-Hartman
01 Mar, 2011
1 commit
-
The patch below removes an extra "l" in the word.
Signed-off-by: Justin P. Mattock
Signed-off-by: Greg Kroah-Hartman
22 Jan, 2011
1 commit
-
This patch fixes the sparse warnings
"obsolete struct initializer, use C99 syntax" in vt6655/device_main.c
by converting the struct to C99 syntaxKernelVersion: linux-next-20110110
Signed-off-by: Peter Huewe
Signed-off-by: Greg Kroah-Hartman
17 Nov, 2010
1 commit
-
Signed-off-by: Joe Perches
Signed-off-by: Greg Kroah-Hartman
29 Oct, 2010
1 commit
-
This merges the staging-next tree to Linus's tree and resolves
some conflicts that were present due to changes in other trees that were
affected by files here.Signed-off-by: Greg Kroah-Hartman
06 Oct, 2010
1 commit
-
Changed to use the proper ccflags-y option
Signed-off-by: Tracey Dent
Acked-by: Sam Ravnborg
Signed-off-by: Greg Kroah-Hartman
21 Sep, 2010
3 commits
-
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
"param->u.wpa_associate.wpa_ie_len" comes from the user. We should
check it so that the copy_from_user() doesn't overflow the buffer.Also further down in the function, we assume that if
"param->u.wpa_associate.wpa_ie_len" is set then "abyWPAIE[0]" is
initialized. To make that work, I changed the test here to say that if
"wpa_ie_len" is set then "wpa_ie" has to be a valid pointer or we return
-EINVAL.Oddly, we only use the first element of the abyWPAIE[] array. So I
suspect there may be some other issues in this function.Signed-off-by: Dan Carpenter
Cc: stable
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Andy Shevchenko
Signed-off-by: Greg Kroah-Hartman
17 Sep, 2010
2 commits
-
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Andy Shevchenko
Signed-off-by: Greg Kroah-Hartman
01 Sep, 2010
2 commits
-
An error code is stored in a variable, but 0 is returned instead. Use the
variable instead of 0.The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)//
@r@
local idexpression x;
constant C;
@@if (...) { ...
x = -C
... when != x
(
return ;
|
return NULL;
|
return;
|
* return ...;
)
}
//Signed-off-by: Julia Lawall
Signed-off-by: Greg Kroah-Hartman -
IRQ and resource[] may not have correct values until
after PCI hotplug setup occurs at pci_enable_device() time.The semantic match that finds this problem is as follows:
//
@@
identifier x;
identifier request ~= "pci_request.*|pci_resource.*";
@@(
* x->irq
|
* x->resource
|
* request(x, ...)
)
...
*pci_enable_device(x)
//Signed-off-by: Kulikov Vasiliy
Signed-off-by: Greg Kroah-Hartman
03 Aug, 2010
3 commits
-
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman
09 Jul, 2010
2 commits
-
Use for_each_pci_dev() to simplify the code.
Signed-off-by: Kulikov Vasiliy
Signed-off-by: Greg Kroah-Hartman -
A broadcast address is also a multicast address so simplify test cases where
possible.As suggested by Joe Perches.
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman
26 Jun, 2010
2 commits
-
As suggested by Jiri Slaby.
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman
25 Jun, 2010
3 commits
-
Replace all occurrences with unsigned char type.
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
Replace all occurrences with unsigned short type.
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
Replace all occurrences with unsigned long type, except for pointer fields that
should be u32 in packed structures and 8-byte-aligned 8 byte long structure
QWORD.Thanks to Jiri Slaby for pointing out that simply replacing by unsigned long is
wrong on x86-64 arch.Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman
23 Jun, 2010
3 commits
-
Use unsigned long instead.
Signed-off-by: Charles Clément
-
Signed-off-by: Charles Clément
-
Move functions managing the channel mapping to a new channel.c file, as done in
the staging VT6656 driver. The function names contained in card.c were prefixed
with CARD followed by the first letter of the return code, remove this and use
more coherent function names.The following functions moved and were renamed:
ChannelValid -> is_channel_valid
CARDbSetChannel -> set_channel
CARDvInitChannelTable -> init_channel_table
CARDbyGetChannelMapping -> get_channel_mapping
CARDvSetCountryInfo -> set_country_info
CARDbySetSupportChannels -> set_support_channels
CARDbChannelGetList -> channel_get_list
CARDvSetCountryIE -> set_country_IE
CARDbGetChannelMapInfo -> get_channel_map_info
CARDvSetChannelMapInfo -> set_channel_map_info
CARDvClearChannelMapInfo -> clear_channel_map_info
CARDbyAutoChannelSelect -> auto_channel_select
CARDbyGetChannelNumber -> get_channel_numberSigned-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman
19 Jun, 2010
7 commits
-
Rename driver struct and callbacks to vt6655_* instead of device_* and add
__devinit/__devexit directives.Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Uwe Kleine-König
Signed-off-by: Greg Kroah-Hartman -
Commit 902d2411298a6e0b8a473a0163aa4bf6d5c8a073 converted U32 to u32
which you would think would be just fine. Unfortunatly, it seems that
VIA only builds their code on a 32bit processor (which makes sense if
you think about it), but this doesn't work on x86-64. So fix up the few
places where this really wanted to be an unsigned long width.Cc: Charles Clément
Cc: Forest Bond ,
Cc: Andres More
Signed-off-by: Greg Kroah-Hartman -
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
Use unsigned long * instead.
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
Use unsigned short * instead.
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman -
Use unsigned char * instead.
Signed-off-by: Charles Clément
Signed-off-by: Greg Kroah-Hartman