Mutual Benefit

2013-09-01 Thread Albert Liu Hongzou
Hello, My name is Albert Liu Hongzuo, a Chinese national, I have an immense business of great benefit for both of us. Upon your response I will update you with the full details. Await your immediate response. Contact me with this Email (albertliuhong...@163.com) Albert Liu __

[PATCH] Staging: android: add __user annotation in binder.c

2013-09-01 Thread Bojan Prtvar
This fixes the following sparse error drivers/staging/android/binder.c:1795:36: error: incompatible types in comparison expression (different address spaces) Signed-off-by: Bojan Prtvar --- drivers/staging/android/binder.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[PATCH] Staging: speakup: Add dependencies for ISA card drivers

2013-09-01 Thread Ben Hutchings
Several speakup drivers are for ISA cards and are useless on systems without ISA slots. Make them depend on ISA || COMPILE_TEST. Signed-off-by: Ben Hutchings --- drivers/staging/speakup/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/drivers/staging/speakup/Kconfig b/drivers/sta

[PATCH staging] Staging: Convert uses of compare_ether_addr to ether_addr_equal

2013-09-01 Thread Joe Perches
Preliminary to removing compare_ether_addr altogether: Use the new bool function ether_addr_equal to add some clarity and reduce the likelihood for misuse of compare_ether_addr for sorting. Additionally: Used is_zero_ether_addr, removed now unused variable Converted uses of &foo[0] to foo Done

Re: [staging] Staging: Convert uses of compare_ether_addr to ether_addr_equal

2013-09-01 Thread Wang Shilong
Hello, Using checkpatch.pl, i get the following warnings(errors): WARNING: Avoid CamelCase: bHwError> #124: FILE: drivers/staging/rtl8192e/rtl8192e/r8192E_dev.c:1875: +(!pstats->bHwError) && (!pstats->bCRC) && (!pstats->bICV)); WARNING: Avoid CamelCase: bCRC> #124: FILE: drivers/st

Re: [staging] Staging: Convert uses of compare_ether_addr to ether_addr_equal

2013-09-01 Thread Joe Perches
On Mon, 2013-09-02 at 03:30 +0800, Wang Shilong wrote: > Hello, Using checkpatch.pl, i get the following warnings(errors): Hello. Especially for staging patches, all of these are "don't care" types of messages. You should change your script to check if these are existing warnings and if so, not

[PATCH] Staging: comedi: Fix dependencies for drivers misclassified as PCI

2013-09-01 Thread Ben Hutchings
The Fastwel UNIOxx-5 is a PCI/104 board so put COMEDI_UNIOXX5 under COMEDI_ISA_DRIVERS. The PCI-20001C is, surprisingly, an ISA card, so also put COMEDI_II_PCI20KC under COMEDI_ISA_DRIVERS. The DIL/Net-PC 1486 is a 486 system, so put COMEDI_SSV_DNP under COMEDI_MISC_DRIVERS and add a dependency o

[PATCH] Staging: android: Mark local functions in binder.c as static

2013-09-01 Thread Bojan Prtvar
This fixes the following sparse warnings drivers/staging/android/binder.c:1703:5: warning: symbol 'binder_thread_write' was not declared. Should it be static? drivers/staging/android/binder.c:2058:6: warning: symbol 'binder_stat_br' was not declared. Should it be static? Signed-off-by: Bojan Prt

Re: [staging] Staging: Convert uses of compare_ether_addr to ether_addr_equal

2013-09-01 Thread Dan Carpenter
On Mon, Sep 02, 2013 at 03:30:12AM +0800, Wang Shilong wrote: > Hello, Using checkpatch.pl, i get the following warnings(errors): All of these were there in the original code. Have your script copy the messages to your postponed messages folder and then look over the output before mailing it. re

Re: [PATCH] Staging: android: Mark local functions in binder.c as static

2013-09-01 Thread Dan Carpenter
On Sun, Sep 01, 2013 at 10:18:44PM +0200, Bojan Prtvar wrote: > -void binder_stat_br(struct binder_proc *proc, struct binder_thread *thread, > +static void binder_stat_br(struct binder_proc *proc, > + struct binder_thread *thread, > uint32_t cmd) The indenting

[PATCH staging-next] staging: vt6655: Remove commented out block with compare_ether_addr

2013-09-01 Thread Joe Perches
compare_ether_addr is being removed so remove even the commented out code referring to it. Signed-off-by: Joe Perches --- drivers/staging/vt6655/vntwifi.c | 22 -- 1 file changed, 22 deletions(-) diff --git a/drivers/staging/vt6655/vntwifi.c b/drivers/staging/vt6655/vntwifi.

Re: [PATCH 02/12] staging: dgnc: replaces generic struct from sizeof calls

2013-09-01 Thread Dan Carpenter
On Sat, Aug 31, 2013 at 06:19:10PM -0400, Lidza Louina wrote: > This patch replaces all instances of "sizeof(struct" > with actual instances of the struct. For example > "sizeof(struct tty_struct" is replaced with > "sizeof(brd->SerialDriver.ttys". > This one is not right. > This patch affects d

Re: [PATCH 06/12] staging: dgnc: removes kzalloc error statements

2013-09-01 Thread Dan Carpenter
On Sat, Aug 31, 2013 at 06:19:14PM -0400, Lidza Louina wrote: > This patch removes the error statements that follow > kzalloc. These are useless because kzalloc has its > own error statement and the driver's error handling > would never actually happen. > Gar! Wait! What? I'm sorry, I was tota

Re: [PATCH 03/12] staging: dgnc: driver.h: adds struct dgnc_board

2013-09-01 Thread Dan Carpenter
On Sat, Aug 31, 2013 at 06:19:11PM -0400, Lidza Louina wrote: > This patch adds the dgnc_board struct to driver.h. > This struct will replace board_t in this driver. > So on this one patches 3, 4 and 5 should just be one patch. It should rename board_t to dgnc_board in the .h file and change all

Re: [PATCH 06/12] staging: dgnc: removes kzalloc error statements

2013-09-01 Thread Dan Carpenter
The point I was trying to make earlier was that I don't like knee jerk error messages. Some people put an error message after every line without thinking about it. It's a very common source of bugs is to have a NULL dereference like: if (!dev) { pr_err("no device %s", dev

[PATCH 0/4] [media] Make lirc_bt829 a well-behaved PCI driver

2013-09-01 Thread Ben Hutchings
I noticed lirc_bt829 didn't have a module device ID table, so I set out to fix that and ended up with this series. It still appears to do everything else wrong (like reinventing i2c-algo-bit) though... This is compile-tested only. Ben. Ben Hutchings (4): [media] lirc_bt829: Make it a proper P

[PATCH 1/4] [media] lirc_bt829: Make it a proper PCI driver

2013-09-01 Thread Ben Hutchings
Replace static variables with a device structure and pass pointers to this into all the functions that need it. Fold init_module(), do_pci_probe() and atir_init_start() into a single probe function. Use dev_err() to provide context for logging. This also fixes a device reference leak, as the dri

[PATCH 4/4] [media] lirc_bt829: Enable and disable memory BAR

2013-09-01 Thread Ben Hutchings
We must not assume that the PCI device is already enabled. Signed-off-by: Ben Hutchings --- drivers/staging/media/lirc/lirc_bt829.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/lirc/lirc_bt829.c b/drivers/staging/media/lirc/lirc_bt829.c index

[PATCH 3/4] [media] lirc_bt829: Fix iomap leak

2013-09-01 Thread Ben Hutchings
We must call iounmap() when removed from a device. Signed-off-by: Ben Hutchings --- drivers/staging/media/lirc/lirc_bt829.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/media/lirc/lirc_bt829.c b/drivers/staging/media/lirc/lirc_bt829.c index 8c5ba2a..76

[PATCH 2/4] [media] lirc_bt829: Fix physical address type

2013-09-01 Thread Ben Hutchings
Signed-off-by: Ben Hutchings --- drivers/staging/media/lirc/lirc_bt829.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/media/lirc/lirc_bt829.c b/drivers/staging/media/lirc/lirc_bt829.c index c277bf3..8c5ba2a 100644 --- a/drivers/staging/media/lirc/lirc

Re: [PATCH 2/4] [media] lirc_bt829: Fix physical address type

2013-09-01 Thread Fabio Estevam
On Sun, Sep 1, 2013 at 9:39 PM, Ben Hutchings wrote: > pci_addr_phys = pdev->resource[0].start; > - dev_info(&pdev->dev, "memory at 0x%08X\n", > -(unsigned int)pci_addr_phys); > + dev_info(&pdev->dev, "memory at 0x%08llX\n", > +(unsigned long lo

Re: [PATCH 2/4] [media] lirc_bt829: Fix physical address type

2013-09-01 Thread Ben Hutchings
On Sun, 2013-09-01 at 22:37 -0300, Fabio Estevam wrote: > On Sun, Sep 1, 2013 at 9:39 PM, Ben Hutchings wrote: > > > pci_addr_phys = pdev->resource[0].start; > > - dev_info(&pdev->dev, "memory at 0x%08X\n", > > -(unsigned int)pci_addr_phys); > > + dev_info(&pde

Re: [PATCH 2/4] [media] lirc_bt829: Fix physical address type

2013-09-01 Thread Fabio Estevam
On Sun, Sep 1, 2013 at 10:41 PM, Ben Hutchings wrote: > On Sun, 2013-09-01 at 22:37 -0300, Fabio Estevam wrote: >> On Sun, Sep 1, 2013 at 9:39 PM, Ben Hutchings wrote: >> >> > pci_addr_phys = pdev->resource[0].start; >> > - dev_info(&pdev->dev, "memory at 0x%08X\n", >> > -

[PATCH v2] Staging: android: Mark local functions in binder.c as static

2013-09-01 Thread Bojan Prtvar
This fixes the following sparse warnings drivers/staging/android/binder.c:1703:5: warning: symbol 'binder_thread_write' was not declared. Should it be static? drivers/staging/android/binder.c:2058:6: warning: symbol 'binder_stat_br' was not declared. Should it be static? Signed-off-by: Bojan Prt