Re: [Outreachy kernel] [PATCH 2/7] staging: most: Using macro DIV_ROUND_UP

2017-02-21 Thread Julia Lawall
On Tue, 21 Feb 2017, SIMRAN SINGHAL wrote: > > > On Wednesday, February 22, 2017 at 1:28:52 AM UTC+5:30, Julia Lawall wrote: > > > On Wed, 22 Feb 2017, simran singhal wrote: > > > The macro DIV_ROUND_UP performs the computation (((n) + (d) - > 1) /(d)). > > It clarifies t

Re: [Outreachy kernel] [PATCH v3] staging: xgifb: function definition argument should also have an identifier name

2017-02-21 Thread Julia Lawall
On Wed, 22 Feb 2017, Arushi Singhal wrote: > function definition argument like 'struct vb_device_info *','unsigned > long' etc. should also have an identifier name. Actually, this is not really clear. The definition of a function is the thing that has the actual code, like int foo(int x) { re

[PATCH-SPEAKUP 1/2] return same error value from spk_set_key_info

2017-02-21 Thread Pranay Kr. Srivastava
This patch makes spk_set_key_info return -EINVAL in case of failure instead of returning 4 different values for the type of error that occurred. Print the offending values instead as debug message. Signed-off-by: Pranay Kr. Srivastava --- drivers/staging/speakup/main.c | 27 +++-

[PATCH-SPEAKUP 2/2] remove unecessary initial allocation of vc

2017-02-21 Thread Pranay Kr. Srivastava
This patch removes the unnecessary allocation of current foreground vc during initialization. This initialization is already handled in the loop that follows it for all available virtual consoles. Also change the prototype of speakup_allocate to take extra argument of gfp_* flags. Thus not requir

[no subject]

2017-02-21 Thread Pranay Kr. Srivastava
Sending both patches as series instead. Made the required changes as suggessted in earlier versions and fixed the warnings reported from kbuild test robot. ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailm

Re: [Outreachy kernel] [PATCH] staging: wilc1000: renames struct tstrRSSI and its members u8Index, u8Full

2017-02-21 Thread Julia Lawall
On Tue, 21 Feb 2017, Tahia Khan wrote: > Fixes multiple camel case checks on struct tstrRSSI from checkpatch.pl: > > Avoid CamelCase: > Avoid CamelCase: > Avoid CamelCase: > > Signed-off-by: Tahia Khan > --- > drivers/staging/wilc1000/coreconfigurator.h | 8 > drivers/stagin

[PATCH] staging: wilc1000: renames struct tstrRSSI and its members u8Index, u8Full

2017-02-21 Thread Tahia Khan
Fixes multiple camel case checks on struct tstrRSSI from checkpatch.pl: Avoid CamelCase: Avoid CamelCase: Avoid CamelCase: Signed-off-by: Tahia Khan --- drivers/staging/wilc1000/coreconfigurator.h | 8 drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 10 +- 2 files

Re: [Outreachy kernel] [PATCH] staging: xgifb: correct the multiple line dereference to fix coding stye errors

2017-02-21 Thread Joe Perches
On Wed, 2017-02-22 at 09:46 +0530, Arushi Singhal wrote: > On Wed, Feb 22, 2017 at 12:12 AM, Joe Perches wrote: > > > On Tue, 2017-02-21 at 18:40 +0100, Julia Lawall wrote: > > > > > > On Tue, 21 Feb 2017, Arushi Singhal wrote: > > > > > > > Error was reported by checkpatch.pl as > > > > WARNIN

[PATCH v3] staging: xgifb: function definition argument should also have an identifier name

2017-02-21 Thread Arushi Singhal
function definition argument like 'struct vb_device_info *','unsigned long' etc. should also have an identifier name. Signed-off-by: Arushi Singhal --- Changes in v2: - By mistake one irrelevant line was added which is removed in this patch. - write the changes done in previous version in

[PATCH 3/7] staging: gdm724x: Drop useless initialisation

2017-02-21 Thread simran singhal
Removed initialisation of a varible if it is immediately reassigned. Changes were made using Coccinelle. @@ type T; constant C; expression e; identifier i; @@ T i - = C ; i = e; Signed-off-by: simran singhal --- drivers/staging/gdm724x/gdm_lte.c | 2 +- drivers/staging/gdm724x/gdm_mux.c | 4 ++

Bonjour!!!

2017-02-21 Thread Rachel Thivet
Juste un coucou pour te signifier que, j aimerais mieux te connaitre, je veux surtout, échanger, partager, discuter avec toi . en somme, mieux faire ta connaissance ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproje

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-02-21 Thread Steve Longerbeam
On 02/21/2017 02:21 PM, Steve Longerbeam wrote: On 02/21/2017 04:15 AM, Sakari Ailus wrote: Hi Steve, On Mon, Feb 20, 2017 at 02:56:15PM -0800, Steve Longerbeam wrote: On 02/20/2017 02:04 PM, Sakari Ailus wrote: Hi Steve, On Wed, Feb 15, 2017 at 06:19:31PM -0800, Steve Longerbeam wrote

Re: [PATCH 1/3] staging: comedi: Fix checkpatch CONST_STRUCT

2017-02-21 Thread Ian Abbott
On 21/02/17 11:18, Tobin C. Harding wrote: Checkpatch emits WARNING: struct comedi_lrange should normally be const. Add const keyword to definition of struct. Signed-off-by: Tobin C. Harding --- drivers/staging/comedi/drivers/addi_apci_3501.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion

[PATCH] staging: comedi: s626: Kernel doc format comments

2017-02-21 Thread Tobin C. Harding
Checkpatch emits WARNING: Block comments use a trailing */ on a separate line. Offending comments are commenting variables within the main data structure of s626 driver. We can move these comments to kernel doc format with the benefit of clearing the warning and improving the documentation for the

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-02-21 Thread Steve Longerbeam
On 02/21/2017 04:15 AM, Sakari Ailus wrote: Hi Steve, On Mon, Feb 20, 2017 at 02:56:15PM -0800, Steve Longerbeam wrote: On 02/20/2017 02:04 PM, Sakari Ailus wrote: Hi Steve, On Wed, Feb 15, 2017 at 06:19:31PM -0800, Steve Longerbeam wrote: From: Russell King Setting and getting frame r

Re: Comedi use of standard types

2017-02-21 Thread Tobin C. Harding
On Wed, Feb 22, 2017 at 08:27:37AM +1100, Tobin C. Harding wrote: > Comedi drivers make heavy use of standard types i.e unsigned > short. According to Linux Device Drivers standard C data types are not > the same size of all architectures. > > Should we be converting comedi/drivers to use kernel t

Comedi use of standard types

2017-02-21 Thread Tobin C. Harding
Comedi drivers make heavy use of standard types i.e unsigned short. According to Linux Device Drivers standard C data types are not the same size of all architectures. Should we be converting comedi/drivers to use kernel types u8, u16 etc Follow up question. Some comedi/drivers also use unsigned

Re: [PATCH 5/6] staging: lustre: Using macro DIV_ROUND_UP

2017-02-21 Thread Joe Perches
On Tue, 2017-02-21 at 23:16 +0530, simran singhal wrote: > The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)). > It clarifies the divisor calculations. This occurence was detected using > the coccinelle script: > > @@ > expression e1; > expression e2; > @@ > ( > - ((e1) + e2 -

Re: [PATCH] staging: xgifb: function definition argument should have an identifier name

2017-02-21 Thread kbuild test robot
Hi Arushi, [auto build test ERROR on v4.9-rc8] [cannot apply to staging/staging-testing next-20170220] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0day-ci/linux/commits/Arushi-Singhal/staging-xgifb-function-defini

Re: [PATCH 3/3] staging: comedi: Fix checkpatch MULTILINE_DEREFERENCE

2017-02-21 Thread Tobin C. Harding
On Tue, Feb 21, 2017 at 04:00:40PM +, Ian Abbott wrote: > On 21/02/17 11:18, Tobin C. Harding wrote: > >Checkpatch emits multiple WARNING: Avoid multiple line dereference. > >Removing these warnings will result in line over 80 warnings being > >introduced. However, > > > >Documentation/process/

Re: [PATCH 2/3] staging: comedi: Remove level of indentation

2017-02-21 Thread Tobin C. Harding
Re-send and include cc's On Tue, Feb 21, 2017 at 03:55:18PM +, Ian Abbott wrote: > On 21/02/17 11:18, Tobin C. Harding wrote: > > For comedi patches affecting a single driver, we prefer the driver name to > be mentioned in the patch subject, like... > > staging: comedi: cb_pcidas64: blah bla

Re: [PATCH] staging/ks7010: formatting updates.

2017-02-21 Thread Joe Perches
On Tue, 2017-02-21 at 11:48 -0800, Matthew Giassa wrote: > * Joe Perches [2017-02-21 10:47:31 -0800]: > > > On Tue, 2017-02-21 at 09:32 -0800, Matthew Giassa wrote: > > > * Geert Uytterhoeven [2017-02-21 15:22:10 +0100]: > > > > > > > The first declaration fit nicely on a single line. > > > > T

Re: [Outreachy kernel] [PATCH 2/7] staging: most: Using macro DIV_ROUND_UP

2017-02-21 Thread Julia Lawall
On Wed, 22 Feb 2017, simran singhal wrote: > The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)). > It clarifies the divisor calculations. This occurence was detected using > the coccinelle script: > > @@ > expression e1; > expression e2; > @@ > ( > - ((e1) + e2 - 1) / (e2) >

Re: [Outreachy kernel] [PATCH v2] staging: xgifb: function definition argument should also have an identifier name'

2017-02-21 Thread Julia Lawall
On Wed, 22 Feb 2017, Arushi Singhal wrote: > function definition argument like 'struct vb_device_info *','unsigned > long' etc. should also have an identifier name. > > Signed-off-by: Arushi Singhal > Changes in v2: > - By mistake one irrelevant line was added which is removed in this > pat

Re: [PATCH] staging/ks7010: formatting updates.

2017-02-21 Thread Matthew Giassa
* Joe Perches [2017-02-21 10:47:31 -0800]: On Tue, 2017-02-21 at 09:32 -0800, Matthew Giassa wrote: * Geert Uytterhoeven [2017-02-21 15:22:10 +0100]: > The first declaration fit nicely on a single line. > The second one indeed has a few spaces instead of TABs in the > continuation line. But

[PATCH v2] staging: xgifb: function definition argument should also have an identifier name'

2017-02-21 Thread Arushi Singhal
function definition argument like 'struct vb_device_info *','unsigned long' etc. should also have an identifier name. Signed-off-by: Arushi Singhal Changes in v2: - By mistake one irrelevant line was added which is removed in this patch. --- drivers/staging/xgifb/vb_setmode.h | 18

Re: [Linaro-mm-sig] [RFCv3][PATCH 3/5] arm64: Implement ARCH_HAS_FORCE_CACHE

2017-02-21 Thread Laura Abbott
On 02/20/2017 10:05 PM, Chen Feng wrote: > Hi Laura, > > When we enable kernel v4.4 or newer version on our platform, we meet the issue > of flushing cache without reference device. It seems that this patch set is > a solution. I'm curious the progress of the discussion. Do you have any plan > to

[PATCH 2/7] staging: most: Using macro DIV_ROUND_UP

2017-02-21 Thread simran singhal
The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)). It clarifies the divisor calculations. This occurence was detected using the coccinelle script: @@ expression e1; expression e2; @@ ( - ((e1) + e2 - 1) / (e2) + DIV_ROUND_UP(e1,e2) | - ((e1) + (e2 - 1)) / (e2) + DIV_ROUND_UP(e

[PATCH 1/7] staging: vc04_services: Using macro DIV_ROUND_UP

2017-02-21 Thread simran singhal
The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)). It clarifies the divisor calculations. This occurence was detected using the coccinelle script: @@ expression e1; expression e2; @@ ( - ((e1) + e2 - 1) / (e2) + DIV_ROUND_UP(e1,e2) | - ((e1) + (e2 - 1)) / (e2) + DIV_ROUND_UP(e

Re: [PATCH] staging/ks7010: formatting updates.

2017-02-21 Thread Joe Perches
On Tue, 2017-02-21 at 09:32 -0800, Matthew Giassa wrote: > * Geert Uytterhoeven [2017-02-21 15:22:10 +0100]: > > > The first declaration fit nicely on a single line. > > The second one indeed has a few spaces instead of TABs in the > > continuation line. But that can be fixed easily, without movi

Re: [Outreachy kernel] [PATCH] staging: xgifb: correct the multiple line dereference to fix coding stye errors

2017-02-21 Thread Joe Perches
On Tue, 2017-02-21 at 18:40 +0100, Julia Lawall wrote: > > On Tue, 21 Feb 2017, Arushi Singhal wrote: > > > Error was reported by checkpatch.pl as > > WARNING: Avoid multiple line dereference... > > if there is boolean operator then it is fixed by Splitting line at > > boolean operator. > > This

[PATCH 6/6] staging: comedi: Using macro DIV_ROUND_UP

2017-02-21 Thread simran singhal
The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)). It clarifies the divisor calculations. This occurence was detected using the coccinelle script: @@ expression e1; expression e2; @@ ( - ((e1) + e2 - 1) / (e2) + DIV_ROUND_UP(e1,e2) | - ((e1) + (e2 - 1)) / (e2) + DIV_ROUND_UP(e

Re: [Outreachy kernel] [PATCH] staging: xgifb: function definition argument should have an identifier name

2017-02-21 Thread Julia Lawall
On Tue, 21 Feb 2017, Arushi Singhal wrote: > function definition argument like 'struct vb_device_info *','unsigned > long' etc. should have an identifier name. > > Signed-off-by: Arushi Singhal > --- > drivers/staging/xgifb/vb_setmode.h | 19 ++- > 1 file changed, 10 insertions

[PATCH 11/12] staging: unisys: visorbus: remove character device interface

2017-02-21 Thread David Kershner
From: Sameer Wadgaonkar Removed the character device interface from visorchipset and removed the major and minor numbers. Reported-by: Greg Kroah-Hartman Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c |

[PATCH] staging: xgifb: function definition argument should have an identifier name

2017-02-21 Thread Arushi Singhal
function definition argument like 'struct vb_device_info *','unsigned long' etc. should have an identifier name. Signed-off-by: Arushi Singhal --- drivers/staging/xgifb/vb_setmode.h | 19 ++- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/drivers/staging/xgifb/vb_

Re: [PATCH] Staging: comedi: drivers: comedi_test: Avoid multiple line dereference

2017-02-21 Thread Joe Perches
On Wed, 2017-02-22 at 00:31 +0800, Cheah Kok Cheong wrote: > > Another option could be using the typedefs from include/linux/types.h, > > e.g. ushort. However, this might require changing other declarations as > > well to keep consistency. > > Thanks for the idea. I counted seven instances of 'un

Re: [Outreachy kernel] [PATCH 4/6] staging: Drop useless initialisation

2017-02-21 Thread Julia Lawall
> Also, note that the above semantic patch is not completely safe, > because > the code could be, eg: > > int a = 0; > a = a + 1; > > In that case, the initialization of a would be needed.  You > should check > each case for this issue. > > > I have c

[PATCH 05/12] staging: unisys: visorbus: visorbus_main.c: Remove kernel-doc comments

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comments that precede static functions. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 36 +- 1 file changed, 18 insertions(+), 18 delet

[PATCH 07/12] staging: unisys: visorbus: vbuschannel.h: Remove kernel-doc comment

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comment that precedes a static function. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/vbuschannel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/

[PATCH 10/12] staging: unisys: visorbus: added struct visorchipset_device

2017-02-21 Thread David Kershner
From: Sameer Wadgaonkar Added the structure visorchipset_device and moved the globals to the struct. The visorchipset_init() function saves acpi_device within this structure. Reported-by: Greg Kroah-Hartman Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell

[PATCH 09/12] staging: unisys: visorhba: visorhba_main.c: Remove kernel-doc comments

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comments that precede static functions. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorhba/visorhba_main.c | 64 +- 1 file changed, 32 insertions(+), 32 delet

[PATCH 06/12] staging: unisys: visorbus: visorchipset.c: Remove kernel-doc comments

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comments that precede static functions. Reported-by: Greg Kroah-Hartman Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchipset.c | 24 +-- 1 file ch

[PATCH 12/12] staging: unisys: visorbus: remove visorchipset_platform_device

2017-02-21 Thread David Kershner
From: Sameer Wadgaonkar Removed visorchipset_platform_device and all the unused structures and functions and using chipset_dev.acpi_device instead. Reported-by: Greg Kroah-Hartman Signed-off-by: Sameer Wadgaonkar Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys

[PATCH 02/12] staging: unisys: visorbus: Fix spelling mistake

2017-02-21 Thread David Kershner
From: David Binder Fixes a minor spelling mistake in a function comment. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorbus_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/stagi

[PATCH 04/12] staging: unisys: visorbus: visorchannel.c: Remove kernel-doc comment

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comment that precedes a static function. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchannel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

[PATCH 00/12] staging: unisys: remove platform device and use acpi device.

2017-02-21 Thread David Kershner
The visorchipset device is not really a platform device but an acpi device. This patch series removes the creation of the platform device and uses the acpi device as needed. This series also cleans up some misused kernel-doc comments. David Binder (9): staging: unisys: visorbus: Move kernel-doc

[PATCH 08/12] staging: unisys: visornic: visornic_main.c: Remove kernel-doc comments

2017-02-21 Thread David Kershner
From: David Binder Removes kernel-doc formatting for comments that precede static functions. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visornic/visornic_main.c | 70 +- 1 file changed, 35 insertions(+), 35 delet

[PATCH 03/12] staging: unisys: visorhba: Make miscellaneous comment corrections

2017-02-21 Thread David Kershner
From: David Binder Fixes miscellaneous comment issues in visorhba_main.c. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorhba/visorhba_main.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/sta

[PATCH 01/12] staging: unisys: visorbus: Move kernel-doc comment to proper location

2017-02-21 Thread David Kershner
From: David Binder Moves kernel-doc comment in front of the function it describes. Signed-off-by: David Binder Signed-off-by: David Kershner Reviewed-by: Tim Sell --- drivers/staging/unisys/visorbus/visorchannel.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) di

[PATCH 5/6] staging: lustre: Using macro DIV_ROUND_UP

2017-02-21 Thread simran singhal
The macro DIV_ROUND_UP performs the computation (((n) + (d) - 1) /(d)). It clarifies the divisor calculations. This occurence was detected using the coccinelle script: @@ expression e1; expression e2; @@ ( - ((e1) + e2 - 1) / (e2) + DIV_ROUND_UP(e1,e2) | - ((e1) + (e2 - 1)) / (e2) + DIV_ROUND_UP(e

Re: [Outreachy kernel] [PATCH] staging: xgifb: correct the multiple line dereference to fix coding stye errors

2017-02-21 Thread Julia Lawall
On Tue, 21 Feb 2017, Arushi Singhal wrote: > Error was reported by checkpatch.pl as > WARNING: Avoid multiple line dereference... > if there is boolean operator then it is fixed by Splitting line at > boolean operator. This is massively execeeding the 80 character boundary, and not for somethin

Re: [Outreachy kernel] [PATCH 4/6] staging: Drop useless initialisation

2017-02-21 Thread Julia Lawall
On Tue, 21 Feb 2017, simran singhal wrote: > Removed initialisation of a varible if it is immediately reassigned. varible -> variable > > Changes were made using Coccinelle. > > @@ > type T; > constant C; > expression e; > identifier i; > @@ > > T i > - = C > ; > i = e; This is a big patch, a

Re: [PATCH] staging/ks7010: formatting updates.

2017-02-21 Thread Matthew Giassa
* Geert Uytterhoeven [2017-02-21 15:22:10 +0100]: The first declaration fit nicely on a single line. The second one indeed has a few spaces instead of TABs in the continuation line. But that can be fixed easily, without moving the first parameter to a continuation line. What would the propose

[PATCH v2] Staging: comedi: drivers: comedi_test: Avoid multiple line dereference

2017-02-21 Thread Cheah Kok Cheong
Fix checkpatch warning "Avoid multiple line dereference" using a pointer variable to avoid line wrap. Signed-off-by: Cheah Kok Cheong --- V2: -Use pointer instead of normal variable - Ian -Variable is to be used as "write destination" and not as "read source" - Ian drivers/staging/comedi/driv

[PATCH] staging: xgifb: correct the multiple line dereference to fix coding stye errors

2017-02-21 Thread Arushi Singhal
Error was reported by checkpatch.pl as WARNING: Avoid multiple line dereference... if there is boolean operator then it is fixed by Splitting line at boolean operator. Signed-off-by: Arushi Singhal --- drivers/staging/xgifb/XGI_main_26.c | 15 +-- drivers/staging/xgifb/vb_setmode.c

[PATCH 4/6] staging: Drop useless initialisation

2017-02-21 Thread simran singhal
Removed initialisation of a varible if it is immediately reassigned. Changes were made using Coccinelle. @@ type T; constant C; expression e; identifier i; @@ T i - = C ; i = e; Signed-off-by: simran singhal --- drivers/staging/android/ion/ion_heap.c | 2 +- drivers/staging/gdm72

Re: [Outreachy kernel] [PATCH 2/2] staging: ks7010: Unnecessary parentheses are removed and also improved coding style.

2017-02-21 Thread Julia Lawall
On Tue, 21 Feb 2017, Arushi Singhal wrote: > Unnecessary parentheses are removed as reported by checkpatch.pl > to make coder nicer and to improve readability. > Also coding style is improved.For example:- > It's often nicer to read if &(foo[0]) is converted to foo like: > memcpy(&(ap->bssi

[PATCH 2/2] staging: ks7010: Unnecessary parentheses are removed and also improved coding style.

2017-02-21 Thread Arushi Singhal
Unnecessary parentheses are removed as reported by checkpatch.pl to make coder nicer and to improve readability. Also coding style is improved.For example:- It's often nicer to read if &(foo[0]) is converted to foo like: memcpy(&(ap->bssid[0]), &(ap_info->bssid[0]), ETH_ALEN); memcpy(ap->

Re: [PATCH] Staging: comedi: drivers: comedi_test: Avoid multiple line dereference

2017-02-21 Thread Cheah Kok Cheong
On Tue, Feb 21, 2017 at 11:20:08AM +0100, Valentin Rothberg wrote: > On Feb 21 '17 10:12, Ian Abbott wrote: > > On 21/02/2017 09:33, Cheah Kok Cheong wrote: > > > On Mon, Feb 20, 2017 at 05:36:52PM +, Ian Abbott wrote: > > > > On 20/02/17 16:02, Cheah Kok Cheong wrote: > > > > > On Mon, Feb 20,

Re: [PATCH 2/3] staging: comedi: Remove level of indentation

2017-02-21 Thread Ian Abbott
On 21/02/17 11:18, Tobin C. Harding wrote: For comedi patches affecting a single driver, we prefer the driver name to be mentioned in the patch subject, like... staging: comedi: cb_pcidas64: blah blah For loop contains only an if conditional (and body of if conditional). Conditional can be i

[PATCH 1/1] staging: ks7010: Unnecessary parentheses are removed and also improved coding style.

2017-02-21 Thread Arushi Singhal
Unnecessary parentheses are removed as reported by checkpatch.pl to make coder nicer and to improve readability. Also coding style is improved.For example:- It's often nicer to read if &(foo[0]) is converted to foo like: memcpy(&(ap->bssid[0]), &(ap_info->bssid[0]), ETH_ALEN); memcpy(ap->

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-02-21 Thread Sakari Ailus
On Tue, Feb 21, 2017 at 04:03:32PM +, Russell King - ARM Linux wrote: > On Tue, Feb 21, 2017 at 05:38:34PM +0200, Sakari Ailus wrote: > > Hi Russell, > > > > On Tue, Feb 21, 2017 at 01:21:32PM +, Russell King - ARM Linux wrote: > > > On Tue, Feb 21, 2017 at 02:37:57PM +0200, Sakari Ailus w

Re: [PATCH V2] staging: vchiq_2835_arm: Make cache-line-size a required DT property

2017-02-21 Thread Stefan Wahren
Am 18.02.2017 um 12:22 schrieb Michael Zoran: The original github source allowed for the cache-line-size property to be missing. Since recent firmwares also require this property, it makes sense to always require it in the driver as well. If the cache-line-size property is missing, then the dri

Re: [PATCH 3/3] staging: comedi: Fix checkpatch MULTILINE_DEREFERENCE

2017-02-21 Thread Ian Abbott
On 21/02/17 11:18, Tobin C. Harding wrote: Checkpatch emits multiple WARNING: Avoid multiple line dereference. Removing these warnings will result in line over 80 warnings being introduced. However, Documentation/process/coding-style.rst: "Statements longer than 80 columns will be broken into se

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-02-21 Thread Russell King - ARM Linux
On Tue, Feb 21, 2017 at 05:38:34PM +0200, Sakari Ailus wrote: > Hi Russell, > > On Tue, Feb 21, 2017 at 01:21:32PM +, Russell King - ARM Linux wrote: > > On Tue, Feb 21, 2017 at 02:37:57PM +0200, Sakari Ailus wrote: > > > Hi Russell, > > > > > > On Tue, Feb 21, 2017 at 12:13:32AM +, Russe

[PATCH] staging: vc04_services: Fixed 'missing a blank line' warnings.

2017-02-21 Thread Yamanappagouda Patil
Fixed checkpatch.pl "missing a blank line after declarations" warning messages in vc04_services module. Signed-off-by: Yamanappagouda Patil --- .../interface/vchiq_arm/vchiq_2835_arm.c | 3 ++ .../vc04_services/interface/vchiq_arm/vchiq_arm.c | 39 +++--- .../vc04_ser

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-02-21 Thread Sakari Ailus
Hi Russell, On Tue, Feb 21, 2017 at 01:21:32PM +, Russell King - ARM Linux wrote: > On Tue, Feb 21, 2017 at 02:37:57PM +0200, Sakari Ailus wrote: > > Hi Russell, > > > > On Tue, Feb 21, 2017 at 12:13:32AM +, Russell King - ARM Linux wrote: > > > On Tue, Feb 21, 2017 at 12:04:10AM +0200, S

Re: [PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread kbuild test robot
-error-value-from-spk_set_key_info/20170221-224753 config: i386-randconfig-i1-201708 (attached as .config) compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): drivers/s

Re: [PATCH] Staging: board: Fix macro code style error

2017-02-21 Thread Valentin Hübner
On Mon, Feb 20, 2017 at 06:55:06PM +0100, Greg Kroah-Hartman wrote: > checkpatch is wrong here, you are now adding more lines than you remove: I see, thank you! Valentin ___ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverpro

Re: [PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread kbuild test robot
-error-value-from-spk_set_key_info/20170221-224753 config: i386-randconfig-x018-201708 (attached as .config) compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901 reproduce: # save the attached .config to linux build tree make ARCH=i386 All warnings (new ones prefixed by >>): I

[PATCH] staging: rtl8188eu: Fixed "Missing a blank line after declarations".

2017-02-21 Thread Yamanappagouda Patil
Fixed checkpatch.pl "missing a blank line after declarations" waring messages from rtl8188eu module. Signed-off-by: Yamanappagouda Patil --- drivers/staging/rtl8188eu/hal/odm.c | 3 +++ drivers/staging/rtl8188eu/hal/odm_RTL8188E.c | 1 + drivers/staging/rtl8188eu/hal/phy.c

Re: [PATCH] staging/ks7010: formatting updates.

2017-02-21 Thread Geert Uytterhoeven
Hi Matthew, On Tue, Feb 21, 2017 at 3:12 PM, Matthew Giassa wrote: >>> drivers/staging/ks7010/ks_wlan_ioctl.h | 80 >>> +- >>> 1 file changed, 41 insertions(+), 39 deletions(-) >>> >>> diff --git a/drivers/staging/ks7010/ks_wlan_ioctl.h >>> b/drivers/staging/ks701

Re: [PATCH] staging/ks7010: formatting updates.

2017-02-21 Thread Matthew Giassa
* Geert Uytterhoeven [2017-02-21 08:59:18 +0100]: Hi Geert, On Tue, Feb 21, 2017 at 5:20 AM, Matthew Giassa wrote: Please pardon the earlier e-mail which was missing the changelog text. This line should be between the "---" and the diffstat below. Thank you. Some additional style chan

Re: [PATCH] remove unnecessary initial allocation of vc

2017-02-21 Thread Samuel Thibault
Pranay Kr. Srivastava, on mar. 21 févr. 2017 19:33:32 +0530, wrote: > This patch removes the unnecessary allocation of > current foreground vc during initialization. > > Also change the prototype of speakup_allocate to take > extra argument of gfp_* flags. Thus not requiring > GFP_ATOMIC during in

Re: [Outreachy kernel] [PATCH v2 1/2] staging: ks7010: Unnecessary parentheses are removed and also improved coding style.

2017-02-21 Thread Julia Lawall
On Tue, 21 Feb 2017, Arushi Singhal wrote: > Unnecessary parentheses are removed as reported by checkpatch.pl > to make coder nicer and to improve readability. > Also coding style is improved.For example:- > It's often nicer to read if &(foo[0]) is converted to foo like: > memcpy(&(ap->bssi

[PATCH] remove unnecessary initial allocation of vc

2017-02-21 Thread Pranay Kr. Srivastava
This patch removes the unnecessary allocation of current foreground vc during initialization. Also change the prototype of speakup_allocate to take extra argument of gfp_* flags. Thus not requiring GFP_ATOMIC during initialization. Signed-off-by: Pranay Kr. Srivastava --- drivers/staging/speaku

[PATCH v2 1/2] staging: ks7010: Unnecessary parentheses are removed and also improved coding style.

2017-02-21 Thread Arushi Singhal
Unnecessary parentheses are removed as reported by checkpatch.pl to make coder nicer and to improve readability. Also coding style is improved.For example:- It's often nicer to read if &(foo[0]) is converted to foo like: memcpy(&(ap->bssid[0]), &(ap_info->bssid[0]), ETH_ALEN); memcpy(ap->

Re: [PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread Samuel Thibault
Pranay Kr. Srivastava, on mar. 21 févr. 2017 19:14:38 +0530, wrote: > + if (key_data_len + SHIFT_TBL_SIZE + 4 >= sizeof(spk_key_buf)) { > + pr_debug("key_data_len = %d, SHIFT_TBL_SIZE + 4 = %d,\t" > + "sizeof(spk_key_buf) = %lu\n", key_data_len, > +

Re: [greybus-dev] [Outreachy kernel] [PATCH v2 3/6] staging: greybus: Remove unnecessary braces

2017-02-21 Thread Alex Elder
On 02/21/2017 07:44 AM, Johan Hovold wrote: > On Tue, Feb 21, 2017 at 02:20:50PM +0100, Julia Lawall wrote: >> >> >> On Tue, 21 Feb 2017, simran singhal wrote: >> >>> This patch removes braces for single statement blocks. The warning >>> was detected using checkpatch.pl. >>> Coccinelle was used to

[PATCH Speakup v2] return same error value from spk_set_key_info

2017-02-21 Thread Pranay Kr. Srivastava
This patch makes spk_set_key_info return -EINVAL in case of failure instead of returning 4 different values for the type of error that occurred. Print the offending values instead as debug message. Signed-off-by: Pranay Kr. Srivastava --- drivers/staging/speakup/main.c | 28

Re: [Outreachy kernel] [PATCH v2 3/6] staging: greybus: Remove unnecessary braces

2017-02-21 Thread Johan Hovold
On Tue, Feb 21, 2017 at 02:20:50PM +0100, Julia Lawall wrote: > > > On Tue, 21 Feb 2017, simran singhal wrote: > > > This patch removes braces for single statement blocks. The warning > > was detected using checkpatch.pl. > > Coccinelle was used to make the change. > > > > @@ > > expression e,e1

[PATCH v2] staging:fbtft: Fix some warnings regarding types.

2017-02-21 Thread Anthony Brandon
Running make C=1 M=drivers/staging/fbtft reports warnings about conversion from __be16 to unsigned short. Change the type of the variables being assigned into __be16 to remove those warnings. Signed-off-by: Anthony Brandon --- drivers/staging/fbtft/fb_ra8875.c| 2 +- drivers/staging/fbtft/fb

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-02-21 Thread Russell King - ARM Linux
On Tue, Feb 21, 2017 at 02:37:57PM +0200, Sakari Ailus wrote: > Hi Russell, > > On Tue, Feb 21, 2017 at 12:13:32AM +, Russell King - ARM Linux wrote: > > On Tue, Feb 21, 2017 at 12:04:10AM +0200, Sakari Ailus wrote: > > > On Wed, Feb 15, 2017 at 06:19:31PM -0800, Steve Longerbeam wrote: > > >

Re: [Outreachy kernel] [PATCH v2 3/6] staging: greybus: Remove unnecessary braces

2017-02-21 Thread Julia Lawall
On Tue, 21 Feb 2017, simran singhal wrote: > This patch removes braces for single statement blocks. The warning > was detected using checkpatch.pl. > Coccinelle was used to make the change. > > @@ > expression e,e1; > @@ > - if (e) { > + if (e) > e1; > - } > > Signed-off-by: simran singhal >

Re: [Outreachy kernel] [PATCH v2 3/6] staging: greybus: Remove unnecessary braces

2017-02-21 Thread Julia Lawall
On Tue, 21 Feb 2017, simran singhal wrote: > This patch removes braces for single statement blocks. The warning > was detected using checkpatch.pl. > Coccinelle was used to make the change. > > @@ > expression e,e1; > @@ > - if (e) { > + if (e) > e1; > - } > > Signed-off-by: simran singhal A

[PATCH v2 3/6] staging: greybus: Remove unnecessary braces

2017-02-21 Thread simran singhal
This patch removes braces for single statement blocks. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. @@ expression e,e1; @@ - if (e) { + if (e) e1; - } Signed-off-by: simran singhal --- v2: -I forgot to cc outreachy mailing list drivers/staging/g

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-02-21 Thread Sakari Ailus
Hi Russell, On Tue, Feb 21, 2017 at 12:13:32AM +, Russell King - ARM Linux wrote: > On Tue, Feb 21, 2017 at 12:04:10AM +0200, Sakari Ailus wrote: > > On Wed, Feb 15, 2017 at 06:19:31PM -0800, Steve Longerbeam wrote: > > > From: Russell King > > > > > > Setting and getting frame rates is part

Re: [PATCH] return same error value from spk_set_key_info

2017-02-21 Thread Samuel Thibault
Pranay Kr. Srivastava, on mar. 21 févr. 2017 17:24:42 +0530, wrote: > Retain the previous error values as debug messages > instead. Well, they are not really useful because they are actually undocumented. > + if (version != KEY_MAP_VER) { > + pr_debug("Version mismatch %d\n", -1);

[PATCH 3/6] staging: greybus: Remove unnecessary braces

2017-02-21 Thread simran singhal
This patch removes braces for single statement blocks. The warning was detected using checkpatch.pl. Coccinelle was used to make the change. @@ expression e,e1; @@ - if (e) { + if (e) e1; - } Signed-off-by: simran singhal --- drivers/staging/greybus/audio_manager_sysfs.c | 3 +-- drivers/stag

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-02-21 Thread Sakari Ailus
Hi Steve, On Mon, Feb 20, 2017 at 02:56:15PM -0800, Steve Longerbeam wrote: > > > On 02/20/2017 02:04 PM, Sakari Ailus wrote: > >Hi Steve, > > > >On Wed, Feb 15, 2017 at 06:19:31PM -0800, Steve Longerbeam wrote: > >>From: Russell King > >> > >>Setting and getting frame rates is part of the nego

[PATCH] return same error value from spk_set_key_info

2017-02-21 Thread Pranay Kr. Srivastava
This patch makes spk_set_key_info return -EINVAL in case of failure instead of returning 4 different values for the type of error that occurred. Retain the previous error values as debug messages instead. Signed-off-by: Pranay Kr. Srivastava --- drivers/staging/speakup/main.c | 24 +

[PATCH 2/3] staging: comedi: Remove level of indentation

2017-02-21 Thread Tobin C. Harding
For loop contains only an if conditional (and body of if conditional). Conditional can be inverted and the loop continued if the new conditional is true without modifying the program logic. This allows one level of indentation to be removed. Invert conditional and continue loop if new conditional

[PATCH 3/3] staging: comedi: Fix checkpatch MULTILINE_DEREFERENCE

2017-02-21 Thread Tobin C. Harding
Checkpatch emits multiple WARNING: Avoid multiple line dereference. Removing these warnings will result in line over 80 warnings being introduced. However, Documentation/process/coding-style.rst: "Statements longer than 80 columns will be broken into sensible chunks, unless exceeding 80 columns si

[PATCH 1/3] staging: comedi: Fix checkpatch CONST_STRUCT

2017-02-21 Thread Tobin C. Harding
Checkpatch emits WARNING: struct comedi_lrange should normally be const. Add const keyword to definition of struct. Signed-off-by: Tobin C. Harding --- drivers/staging/comedi/drivers/addi_apci_3501.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/driv

[PATCH 0/3] Fix checkpatch warnings

2017-02-21 Thread Tobin C. Harding
Checkpatch emits various warnings. We can fix CONST_STRUCT trivially. MULTILINE_DEREFERENCE warnings can be fixed but in most cases the fix introduces line over 80 warnings. Quote Documentation/process/coding-style.rst: "Statements longer than 80 columns will be broken into sensible chunks, unless

Re: [PATCH] Staging: comedi: drivers: comedi_test: Avoid multiple line dereference

2017-02-21 Thread Valentin Rothberg
On Feb 21 '17 10:12, Ian Abbott wrote: > On 21/02/2017 09:33, Cheah Kok Cheong wrote: > > On Mon, Feb 20, 2017 at 05:36:52PM +, Ian Abbott wrote: > > > On 20/02/17 16:02, Cheah Kok Cheong wrote: > > > > On Mon, Feb 20, 2017 at 10:03:39AM +, Ian Abbott wrote: > > > > > On 20/02/17 08:28, Che

Re: [PATCH] Staging: comedi: drivers: comedi_test: Avoid multiple line dereference

2017-02-21 Thread Ian Abbott
On 21/02/2017 09:33, Cheah Kok Cheong wrote: On Mon, Feb 20, 2017 at 05:36:52PM +, Ian Abbott wrote: On 20/02/17 16:02, Cheah Kok Cheong wrote: On Mon, Feb 20, 2017 at 10:03:39AM +, Ian Abbott wrote: On 20/02/17 08:28, Cheah Kok Cheong wrote: Fix checkpatch warning "Avoid multiple lin

Re: [PATCH] Staging: comedi: drivers: comedi_test: Avoid multiple line dereference

2017-02-21 Thread Cheah Kok Cheong
On Mon, Feb 20, 2017 at 05:36:52PM +, Ian Abbott wrote: > On 20/02/17 16:02, Cheah Kok Cheong wrote: > >On Mon, Feb 20, 2017 at 10:03:39AM +, Ian Abbott wrote: > >>On 20/02/17 08:28, Cheah Kok Cheong wrote: > >>>Fix checkpatch warning "Avoid multiple line dereference" > >>>using a local var

Re: [PATCH v4 15/36] platform: add video-multiplexer subdevice driver

2017-02-21 Thread Philipp Zabel
On Sun, 2017-02-19 at 23:02 +0100, Pavel Machek wrote: > Hi! > > > From: Philipp Zabel > > > > This driver can handle SoC internal and external video bus multiplexers, > > controlled either by register bit fields or by a GPIO. The subdevice > > passes through frame interval and mbus configuratio

Re: [PATCH v4 29/36] media: imx: mipi-csi2: enable setting and getting of frame rates

2017-02-21 Thread Philipp Zabel
On Mon, 2017-02-20 at 16:18 -0800, Steve Longerbeam wrote: > > On 02/20/2017 04:13 PM, Russell King - ARM Linux wrote: > > On Tue, Feb 21, 2017 at 12:04:10AM +0200, Sakari Ailus wrote: > >> On Wed, Feb 15, 2017 at 06:19:31PM -0800, Steve Longerbeam wrote: > >>> From: Russell King > >>> > >>> Sett

  1   2   >