Re: [PATCH 3/9 RESENT] staging: r8188eu: Fix sparse warnings in ioctl_linux.c

2013-10-18 Thread Larry Finger
On 10/18/2013 05:08 PM, Ben Hutchings wrote: On Fri, 2013-10-18 at 16:34 -0500, Larry Finger wrote: Sparse checking results in the following warnings: CHECK drivers/staging/rtl8188eu/os_dep/ioctl_linux.c drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3932:17: warning: cast removes address

Web de administración de

2013-10-18 Thread Web de administración
Web de administración de notificación de e-mail Este mensaje es de nuestro centro de mensajes de administración para toda nuestra cuenta de correo electrónico owners.We está eliminando el acceso a todos nuestros clientes de correo web. Su correo electrónico cuenta se actualizará a una interfaz d

[PATCH 2/4] staging: xillybus: Use dev_* functions instead of pr_* in xillybus_pcie

2013-10-18 Thread Eli Billauer
Suggested-by: Greg Kroah-Hartman Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_pcie.c | 25 - 1 files changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_pcie.c b/drivers/staging/xillybus/xillybus_pcie.c index

[PATCH 3/4] staging: xillybus: Use dev_* functions instead of pr_* in xillybus_of

2013-10-18 Thread Eli Billauer
Suggested-by: Greg Kroah-Hartman Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_of.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_of.c b/drivers/staging/xillybus/xillybus_of.c index 2ae045e..394bfea 10

[PATCH 4/4] staging: xillybus: Use dev_* functions instead of pr_* in xillybus_core

2013-10-18 Thread Eli Billauer
Suggested-by: Greg Kroah-Hartman Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_core.c | 115 ++ 1 files changed, 69 insertions(+), 46 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c i

[PATCH 1/4] staging: xillybus: Remember device pointer for use with dev_* functions

2013-10-18 Thread Eli Billauer
This is necessary so that xillybus_core uses the correct device pointer for PCIe devices in diagnostic message calls (dev_err, dev_warn and dev_info) Signed-off-by: Eli Billauer --- drivers/staging/xillybus/xillybus_pcie.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a

Re: [PATCH 3/9 RESENT] staging: r8188eu: Fix sparse warnings in ioctl_linux.c

2013-10-18 Thread Ben Hutchings
On Fri, 2013-10-18 at 16:34 -0500, Larry Finger wrote: > Sparse checking results in the following warnings: > >CHECK drivers/staging/rtl8188eu/os_dep/ioctl_linux.c > drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3932:17: warning: cast removes > address space of expression > drivers/staging

Re: [PATCH 1/9 RESENT] staging: r8188eu: Set device type to wlan

2013-10-18 Thread Sergei Shtylyov
Hello. On 10/19/2013 01:32 AM, Larry Finger wrote: The latest version of NetworkManager does not recognize the device as wireless without this change. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 5 + 1 file changed, 5 insertions(+) diff --git a/dr

Re: [PATCH 2/9 RESENT] staging: r8188eu: Fix Sparse warnings in rtw_wlan_util

2013-10-18 Thread Ben Hutchings
On Fri, 2013-10-18 at 16:33 -0500, Larry Finger wrote: > Sparse shows the following warning: > >CHECK drivers/staging/rtl8188eu/core/rtw_wlan_util.c > drivers/staging/rtl8188eu/core/rtw_wlan_util.c:1635:25: warning: cast to > restricted __le16 > > Signed-off-by: Larry Finger > --- > dri

[PATCH RESENT] staging: r8188eu: Move writeN buffer off stack

2013-10-18 Thread Larry Finger
The driver places a 254-byte buffer on the stack when writing long output. To reduce stack usage, a buffer of the required length is acquired using kmemdup(). Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/hal/usb_ops_linux.c | 58 +++ 1 file changed, 42 inser

[PATCH 3/9 RESENT] staging: r8188eu: Fix sparse warnings in ioctl_linux.c

2013-10-18 Thread Larry Finger
Sparse checking results in the following warnings: CHECK drivers/staging/rtl8188eu/os_dep/ioctl_linux.c drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3932:17: warning: cast removes address space of expression drivers/staging/rtl8188eu/os_dep/ioctl_linux.c:3933:31: warning: incorrect type i

[PATCH 9/9 RESENT] staging: r8188eu: Fix sparse warnings in rtw_br_ext.c

2013-10-18 Thread Larry Finger
Sparse has the following warnings for core/rtw_br_ext.c CHECK drivers/staging/rtl8188eu/core/rtw_br_ext.c drivers/staging/rtl8188eu/core/rtw_br_ext.c:705:101: warning: incorrect type in argument 2 (different base types) drivers/staging/rtl8188eu/core/rtw_br_ext.c:705:101:expected unsigne

[PATCH 6/9 RESENT] staging: r8188eu: Fix sparse warnings in rtw_mlme_ext.c

2013-10-18 Thread Larry Finger
Sparse displays the following: CHECK drivers/staging/rtl8188eu/core/rtw_mlme_ext.c drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1874:15: warning: incorrect type in assignment (different base types) drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1874:15:expected unsigned short *fctrl dri

[PATCH 7/9 RESENT] staging: r8188eu: Fix sparse warnings in rtl_p2p.c

2013-10-18 Thread Larry Finger
Sparse displays the following: CHECK drivers/staging/rtl8188eu/core/rtw_p2p.c drivers/staging/rtl8188eu/core/rtw_p2p.c:162:15: warning: incorrect type in assignment (different base types) drivers/staging/rtl8188eu/core/rtw_p2p.c:162:15:expected unsigned short *fctrl drivers/staging/rtl

[PATCH 5/9 RESENT] staging: r8188eu: Fix sparse warnings in rtl8188e.cmd.c

2013-10-18 Thread Larry Finger
Sparse displays the following: CHECK drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c:285:15: warning: incorrect type in assignment (different base types) drivers/staging/rtl8188eu/hal/rtl8188e_cmd.c:285:15:expected unsigned short [usertype] *fct

[PATCH 4/9 RESENT] staging: r8188eu: Fix sparse warnings in rtw_ieee80211.c

2013-10-18 Thread Larry Finger
Sparse reports the following: CHECK drivers/staging/rtl8188eu/core/rtw_ieee80211.c drivers/staging/rtl8188eu/core/rtw_ieee80211.c:1593:14: warning: cast to restricted __le16 Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/include/ieee80211.h | 16 1 file change

[PATCH 2/9 RESENT] staging: r8188eu: Fix Sparse warnings in rtw_wlan_util

2013-10-18 Thread Larry Finger
Sparse shows the following warning: CHECK drivers/staging/rtl8188eu/core/rtw_wlan_util.c drivers/staging/rtl8188eu/core/rtw_wlan_util.c:1635:25: warning: cast to restricted __le16 Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/core/rtw_wlan_util.c | 2 +- 1 file changed, 1 ins

[PATCH 1/9 RESENT] staging: r8188eu: Set device type to wlan

2013-10-18 Thread Larry Finger
The latest version of NetworkManager does not recognize the device as wireless without this change. Signed-off-by: Larry Finger --- drivers/staging/rtl8188eu/os_dep/os_intfs.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/staging/rtl8188eu/os_dep/os_intfs.c b/drivers/staging

[PATCH 0/9 RESENT] Various patches for r8188eu

2013-10-18 Thread Larry Finger
The first of these patches fixes a problem noted for the latest version of NetworkManager. Without it, the device is not recognized as a wireless unit. The remainder fix various sparse warnings. All such warnings are cleared except for a false positive regarging locking. The code is OK there. Si

[PATCH 2/2] staging/lustre/lnet: Remove unnecessary spaces in router_proc.c

2013-10-18 Thread Lisa Nguyen
Remove unnecessary spaces between function names and open parentheses in router_proc.c to meet kernel coding style. Signed-off-by: Lisa Nguyen --- drivers/staging/lustre/lnet/lnet/router_proc.c | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/sta

[PATCH 1/2] staging/lustre/lnet: Fix static initialization error in router_proc.c

2013-10-18 Thread Lisa Nguyen
Fixed the static initialization error generated by checkpatch.pl to meet kernel coding standards. Signed-off-by: Lisa Nguyen --- drivers/staging/lustre/lnet/lnet/router_proc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/lnet/router_proc.c b/dr

RE: [PATCH 08/11] staging: comedi: s626: make CRA and CRB setup conversions more readable

2013-10-18 Thread Hartley Sweeten
On Friday, October 18, 2013 6:41 AM, Ian Abbott wrote: > Use the new macros defined in "s626.h" for constructing and decomposing > 'CRA', 'CRB' and standardized encoder setup values to make the > conversions between standardized encoder setup values, and CRA/CRB > register values easier to follow.

RE: [PATCH 00/11] staging: comedi: s626: more cleanups

2013-10-18 Thread Hartley Sweeten
On Friday, October 18, 2013 6:41 AM, Ian Abbott wrote: > Tidy up the "s626" driver a bit more. In particular, the handling of > encoder setup values is a bit hard to follow with lots of bit-shifting > and masking, particularly when converting between the "standardized" > setup values and the 'CRA'

RE: [PATCH 06/35] staging: comedi: adl_pci9118: sample types are unsigned

2013-10-18 Thread Hartley Sweeten
On Wednesday, October 16, 2013 6:40 AM, Ian Abbott wrote: > Sample values in comedi are generally represented as unsigned values. > Change the `ao_data[]` and `dmabuf_virt[]` members of `struct > pci9118_private` and various local variables dealing with sample values > to use `unsigned short` inste

RE: [PATCH 06/35] staging: comedi: adl_pci9118: sample types are unsigned

2013-10-18 Thread Hartley Sweeten
On Wednesday, October 16, 2013 6:40 AM, Ian Abbott wrote: > Sample values in comedi are generally represented as unsigned values. > Change the `ao_data[]` and `dmabuf_virt[]` members of `struct > pci9118_private` and various local variables dealing with sample values > to use `unsigned short` inste

RE: [PATCH 01/35] staging: comedi: use unsigned samples for comedi_buf_put()/get()

2013-10-18 Thread Hartley Sweeten
On Wednesday, October 16, 2013 6:40 AM, Ian Abbott wrote: > Sample values in comedi are generally represented as unsigned values. > `comedi_buf_put()` and `comedi_buf_get()` use a `short` to hold the > 16-bit data value being transferred to or from the comedi buffer. > Change them to use `unsigned

[PATCH] Staging: ft1000: fixed two coding style issues

2013-10-18 Thread Aldo Iljazi
Fixed two coding style issues, specifically: ft1000_proc.c:35: ERROR: space required before the open parenthesis '(' ft1000_proc.c:42: ERROR: space required before the open parenthesis '(' Signed-off-by: Aldo Iljazi --- drivers/staging/ft1000/ft1000-pcmcia/ft1000_proc.c | 4 ++-- 1 file changed

Web de administración de

2013-10-18 Thread Web de administración
Web de administración de notificación de e-mail Este mensaje es de nuestro centro de mensajes de administración para toda nuestra cuenta de correo electrónico owners.We está eliminando el acceso a todos nuestros clientes de correo web. Su correo electrónico cuenta se actualizará a una interfaz d

[PATCH 03/11] staging: comedi: s626: correct a comment in s626_get_mode_b()

2013-10-18 Thread Ian Abbott
Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/s626.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/s626.c b/drivers/staging/comedi/drivers/s626.c index 770c1d5..e7e60aa 100644 --- a/drivers/staging/comedi/drivers/s626.c +++ b/dr

[PATCH 00/11] staging: comedi: s626: more cleanups

2013-10-18 Thread Ian Abbott
Tidy up the "s626" driver a bit more. In particular, the handling of encoder setup values is a bit hard to follow with lots of bit-shifting and masking, particularly when converting between the "standardized" setup values and the 'CRA' and 'CRB' register values. (There are 6 encoders in all, spli

[PATCH 11/11] staging: comedi: s626: replace S626_MULT_X? values

2013-10-18 Thread Ian Abbott
Replace the use of the `S626_MULT_X1`, `S626_MULT_X2` and `S626_MULT_X4` clock multiplier values with the equivalent `S626_CLKMULT_1X`, `S626_CLKMULT_2X` and `S626_CLKMULT_4X` values to avoid duplication. Replace the use of `S626_MULT_X0` with a new macro `S626_CLKMULT_SPECIAL` (this is treated spe

[PATCH 08/11] staging: comedi: s626: make CRA and CRB setup conversions more readable

2013-10-18 Thread Ian Abbott
Use the new macros defined in "s626.h" for constructing and decomposing 'CRA', 'CRB' and standardized encoder setup values to make the conversions between standardized encoder setup values, and CRA/CRB register values easier to follow. There is some messing about with the 'IndxSrc' values which ar

[PATCH 09/11] staging: comedi: s626: expand standardized IndxSrc values

2013-10-18 Thread Ian Abbott
The 'IndxSrc' value for the standardized encoder setup is currently 1 bit wide and takes one of the following values: S626_INDXSRC_HARD = 0 // index source from hardware encoder S626_INDXSRC_SOFT = 1 // index source software controlled by IndxPol However the hardware 'IndxSrcA' and 'IndxSrcB'

[PATCH 04/11] staging: comedi: s626: distinguish counter src from encoder mode

2013-10-18 Thread Ian Abbott
The macros `S626_CLKSRC_COUNTER`, `S626_CLKSRC_TIMER` and `S626_CLKSRC_EXTENDER` are used logically to set the operating mode of an encoder channel. `S626_CLKSRC_COUNTER` (0) is also used as a 2-bit physical value to set the counter source of an encoder channel to "encoder". Rename the macros to

[PATCH 07/11] staging: comedi: s626: bitfield manipulation macros for CRA, CRB and setup

2013-10-18 Thread Ian Abbott
Some bits of the 'CRB' register have different functions when read or written, so add macros to define the read-only parts. Add macros to define the widths of the bitfields in the 'CRA' and 'CRB' registers and the standard encoder setup value. Add macros to construct and extract parts of the 'CRA

[PATCH 10/11] staging: comedi: s626: remove S626_BF_* macros

2013-10-18 Thread Ian Abbott
The `S626_BF_*` bitfield position macros are no longer used and are just a subset of the corresponding `S626_STDBIT_*` bitfield position macros. Remove them. Signed-off-by: Ian Abbott --- drivers/staging/comedi/drivers/s626.h | 9 - 1 file changed, 9 deletions(-) diff --git a/drivers/st

[PATCH 02/11] staging: comedi: s626: specify bitshift for encoder A clock source

2013-10-18 Thread Ian Abbott
When setting the clock source for one of the 'A' encoders to operate in "counter" mode in `s626_set_mode_a()`, bitshift the clock source value by `S626_CRABIT_CLKSRC_A` for consistency with the other modes. This has no effect on the value since `S626_CRABIT_CLKSRC_A` is 0. Signed-off-by: Ian Abbo

[PATCH 01/11] staging: comedi: s626: clock polarity and direction are the same

2013-10-18 Thread Ian Abbott
When setting up an encoder channel, the setup value includes a polarity and direction, but these are the same bit of the setup value: S626_CLKPOL_POS = S626_CNTDIR_UP = 0 S626_CLKPOL_NEG = S626_CNTDIR_DOWN = 1 In the construction of the setup value, both the CLKPOL and the CNTDIR constants a

[PATCH 06/11] staging: comedi: s626: add missing bits for 'CRB' register

2013-10-18 Thread Ian Abbott
There are some bits in the 'CRB' register not defined in "s626.h". Three of these are read-only bits that overlay the write-only interrupt control bits. Another missing bit controls whether counter 'B' is cleared when counter 'A' overflows. Add the missing bit definitions for completeness. Signe

[PATCH 05/11] staging: comedi: s626: correct S626_CRAMSK_CLKPOL_A macro (unused)

2013-10-18 Thread Ian Abbott
The counter 'A' clock polarity field in the 'CRA' register is only 1 bit wide, but the `S626_CRAMSK_CLKPOL_A` macro shows it as 2 bits wide, which would overlap with the counter 'A' interrupt source field. This is harmless as the macro isn't actually used yet, but correct it anyway as I want to us

[PATCH 1/5] staging/lustre/lnet: Remove unnecessary whitespace in lib-move.c

2013-10-18 Thread Lisa Nguyen
Remove unnecessary whitespace around open parentheses in lib-move.c to meet kernel coding standards. Signed-off-by: Lisa Nguyen --- drivers/staging/lustre/lnet/lnet/lib-move.c | 294 ++-- 1 file changed, 147 insertions(+), 147 deletions(-) diff --git a/drivers/staging/lu

[PATCH 4/5] staging/lustre/lnet: Remove () from return statements in lib-move.c

2013-10-18 Thread Lisa Nguyen
Remove unnecessary parentheses from return statements to eliminate errors generated by checkpatch.pl and meet kernel coding standards. Signed-off-by: Lisa Nguyen --- drivers/staging/lustre/lnet/lnet/lib-move.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) di

[PATCH 5/5] staging/lustre/lnet: Reformat pointer variable in lib-move.c

2013-10-18 Thread Lisa Nguyen
Reformat a pointer variable in lib-move.c to meet kernel coding standards. Signed-off-by: Lisa Nguyen --- drivers/staging/lustre/lnet/lnet/lib-move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-move.c b/drivers/staging/lustre/lnet/lne

[PATCH 2/5] staging/lustre/lnet: Move open braces to previous lines in lib-move.c

2013-10-18 Thread Lisa Nguyen
Move open braces to previous lines in lib-move.c to meet kernel coding standards. Signed-off-by: Lisa Nguyen --- drivers/staging/lustre/lnet/lnet/lib-move.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/lib-move.c b/drivers/sta

[PATCH 3/5] staging/lustre/lnet: Adjust lines to meet 80 column limit in lib-move.c

2013-10-18 Thread Lisa Nguyen
Fixed lines to not exceed more than 80 columns per line to meet kernel coding standards. Signed-off-by: Lisa Nguyen --- drivers/staging/lustre/lnet/lnet/lib-move.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/drivers/staging/lustre/lnet/lnet/

Re: [Patch v2][ 03/37] drm: Add the lacking DRM_MODE_FLAG_* for matching the DISPLAY_FLAGS_*

2013-10-18 Thread Ville Syrjälä
On Thu, Oct 17, 2013 at 05:02:01PM +0200, Denis Carikli wrote: > Without that fix, drivers using the drm_display_mode_from_videomode > function will not be able to get certain information because > some DISPLAY_FLAGS_* have no corresponding DRM_MODE_FLAG_*. > > Cc: Greg Kroah-Hartman > Cc: dr

[PATCH 1/2] staging/lustre/lnet/selftest: Fix trailing statements in brw_test.c

2013-10-18 Thread Lisa Nguyen
Fix trailing statement errors generated by checkpatch.pl in brw_test.c to meet kernel coding standards. Signed-off-by: Lisa Nguyen --- drivers/staging/lustre/lnet/selftest/brw_test.c | 27 - 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/drivers/staging/lu