Re: [PATCH] hyperv: make HYPERV a menuconfig to ease disabling it all

2017-12-13 Thread Greg KH
On Wed, Dec 13, 2017 at 01:23:38PM -0800, Stephen Hemminger wrote: > On Wed, 13 Dec 2017 09:54:19 +0100 > Vincent Legoll wrote: > > > Hello, > > > > On Sun, Dec 10, 2017 at 6:50 AM, Stephen Hemminger > > wrote: > > > Will this break existing configs? > > > > I don't think so. Last time I did

Re: [PATCH] staging: comedi: ni_*

2017-12-13 Thread Aniruddha Shastri
On Wed, Dec 13, 2017 at 6:07 AM, Greg Kroah-Hartman wrote: > On Wed, Dec 13, 2017 at 05:16:13PM +0530, Aniruddha Shastri wrote: >> On Wed, Dec 13, 2017 at 4:20 PM, Greg Kroah-Hartman >> wrote: >> > >> > On Wed, Dec 13, 2017 at 04:01:04AM -0600, Aniruddha Shastri wrote: >> > > Fix checkpatch warni

Re: [PATCH] Staging: vc04_services: fix brace coding style issues in vchiq_shim.c

2017-12-13 Thread Stefan Wahren
Am 13.12.2017 um 21:51 schrieb Tomas Marek: This patch fix brace on next line coding style errors reported by checkpatch. Signed-off-by: Tomas Marek Acked-by: Stefan Wahren Thanks ___ devel mailing list de...@linuxdriverproject.org http://driverde

[PATCH v3] staging: comedi: ni_*: Fix style warnings.

2017-12-13 Thread Aniruddha Shastri
Two of these warnings are now line-too-long warnings. I think these warnings are preferable to the ones listed below. The longest line is only 85 chars wide, which is reasonable. Warnings fixed: ni_atmio.c:239: WARNING: Avoid multiple line dereference - prefer 'ni_boards[i].isapnp_id' ni_

Re: [PATCH v3] Staging: pi433: fix brace coding style issues in pi433_if.c

2017-12-13 Thread Greg KH
On Wed, Dec 13, 2017 at 11:31:15AM -0800, Tomas Marek wrote: > On 12/13/2017 03:55 AM, Greg KH wrote: > > > On Sat, Dec 09, 2017 at 12:41:11PM -0800, Tomas Marek wrote: > >> This patch fix several brace on next line, braces not necessary, space > >> around =/<, and space before/after open/close pa

Re: [PATCH] staging: fbtft: replace __ATTR() with DEVICE_ATTR()

2017-12-13 Thread Greg Kroah-Hartman
On Thu, Dec 14, 2017 at 11:51:17AM +0530, Aishwarya Pant wrote: > On Wed, Dec 13, 2017 at 12:50:00PM +0100, Greg Kroah-Hartman wrote: > > On Mon, Dec 11, 2017 at 03:24:30PM +0530, Aishwarya Pant wrote: > > > This is a clean-up patch which replaces the uses of raw __ATTR(...) > > > macro with the mo

[PATCH v2] staging: comedi: ni_*: Fix style warnings.

2017-12-13 Thread Aniruddha Shastri
Three of these warnings are now line-too-long warnings. I think these warnings are preferable to the ones listed below. The longest line is only 87 chars wide, which is reasonable. Warnings fixed: ni_670x.c:212: WARNING: struct comedi_lrange should normally be const ni_atmio.c:239: WARNING: Avoi

Re: [PATCH] staging: fbtft: replace __ATTR() with DEVICE_ATTR()

2017-12-13 Thread Aishwarya Pant
On Wed, Dec 13, 2017 at 12:50:00PM +0100, Greg Kroah-Hartman wrote: > On Mon, Dec 11, 2017 at 03:24:30PM +0530, Aishwarya Pant wrote: > > This is a clean-up patch which replaces the uses of raw __ATTR(...) > > macro with the more conventional DEVICE_ATTR(...) for defining device > > attributes. > >

[PATCH v2] staging: comedi: s626.c - fix multiline dereference

2017-12-13 Thread Roman Lakeev
staging: comedi: s626.c - fix the following checkpatch issues: WARNING: Avoid multiple line dereference - prefer 'devpriv->rps_buf.logical_base' #1380: FILE: drivers/s626.c:1380: + (unsigned long)devpriv-> + rps_buf.l

[PATCH] ANDROID: binder: make binder_alloc_new_buf_locked static and indent its arguments

2017-12-13 Thread Xongwei.Song
From: Xiongwei Song The function binder_alloc_new_buf_locked() is only used in this file, so make it static. Also clean up sparse warning: drivers/android/binder_alloc.c:330:23: warning: no previous prototype for ‘binder_alloc_new_buf_locked’ [-Wmissing-prototypes] In addition, the line of the

Re: [PATCH 2/8] staging: pi433: move var declaration to function level

2017-12-13 Thread Joe Perches
On Wed, 2017-12-13 at 15:21 +0100, Valentin Vidic wrote: > WARNING: Missing a blank line after declarations [] > diff --git a/drivers/staging/pi433/pi433_if.c > b/drivers/staging/pi433/pi433_if.c [] > @@ -565,6 +565,7 @@ pi433_tx_thread(void *data) > bool rx_interrupted = false; >

Re: [PATCH] hyperv: make HYPERV a menuconfig to ease disabling it all

2017-12-13 Thread Stephen Hemminger
On Wed, 13 Dec 2017 09:54:19 +0100 Vincent Legoll wrote: > Hello, > > On Sun, Dec 10, 2017 at 6:50 AM, Stephen Hemminger > wrote: > > Will this break existing configs? > > I don't think so. Last time I did some similar changes, the kbuild > test robot found some warnings on some configuratio

[PATCH] Staging: ks7010: ks_wlan_net: Fixing coding style warning

2017-12-13 Thread SUNIL KALLUR RAMEGOWDA
Removing the extra spaces before tabs, checkpatch: WARNING: please, no space before tabs Signed-off-by: SUNIL KALLUR RAMEGOWDA --- drivers/staging/ks7010/ks_wlan_net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/

Re: [PATCH net-next 0/6] hv_netvsc: minor changes

2017-12-13 Thread David Miller
From: Stephen Hemminger Date: Tue, 12 Dec 2017 16:48:34 -0800 > This includes minor cleanup of code in send and receive path and > also a new statistic to check for allocation failures. This also > eliminates some of the extra RCU when not needed. > > There is a theoritical bug where buffered da

[PATCH] Staging: vc04_services: fix brace coding style issues in vchiq_shim.c

2017-12-13 Thread Tomas Marek
This patch fix brace on next line coding style errors reported by checkpatch. Signed-off-by: Tomas Marek --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchi

Re: [staging:staging-linus 3/3] drivers/staging//android/ion/ion_cma_heap.c:47:14: error: 'CONFIG_CMA_ALIGNMENT' undeclared; did you mean 'CONFIG_CMA_AREAS'?

2017-12-13 Thread John Stultz
On Tue, Dec 12, 2017 at 10:25 PM, kbuild test robot wrote: > tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git > staging-linus > head: d98e6dbf42f73101128885a1e0ae672cd92b2e1a > commit: d98e6dbf42f73101128885a1e0ae672cd92b2e1a [3/3] staging: ion: Fix > ion_cma_heap all

[PATCH] staging: pi433: fix CamelCase for dccPercent variables

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: CHECK: Avoid CamelCase: Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 30 +++--- drivers/staging/pi433/rf69.h | 6 +++--- drivers/staging/pi433/rf69_enum.h | 18 +- 3 files changed, 27 insertions(

[PATCH 2/8 v3] staging: pi433: cleanup local variable declaration

2017-12-13 Thread Valentin Vidic
Fix variable naming and checkpatch warning: WARNING: Missing a blank line after declarations Signed-off-by: Valentin Vidic --- v2: use a better variable name v3: keep the variable scope drivers/staging/pi433/pi433_if.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

Re: [PATCH v3] Staging: pi433: fix brace coding style issues in pi433_if.c

2017-12-13 Thread Tomas Marek
On 12/13/2017 03:55 AM, Greg KH wrote: > On Sat, Dec 09, 2017 at 12:41:11PM -0800, Tomas Marek wrote: >> This patch fix several brace on next line, braces not necessary, space >> around =/<, and space before/after open/close parenthesis coding style >> errors find by checkpatch in pi433_if.c. >> >

[PATCHv2 6/6] staging: pi433: pi433_if.c style fix of space prohibited

2017-12-13 Thread Oliver Graute
This patch fixes this checkpatch.pl errors: ERROR: space prohibited after that open parenthesis '(' + if ( IS_ERR(device->gpiod[i]) ) ERROR: space prohibited before that close parenthesis ')' + if ( IS_ERR(device->gpiod[i]) ) ERROR: space prohibited before that close

[PATCHv2 3/6] staging: pi433: pi433_if.c style open brace

2017-12-13 Thread Oliver Graute
This patch fixes this checkpatch.pl errors: ERROR: that open brace { should be on the previous line + if (device->rx_active) + { ERROR: that open brace { should be on the previous line + else + { ERROR: else should follow close brace '}' + } + else Signed-of

[PATCHv2 2/6] staging: pi433: pi433_if.c style fix wrong placed brace

2017-12-13 Thread Oliver Graute
This patch fixes this checkpatch.pl error: ERROR: that open brace { should be on the previous line + if (rx_interrupted) + Signed-off-by: Oliver Graute --- drivers/staging/pi433/pi433_if.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/stagi

[PATCHv2 4/6] staging: pi433: pi433_if.c space required in for loop

2017-12-13 Thread Oliver Graute
This patch fixes this checkpatch.pl errors: ERROR: that open brace { should be on the previous line + for (i=0; i --- drivers/staging/pi433/pi433_if.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c in

[PATCHv2 1/6] staging: pi433: pi433_if.c codestyle space required

2017-12-13 Thread Oliver Graute
This patch fixes this checkpatch.pl error: ERROR: spaces required around that '+=' (ctx:WxV) + position +=temp; Signed-off-by: Oliver Graute --- drivers/staging/pi433/pi433_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/pi433/

[PATCHv2 5/6] staging: pi433: pi433_if.c style fix forbidden spaces

2017-12-13 Thread Oliver Graute
This patch fixes this checkpatch.pl errors: ERROR: that open brace { should be on the previous line + if ( IS_ERR(device->gpiod[i]) ) + { ERROR: space prohibited after that open parenthesis '(' + if ( IS_ERR(device->gpiod[i]) ) ERROR: space prohibited be

[PATCHv2 0/6] staging: pi433: pi433_if.c various codestyle fixes

2017-12-13 Thread Oliver Graute
rearranged the patches and summarized them Oliver Graute (6): staging: pi433: pi433_if.c codestyle space required staging: pi433: pi433_if.c style fix wrong placed brace staging: pi433: pi433_if.c style open brace staging: pi433: pi433_if.c space required in for loop staging: pi433: pi43

Re: [PATCH net-next 0/2] hv_netvsc: Fix default and limit of recv buffe

2017-12-13 Thread David Miller
From: Stephen Hemminger Date: Mon, 11 Dec 2017 08:56:56 -0800 > The default for receive buffer descriptors is not correct, it should > match the default receive buffer size and the upper limit of receive > buffer size is too low. Also, for older versions of Window servers > hosts, different lowe

Re: [PATCH 6/8 v3] staging: pi433: use defines for shifting register values

2017-12-13 Thread Marcus Wolf
Am 13.12.2017 um 19:44 schrieb Valentin Vidic: Avoid shifting by magic numbers and use defines instead. Signed-off-by: Valentin Vidic --- v2: - drop change for SHIFT_DATAMODUL_MODULATION_TYPE - move shifting to the header file v3: - drop auto case - use CURRENT suffix - precomp

[PATCH 6/8 v3] staging: pi433: use defines for shifting register values

2017-12-13 Thread Valentin Vidic
Avoid shifting by magic numbers and use defines instead. Signed-off-by: Valentin Vidic --- v2: - drop change for SHIFT_DATAMODUL_MODULATION_TYPE - move shifting to the header file v3: - drop auto case - use CURRENT suffix - precompute define values drivers/staging/pi433/rf69.c

Re: [PATCH 6/8 v2] staging: pi433: use defines for shifting register values

2017-12-13 Thread Marcus Wolf
Am 13.12.2017 um 18:55 schrieb Valentin Vidic: Avoid shifting by magic numbers and use defines instead. Signed-off-by: Valentin Vidic --- v2: - drop change for SHIFT_DATAMODUL_MODULATION_TYPE - move shifting to the header file drivers/staging/pi433/rf69.c | 16 --

Re: [PATCH 6/8] staging: pi433: use defines for shifting register values

2017-12-13 Thread Valentin Vidic
On Wed, Dec 13, 2017 at 05:32:28PM +0200, Marcus Wolf wrote: > Am 13.12.2017 um 16:21 schrieb Valentin Vidic: > > Avoid shifting by magic numbers and use defines instead: > > > >SHIFT_DATAMODUL_MODULATION_TYPE > >SHIFT_LNA_CURRENT_GAIN > > > > Signed-off-by: Valentin Vidic > > --- > >

[PATCH 6/8 v2] staging: pi433: use defines for shifting register values

2017-12-13 Thread Valentin Vidic
Avoid shifting by magic numbers and use defines instead. Signed-off-by: Valentin Vidic --- v2: - drop change for SHIFT_DATAMODUL_MODULATION_TYPE - move shifting to the header file drivers/staging/pi433/rf69.c | 16 drivers/staging/pi433/rf69_registers.h | 8 +

[staging:staging-linus 3/3] drivers/staging/android/ion/ion_cma_heap.c:47:14: error: 'CONFIG_CMA_ALIGNMENT' undeclared; did you mean 'CONFIG_UBSAN_ALIGNMENT'?

2017-12-13 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-linus head: d98e6dbf42f73101128885a1e0ae672cd92b2e1a commit: d98e6dbf42f73101128885a1e0ae672cd92b2e1a [3/3] staging: ion: Fix ion_cma_heap allocations config: sparc64-allyesconfig (attached as .config) compiler:

Re: [PATCH 1/1] staging: rtl8723bs: make memcmp() calls consistent

2017-12-13 Thread Greg Kroah-Hartman
On Wed, Dec 13, 2017 at 03:49:12PM +0100, Hans de Goede wrote: > Hi, > > On 13-12-17 12:47, Greg Kroah-Hartman wrote: > > On Sun, Dec 10, 2017 at 08:35:12PM +0100, Nicolas Iooss wrote: > > > rtw_pm_set() uses memcmp() with 5-chars strings and a length of 4 when > > > parsing extra, and then parses

Re: [PATCH 1/1] staging: rtl8723bs: make memcmp() calls consistent

2017-12-13 Thread Hans de Goede
Hi, On 13-12-17 16:12, Rasmus Villemoes wrote: On 2017-12-13 15:49, Hans de Goede wrote: Hi, On 13-12-17 12:47, Greg Kroah-Hartman wrote: On Sun, Dec 10, 2017 at 08:35:12PM +0100, Nicolas Iooss wrote: rtw_pm_set() uses memcmp() with 5-chars strings and a length of 4 when parsing extra, and t

[PATCH 2/8 v2] staging: pi433: move var declaration to function level

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: WARNING: Missing a blank line after declarations Signed-off-by: Valentin Vidic --- v2: use a better variable name drivers/staging/pi433/pi433_if.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/s

Re: [PATCH 6/8] staging: pi433: use defines for shifting register values

2017-12-13 Thread Marcus Wolf
Am 13.12.2017 um 16:21 schrieb Valentin Vidic: Avoid shifting by magic numbers and use defines instead: SHIFT_DATAMODUL_MODULATION_TYPE SHIFT_LNA_CURRENT_GAIN Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69_registers.h |

Re: [PATCH 4/8] staging: pi433: add parentheses to mask and shift

2017-12-13 Thread Marcus Wolf
Am 13.12.2017 um 16:21 schrieb Valentin Vidic: Fixes checkpatch warning: WARNING: Possible precedence defect with mask then right shift - may need parentheses Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

Re: [PATCH 8/8] staging: pi433: replace printk calls with dev_dbg

2017-12-13 Thread Valentin Vidic
On Wed, Dec 13, 2017 at 05:52:36PM +0300, Dan Carpenter wrote: > On Wed, Dec 13, 2017 at 03:21:56PM +0100, Valentin Vidic wrote: > > drivers/staging/pi433/pi433_if.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/staging/pi433/pi433_if.c > > b/drivers/

Re: [PATCH 1/1] staging: rtl8723bs: make memcmp() calls consistent

2017-12-13 Thread Rasmus Villemoes
On 2017-12-13 15:49, Hans de Goede wrote: > Hi, > > On 13-12-17 12:47, Greg Kroah-Hartman wrote: >> On Sun, Dec 10, 2017 at 08:35:12PM +0100, Nicolas Iooss wrote: >>> rtw_pm_set() uses memcmp() with 5-chars strings and a length of 4 when >>> parsing extra, and then parses extra+4 as an int: >>> >>

[staging:staging-linus 3/3] drivers/staging//android/ion/ion_cma_heap.c:47:14: error: 'CONFIG_CMA_ALIGNMENT' undeclared; did you mean 'CONFIG_CMA_AREAS'?

2017-12-13 Thread kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git staging-linus head: d98e6dbf42f73101128885a1e0ae672cd92b2e1a commit: d98e6dbf42f73101128885a1e0ae672cd92b2e1a [3/3] staging: ion: Fix ion_cma_heap allocations config: i386-randconfig-x019-12132053 (attached as .config) c

[PATCH v2 7/7] x86/kvm: support Hyper-V reenlightenment

2017-12-13 Thread Vitaly Kuznetsov
When we run nested KVM on Hyper-V guests we need to update masterclocks for all guests when L1 migrates to a host with different TSC frequency. Implement the procedure in the following way: - Pause all guests. - Tell our host (Hyper-V) to stop emulating TSC accesses. - Update our gtod copy, recompu

[PATCH v2 4/7] x86/hyper-v: redirect reenlightment notifications on CPU offlining

2017-12-13 Thread Vitaly Kuznetsov
It is very unlikely for CPUs to get offlined when we run on Hyper-V as we have a protection in vmbus module which prevents it when we have any VMBus devices assigned. This, however, may change in future if an option to reassign an already active channel will be added. It is also possible to run wi

[PATCH v2 6/7] x86/kvm: pass stable clocksource to guests when running nested on Hyper-V

2017-12-13 Thread Vitaly Kuznetsov
Currently, KVM is able to work in 'masterclock' mode passing PVCLOCK_TSC_STABLE_BIT to guests when the clocksource we use on the host is TSC. When running nested on Hyper-V we normally use a different one: TSC page which is resistant to TSC frequency changes on event like L1 migration. Add support

[PATCH v2 3/7] x86/hyper-v: reenlightenment notifications support

2017-12-13 Thread Vitaly Kuznetsov
Hyper-V supports Live Migration notification. This is supposed to be used in conjunction with TSC emulation: when we are migrated to a host with different TSC frequency for some short period host emulates our accesses to TSC and sends us an interrupt to notify about the event. When we're done updat

[PATCH v2 5/7] x86/irq: Count Hyper-V reenlightenment interrupts

2017-12-13 Thread Vitaly Kuznetsov
Hyper-V reenlightenment interrupts arrive when the VM is migrated, we're not supposed to see many of them. However, it may be important to know that the event has happened in case we have L2 nested guests. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_init.c | 2 ++ arch/x86/includ

[PATCH v2 1/7] x86/hyper-v: check for required priviliges in hyperv_init()

2017-12-13 Thread Vitaly Kuznetsov
In hyperv_init() we presume we always have access to VP index and hypercall MSRs while according to the specification we should check if we're allowed to access the corresponding MSRs before accessing them. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_init.c | 9 - 1 file chang

[PATCH v2 2/7] x86/hyper-v: add a function to read both TSC and TSC page value simulateneously

2017-12-13 Thread Vitaly Kuznetsov
This is going to be used from KVM code where we need to get both TSC and TSC page value. When Hyper-V code is compiled out just return rdtsc(), this will allow us to avoid ugly ifdefs in non-Hyper-V code. Signed-off-by: Vitaly Kuznetsov --- arch/x86/hyperv/hv_init.c | 1 + arch/x86/inclu

[PATCH v2 0/7] x86/kvm/hyperv: stable clocksorce for L2 guests when running nested KVM on Hyper-V

2017-12-13 Thread Vitaly Kuznetsov
Changes since v1: - PATCH5 "x86/irq: Count Hyper-V reenlightenment interrupts" added [Michael Kelley] - PATCH3 "x86/hyper-v: reenlightenment notifications support" changes: - rename register_hv_tsc_update/unregister_hv_tsc_update() to set_hv_tscchange_cb()/clear_hv_tscchange_cb() to avoid t

Re: [PATCH 5/8] staging: pi433: fix DATAMODUL_MODULATION_TYPE_OOK value

2017-12-13 Thread Dan Carpenter
On Wed, Dec 13, 2017 at 03:21:53PM +0100, Valentin Vidic wrote: > Reading from the spec, allowed values for modulation scheme > after the shift are: > > 00 FSK > 01 OOK > 10 - 11 reserved > > Signed-off-by: Valentin Vidic > --- > drivers/staging/pi433/rf69_registers.h | 2 +- > 1 file cha

[PATCH] staging/rtl8192u/ieee80211: Delete an error message for a failed memory allocation in ieee80211_networks_allocate()

2017-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Dec 2017 15:46:07 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/staging/rtl8192u/ieee80211/ieee80211_module.c | 5 + 1 fil

Re: [PATCH 8/8] staging: pi433: replace printk calls with dev_dbg

2017-12-13 Thread Dan Carpenter
On Wed, Dec 13, 2017 at 03:21:56PM +0100, Valentin Vidic wrote: > drivers/staging/pi433/pi433_if.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/pi433/pi433_if.c > b/drivers/staging/pi433/pi433_if.c > index 9e558154a143..02a5ba019801 100644 > --- a/

Re: [PATCH 4/8] staging: pi433: add parentheses to mask and shift

2017-12-13 Thread Dan Carpenter
On Wed, Dec 13, 2017 at 03:21:52PM +0100, Valentin Vidic wrote: > Fixes checkpatch warning: > > WARNING: Possible precedence defect with mask then right shift - may need > parentheses > > Signed-off-by: Valentin Vidic Please do your work against linux-next or staging-next. There have been a

Re: [PATCH 1/1] staging: rtl8723bs: make memcmp() calls consistent

2017-12-13 Thread Hans de Goede
Hi, On 13-12-17 12:47, Greg Kroah-Hartman wrote: On Sun, Dec 10, 2017 at 08:35:12PM +0100, Nicolas Iooss wrote: rtw_pm_set() uses memcmp() with 5-chars strings and a length of 4 when parsing extra, and then parses extra+4 as an int: if (!memcmp(extra, "lps =", 4)) { sscanf(extra+

Re: [PATCH 2/8] staging: pi433: move var declaration to function level

2017-12-13 Thread Dan Carpenter
On Wed, Dec 13, 2017 at 03:21:50PM +0100, Valentin Vidic wrote: > Fixes checkpatch warning: > > WARNING: Missing a blank line after declarations > > Signed-off-by: Valentin Vidic > --- > drivers/staging/pi433/pi433_if.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git

[PATCH] staging: vt6656: Delete an error message for a failed memory allocation in vnt_alloc_bufs()

2017-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Dec 2017 15:15:45 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/staging/vt6656/main_usb.c | 5 + 1 file changed, 1 inserti

[PATCH 7/8] staging: pi433: avoid logging ENOMEM messages

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: WARNING: Possible unnecessary 'out of memory' message Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 8

[PATCH 2/8] staging: pi433: move var declaration to function level

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: WARNING: Missing a blank line after declarations Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 0288798

[PATCH 4/8] staging: pi433: add parentheses to mask and shift

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: WARNING: Possible precedence defect with mask then right shift - may need parentheses Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/pi433/rf69.c b/drivers/stagin

[PATCH 8/8] staging: pi433: replace printk calls with dev_dbg

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: WARNING: printk() should include KERN_ facility level Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index

[PATCH 6/8] staging: pi433: use defines for shifting register values

2017-12-13 Thread Valentin Vidic
Avoid shifting by magic numbers and use defines instead: SHIFT_DATAMODUL_MODULATION_TYPE SHIFT_LNA_CURRENT_GAIN Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69.c | 4 ++-- drivers/staging/pi433/rf69_registers.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-)

[PATCH 5/8] staging: pi433: fix DATAMODUL_MODULATION_TYPE_OOK value

2017-12-13 Thread Valentin Vidic
Reading from the spec, allowed values for modulation scheme after the shift are: 00 FSK 01 OOK 10 - 11 reserved Signed-off-by: Valentin Vidic --- drivers/staging/pi433/rf69_registers.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/pi433/rf69_registers

[PATCH 3/8] staging: pi433: replace unsigned with unsigned int

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: WARNING: Prefer 'unsigned int' to bare use of 'unsigned' Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index 0

[PATCH 1/8] staging: pi433: collapse else block after return statement

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning: WARNING: else is not generally useful after a break or return Signed-off-by: Valentin Vidic --- drivers/staging/pi433/pi433_if.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi43

Re: [PATCH] staging: pi433: Fix disordered switch case

2017-12-13 Thread Dan Carpenter
On Wed, Dec 13, 2017 at 12:02:11AM +0200, Kari Argillander wrote: > Case: SHAPING_0_5 is writing DATAMODUL_MODLATION_SHAPE_0_3 value and > vice versa > > Signed-off-by: Kari Argillander > --- > I have checked that defines are correct accounting to the datasheet. Looks good. Fixes: 874bcba65f9a

[PATCH 4/4] staging/wlan-ng/prism2fw: Use common error handling code in writeimage()

2017-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Dec 2017 13:41:41 +0100 Replace two calls of the function "kfree" by a jump to the same statements at the end of this function so that the generated object code could become a bit smaller. Signed-off-by: Markus Elfring --- drivers/staging/wlan-ng/prism2fw.c |

[PATCH 3/4] staging/wlan-ng/prism2fw: Delete an error message for a failed memory allocation in writeimage()

2017-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Dec 2017 13:28:15 +0100 Omit an extra message for a memory allocation failure in this function. Signed-off-by: Markus Elfring --- drivers/staging/wlan-ng/prism2fw.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/wlan-ng/prism2fw.c b/dr

[PATCH 2/4] staging/wlan-ng/prism2fw: Use a known error code after a failed kzalloc() in mkimage()

2017-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Dec 2017 13:20:10 +0100 Make a memory allocation failure clearer by using the error code "-ENOMEM" (instead of the constant "1") in this function. Signed-off-by: Markus Elfring --- drivers/staging/wlan-ng/prism2fw.c | 2 +- 1 file changed, 1 insertion(+), 1 d

[PATCH 1/4] staging/wlan-ng/prism2fw: Delete an error message for a failed memory allocation in mkimage()

2017-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Dec 2017 12:57:13 +0100 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/staging/wlan-ng/prism2fw.c | 5 ++--- 1 file changed, 2 insert

[PATCH 0/4] staging/wlan-ng/prism2fw: Adjustments for two function implementations

2017-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 13 Dec 2017 14:03:02 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Delete an error message for a failed memory allocation in mkimage() Use a known error code after a failed kzalloc() in mkimage()

[PATCH 11/16 v2] staging: pi433: remove multiple blank lines

2017-12-13 Thread Valentin Vidic
Fixes checkpatch warning for multiple blank lines in source. Signed-off-by: Valentin Vidic --- v2: refresh patch for staging-testing drivers/staging/pi433/pi433_if.c | 11 --- drivers/staging/pi433/pi433_if.h | 8 drivers/staging/pi433/rf69.h | 2 -- dri

Re: [PATCH] staging: comedi: ni_*

2017-12-13 Thread Greg Kroah-Hartman
On Wed, Dec 13, 2017 at 05:16:13PM +0530, Aniruddha Shastri wrote: > On Wed, Dec 13, 2017 at 4:20 PM, Greg Kroah-Hartman > wrote: > > > > On Wed, Dec 13, 2017 at 04:01:04AM -0600, Aniruddha Shastri wrote: > > > Fix checkpatch warnings by shortening lines and reorganizing code where > > > needed..

Re: [PATCH 11/16] staging: pi433: remove multiple blank lines

2017-12-13 Thread Greg Kroah-Hartman
On Sun, Dec 10, 2017 at 03:31:16PM +0100, Valentin Vidic wrote: > Fixes checkpatch warning for multiple blank lines in source. > > Signed-off-by: Valentin Vidic > --- > drivers/staging/pi433/pi433_if.c | 11 --- > drivers/staging/pi433/pi433_if.h | 8 > drivers/stag

Re: [PATCH 09/16] staging: pi433: remove spaces before newline

2017-12-13 Thread Greg Kroah-Hartman
On Sun, Dec 10, 2017 at 03:31:14PM +0100, Valentin Vidic wrote: > Fixes checkpatch warning for whitespace before a quoted newline. > > Signed-off-by: Valentin Vidic > --- > drivers/staging/pi433/rf69.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/

Re: [PATCH v3] Staging: pi433: fix brace coding style issues in pi433_if.c

2017-12-13 Thread Greg KH
On Sat, Dec 09, 2017 at 12:41:11PM -0800, Tomas Marek wrote: > This patch fix several brace on next line, braces not necessary, space > around =/<, and space before/after open/close parenthesis coding style > errors find by checkpatch in pi433_if.c. > > Signed-off-by: Tomas Marek > --- > Changes

Re: [PATCH 03/10] staging: pi433: space prohibted before that close parentesis

2017-12-13 Thread GregKH
On Fri, Dec 08, 2017 at 05:22:49PM +0100, Oliver Graute wrote: > ERROR: space prohibited before that close parenthesis > ')' +kthread_should_stop() ); > > Signed-off-by: Oliver Graute > --- > drivers/staging/pi433/pi433_if.c | 2 +- > 1 file changed, 1 in

Re: [PATCH] staging: fbtft: replace __ATTR() with DEVICE_ATTR()

2017-12-13 Thread Greg Kroah-Hartman
On Mon, Dec 11, 2017 at 03:24:30PM +0530, Aishwarya Pant wrote: > This is a clean-up patch which replaces the uses of raw __ATTR(...) > macro with the more conventional DEVICE_ATTR(...) for defining device > attributes. > > Done using coccinelle- > > @r@ > identifier foo, n; > @@ > > struct devi

Re: [PATCH 1/1] staging: rtl8723bs: make memcmp() calls consistent

2017-12-13 Thread Greg Kroah-Hartman
On Sun, Dec 10, 2017 at 08:35:12PM +0100, Nicolas Iooss wrote: > rtw_pm_set() uses memcmp() with 5-chars strings and a length of 4 when > parsing extra, and then parses extra+4 as an int: > > if (!memcmp(extra, "lps =", 4)) { > sscanf(extra+4, "%u", &mode); > /* ... */ > } else

Re: [PATCH] staging: comedi: ni_*

2017-12-13 Thread Aniruddha Shastri
On Wed, Dec 13, 2017 at 4:20 PM, Greg Kroah-Hartman wrote: > > On Wed, Dec 13, 2017 at 04:01:04AM -0600, Aniruddha Shastri wrote: > > Fix checkpatch warnings by shortening lines and reorganizing code where > > needed.. > > Re-phrase the assert messages in ni_mio_common.c. This was done to meet th

Re: [PATCH] Staging: ks7010: ks_wlan_net: Fixing coding style warning

2017-12-13 Thread Greg KH
On Fri, Dec 08, 2017 at 09:27:54PM +0100, SUNIL KALLUR RAMEGOWDA wrote: > Removing the extra spaces before tabs, checkpatch: > WARNING: please, no space before tabs > > Signed-off-by: SUNIL KALLUR RAMEGOWDA > --- > drivers/staging/ks7010/ks_wlan_net.c | 4 ++-- > 1 file changed, 2 insertions(+),

Re: [PATCH] staging: comedi: s626.c - fix multiline dereference

2017-12-13 Thread Greg Kroah-Hartman
On Tue, Dec 12, 2017 at 12:46:16PM -0800, Roman Lakeev wrote: >staging: comedi: s626.c - fix the following checkpatch issues: >WARNING: Avoid multiple line dereference - prefer > 'devpriv->rps_buf.logical_base' >#1380: FILE: drivers/s626.c:1380: >+

[PATCH] Staging: media: atomisp: made function static

2017-12-13 Thread Sergiy Redko
Fixed sparse warning by making 'dtrace_dot' function static. Signed-off-by: Sergiy Redko --- .../media/atomisp/pci/atomisp2/css2400/runtime/debug/src/ia_css_debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/atomisp/pci/atomisp2/css2400/runtime/debug/src/ia_css_d

Re: [PATCH] staging: comedi: ni_*

2017-12-13 Thread Greg Kroah-Hartman
On Wed, Dec 13, 2017 at 04:01:04AM -0600, Aniruddha Shastri wrote: > Fix checkpatch warnings by shortening lines and reorganizing code where > needed.. > Re-phrase the assert messages in ni_mio_common.c. This was done to meet the > character limit for the message. And yet this line is over the c

Re: [PATCH 3/6] x86/hyper-v: reenlightenment notifications support

2017-12-13 Thread Vitaly Kuznetsov
"Michael Kelley (EOSG)" writes: > On Fri, Dec 08, 2017 at 11:49:57AM +0100, Vitaly Kuznetsov wrote: > >> -Original Message- >> From: Vitaly Kuznetsov [mailto:vkuzn...@redhat.com] >> Sent: Friday, December 8, 2017 2:50 AM >> To: k...@vger.kernel.org; x...@kernel.org >> Cc: Paolo Bonzini ;

[PATCH] staging: comedi: ni_*

2017-12-13 Thread Aniruddha Shastri
Fix checkpatch warnings by shortening lines and reorganizing code where needed.. Re-phrase the assert messages in ni_mio_common.c. This was done to meet the character limit for the message. Signed-off-by: Aniruddha Shastri --- drivers/staging/comedi/drivers/ni_670x.c | 3 +- drivers/st

Re: [PATCH] hyperv: make HYPERV a menuconfig to ease disabling it all

2017-12-13 Thread Vincent Legoll
Hello, On Sun, Dec 10, 2017 at 6:50 AM, Stephen Hemminger wrote: > Will this break existing configs? I don't think so. Last time I did some similar changes, the kbuild test robot found some warnings on some configurations, I hope it will find problems (if any) for that series too (this one is no