hotplug lockdep splat (tip)

2017-09-03 Thread Mike Galbraith
[ 126.626908] Unregister pv shared memory for cpu 1 [ 126.631041] [ 126.631269] == [ 126.632442] WARNING: possible circular locking dependency detected [ 126.633599] 4.13.0.g06260ca-tip-lockdep #2 Tainted: GE [ 126.634380] --

Re: [alsa-devel] [PATCH v6 01/12] ALSA: ac97: split out the generic ac97 registers

2017-09-03 Thread Takashi Iwai
On Sat, 02 Sep 2017 21:54:03 +0200, Robert Jarzmik wrote: > > Split out from the ac97_codec.h the ac97 generic registers, which can be > used by a codec, typically a generic ac97 codec, and by the ac97 bus, to > scan an ac97 AC-Link. > > This split encompasses all the AC97 standard registers, but

Re: [alsa-devel] [PATCH v6 02/12] ALSA: ac97: add an ac97 bus

2017-09-03 Thread Takashi Iwai
On Sat, 02 Sep 2017 21:54:04 +0200, Robert Jarzmik wrote: > > AC97 is a bus for sound usage. It enables for a AC97 AC-Link to link one > controller to 0 to 4 AC97 codecs. > > The goal of this new implementation is to implement a device/driver > model for AC97, with an automatic scan of the bus an

Re: [PATCH][next] net/mlx4_core: fix memory leaks on error exit path

2017-09-03 Thread Tariq Toukan
On 31/08/2017 7:30 PM, Colin King wrote: From: Colin Ian King The structures hca_param and func_cap are not being kfree'd on an error exit path causing two memory leaks. Fix this by jumping to the existing free memory error exit path. Detected by CoverityScan, CID#1455219, CID#1455224 ("Resou

Re: [PATCH][next] net/mlx4_core: fix incorrect size allocation for dev->caps.spec_qps

2017-09-03 Thread Tariq Toukan
On 31/08/2017 8:07 PM, Colin King wrote: From: Colin Ian King The current allocation for dev->caps.spec_qps is for the size of the pointer and not the size of the actual mlx4_spec_qps structure. Fix this by using the correct size. Also splint allocation over a few lines to make it cppchec

Re: Converting struct timer_list callback argument to struct timer_list *

2017-09-03 Thread Christoph Hellwig
On Fri, Sep 01, 2017 at 09:24:22AM -0700, Kees Cook wrote: > #define list_entry(ptr, type, member) container_of(ptr, type, member) > #define rb_entry(ptr, type, member) container_of(ptr, type, member) > > The use of a "timer_entry()" at the start of callbacks repeats the > struct name, which I fin

RE: [PATCH V2 0/3] Use mm_struct and switch_mm() instead of manually

2017-09-03 Thread Prakhya, Sai Praneeth
> > > > Thanks for this v2. > > Introducing the 'efi_switch_mm() ' helper instead of manually > > twiddling with %cr3 seems more cleaner. > > > > I have tested this patchset on a x86_64 machine with the following > > configurations: > > > > 1. Primary kernel boot with efi=old_map 2. Primary kernel

[PATCH 1/1] RAS/CEC: use the right length of "cec_disable"

2017-09-03 Thread Nicolas Iooss
parse_cec_param() compares a string with "cec_disable" using only 7 characters of the 11-character-long string. Fix the length. Fixes: 011d82611172 ("RAS: Add a Corrected Errors Collector") Signed-off-by: Nicolas Iooss --- drivers/ras/cec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

[PATCH 1/1] dax: initialize variable pfn before using it

2017-09-03 Thread Nicolas Iooss
Function dax_pmd_insert_mapping() contains the following code: pfn_t pfn; if (bdev_dax_pgoff(bdev, sector, size, &pgoff) != 0) goto fallback; /* ... */ fallback: trace_dax_pmd_insert_mapping_fallback(inode, vmf, length, pfn, ret); When the condition i

[PATCH 1/1] x86/xen: fix section of xen_init_time_ops() in header

2017-09-03 Thread Nicolas Iooss
Commit d162809f85b4 ("xen/x86: Do not call xen_init_time_ops() until shared_info is initialized") moved xen_init_time_ops() from __init to __ref without updating xen-ops.h accordingly. Fix this. Fixes: d162809f85b4 ("xen/x86: Do not call xen_init_time_ops() until shared_info is initialized") Signe

[PATCH 1/2] tracing: irqsoff: Move code under tracer config options

2017-09-03 Thread Joel Fernandes
In preparation for adding critical sections events such that they don't depend on enabling of tracers, move tracer specific code to their config options and common code that would be needed by a subsequent patch into a common area. This patch is only code movement patch. Cc: Steven Rostedt Cc: ke

[PATCH 2/2] tracing: Add support for critical section events

2017-09-03 Thread Joel Fernandes
Critical section trace events can be used for tracing the start and end of a critical section which can be used by a trace viewer like systrace to graphically view the start and end of a critical section and correlate them with latencies and scheduling issues. Reason for starting critical section:

[PATCH 0/2] tracing: Add critical section event support

2017-09-03 Thread Joel Fernandes
These patches add critical section event tracing support. Changes since RFC [1] are: - Make critical events independent of the preempt/irqsoff tracer. - Store pointers instead of symbol names to do less in the fast path. - Other changes based on Steven's comments. Here's an example of how Android

[PATCH 6/8] staging: ccree: move over to BIT macro for bit defines

2017-09-03 Thread Gilad Ben-Yossef
Use BIT macro for bit definitions where needed. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.h | 10 +- drivers/staging/ccree/ssi_driver.c | 3 ++- drivers/staging/ccree/ssi_driver.h | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/dri

[PATCH 5/8] staging: ccree: remove unused completion

2017-09-03 Thread Gilad Ben-Yossef
icache_setup_completion is no longer used. Remove it. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_driver.c | 2 -- drivers/staging/ccree/ssi_driver.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/ssi_driver.c in

[PATCH 8/8] staging: ccree: remove BUG macro usage

2017-09-03 Thread Gilad Ben-Yossef
Replace BUG() macro usage that crash the kernel with alternatives that signal error and/or try to recover. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 14 ++ drivers/staging/ccree/ssi_cipher.c | 1 - drivers/staging/ccree/ssi_pm.c | 3

[PATCH 2/8] staging: ccree: Convert to devm_ioremap_resource for map, unmap

2017-09-03 Thread Gilad Ben-Yossef
From: Suniel Mahesh It is recommended to use managed function devm_ioremap_resource(), which simplifies driver cleanup paths and driver code. This patch does the following: (a) replace request_mem_region(), ioremap() and corresponding error handling with devm_ioremap_resource(). (b) remove struct

[PATCH 0/8] staging: ccree: more cleanup work for 4.14

2017-09-03 Thread Gilad Ben-Yossef
More cleanup work from Sunil and myself. I've previously sent some of these as part of a larger patch set. I've decided to split the patch set to smaller chunks to make it more manageable. This patch set applies on top of commit 28eb51f7468a ("staging:rtl8188eu:core Fix remove unneccessary else b

[PATCH 7/8] staging: ccree: replace noop macro with inline

2017-09-03 Thread Gilad Ben-Yossef
Replace noop macro with a noop inline function Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_driver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_driver.h b/drivers/staging/ccree/ssi_driver.h index 06a3c48..81ba827 100644 ---

[GIT pull] perf fixes for 4.13

2017-09-03 Thread Thomas Gleixner
Linus, please pull the latest perf-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-urgent-for-linus This update contains: - Prevent a potential inconistency in the perf user space access which might lead to evading sanity checks. - Pre

[PATCH 4/8] staging: ccree: simplify resource release on error

2017-09-03 Thread Gilad Ben-Yossef
The resource release on probe/init error was being handled in an awkward manner and possibly leaking memory on certain (unlikely) error path. Fix it by simplifying the error resource release and making it easier to track. Reported-by: Dan Carpenter Signed-off-by: Gilad Ben-Yossef --- drivers/s

[PATCH 3/8] staging: ccree: Use platform_get_irq and devm_request_irq

2017-09-03 Thread Gilad Ben-Yossef
From: Suniel Mahesh It is recommended to use managed function devm_request_irq(), which simplifies driver cleanup paths and driver code. This patch does the following: (a) replace platform_get_resource(), request_irq() and corresponding error handling with platform_get_irq() and devm_request_irq(

[PATCH 1/8] staging: ccree: Replace kzalloc with devm_kzalloc

2017-09-03 Thread Gilad Ben-Yossef
From: Suniel Mahesh It is recommended to use managed function devm_kzalloc, which simplifies driver cleanup paths and driver code. This patch does the following: (a) replace kzalloc with devm_kzalloc. (b) drop kfree(), because memory allocated with devm_kzalloc() is automatically freed on driver

[GIT pull] timer fix for 4.13

2017-09-03 Thread Thomas Gleixner
Linus, please pull the latest timers-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus A single fix for a thinko in the raw timekeeper update which causes clock MONOTONIC_RAW to run with erratically increased frequency. Thanks,

[GIT pull] x86 fixes for 4.13

2017-09-03 Thread Thomas Gleixner
Linus, please pull the latest x86-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86-urgent-for-linus This update contains: - Expand the space for uncompressing as the LZ4 worst case does not fit into the currently reserved space. - Validate

Linux 4.13: Reported regressions as of Sunday, 2017-09-03

2017-09-03 Thread Thorsten Leemhuis
Hi! Find below my fifth regression report for Linux 4.13. It lists 4 regressions I'm currently aware of. There are no new ones; 2 got fixed since the last report. You can also find the report at http://bit.ly/lnxregrep413 where I try to update it every now and then. As always: Are you aware of an

fanotify hangs with AUFS

2017-09-03 Thread Ariel Zelivansky
Hi, I just opened bug 196815 on the kernel bugzilla (https://bugzilla.kernel.org/show_bug.cgi?id=196815). Let me know if there's anything else I can do Thanks, Ariel

[PATCH] sound: soc: fsl: Do not set DAI sysclk when it is equal to system freq

2017-09-03 Thread Lukasz Majewski
The problem is visible in the following setup (on the imx6q): "simple-audio-card" -> ssi2 -> I2S + I2C -> codec The function call log (simple-card probe -> CONFIG_SND_SIMPLE_CARD): asoc_simple_card_init_dai() @ sound/soc/generic/simple-card-utils.c snd_soc_dai_set_sysclk() fsl_ssi_set_dai_sysclk(

Re: [PATCH] iio staging: tsl2x7x: clean up limit checks

2017-09-03 Thread Jonathan Cameron
On Mon, 21 Aug 2017 13:11:03 +0300 Dan Carpenter wrote: > The second part of this patch is probably the most interesting. We > use "TSL2X7X_MAX_LUX_TABLE_SIZE * 3" as the limit instead of just > "TSL2X7X_MAX_LUX_TABLE_SIZE". It creates a static checker warning that > we are going of of bounds,

Re: [PATCH 4/4] staging: iio: tsl2x7x: constify i2c_device_id

2017-09-03 Thread Jonathan Cameron
On Tue, 22 Aug 2017 10:51:37 +0530 Arvind Yadav wrote: > Hi > > > On Tuesday 22 August 2017 01:50 AM, Dan Carpenter wrote: > > Don't say "[PATCH 4/4]". It's not a patchset or a part of an email > > thread. > Yes, It's part of these patchset. >[PATCH 1/4] misc: apds9802als: constify i2c_d

[PATCH] mtd: nand: lpc32xx_mlc: Fix an error handling path in lpc32xx_nand_probe()

2017-09-03 Thread Christophe JAILLET
If 'clk_prepare_enable()' fails, we must 'put' the corresponding clock. Fixes: 4d26f012ab59 ("mtd: nand: lpc32xx_mlc: Handle return value of clk_prepare_enable.") Signed-off-by: Christophe JAILLET --- Labels in the error handling path could be renamed, but it does not worth the effort, IMHO. ---

[PATCH 1/1] drm/amd/powerplay: initialize a variable before using it

2017-09-03 Thread Nicolas Iooss
Function vega10_apply_state_adjust_rules() only initializes stable_pstate_sclk_dpm_percentage when data->registry_data.stable_pstate_sclk_dpm_percentage is not between 1 and 100. The variable is then used to compute stable_pstate_sclk, which therefore uses an uninitialized value. Fix this by initi

[PATCH 1/1] staging/atomisp: fix header guards

2017-09-03 Thread Nicolas Iooss
Files input_formatter_subsystem_defs.h begin with: #ifndef _if_subsystem_defs_h #define _if_subsystem_defs_h__ and end with: #endif /* _if_subsystem_defs_h__ */ The intent seems to have been to use _if_subsystem_defs_h__ everywhere but two underscores are missing in the initial #ifn

Re: [PATCH] iio: multiplexer: add NULL check on devm_kzalloc() and devm_kmemdup() return values

2017-09-03 Thread Jonathan Cameron
On Sat, 26 Aug 2017 08:09:43 +0200 Peter Rosin wrote: > On 2017-07-09 19:10, Jonathan Cameron wrote: > > On Fri, 7 Jul 2017 11:26:35 +0200 > > Peter Rosin wrote: > > > >> On 2017-07-07 06:57, Peter Rosin wrote: > >>> On 2017-07-07 06:53, Gustavo A. R. Silva wrote: > Check return va

[PATCH 0/10] Use ARRAY_SIZE macro - v4.13-rc7

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Run against versio

[PATCH 5/10] [media] lgdt3306a: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom

[PATCH 2/10] drm/amdgpu: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom

[PATCH 10/10] staging/atomisp: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom

[PATCH 8/10] ath9k: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom

[PATCH] ASoC: samsung: i2s: Fix error handling path in i2s_set_sysclk()

2017-09-03 Thread Christophe JAILLET
If 'clk_prepare_enable()' fails, we must 'put' the corresponding clock. Othewise, there is a resource leak. Fixes: f5c97c7b0438 ("ASoC: samsung: i2s: Handle return value of clk_prepare_enable.") Signed-off-by: Christophe JAILLET --- I'm not 100% confident in this patch. It is mostly inspired by

[PATCH 7/10] net/mlx4_core: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom

[PATCH 9/10] [SCSI] bfa: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom

Re: [PATCH 4.9 01/12] p54: memset(0) whole array

2017-09-03 Thread Christian Lamparter
On Saturday, September 2, 2017 8:51:01 AM CEST Joe Perches wrote: > On Thu, 2017-08-31 at 09:40 -0700, Joe Perches wrote: > > On Thu, 2017-08-31 at 17:44 +0200, Greg Kroah-Hartman wrote: > > > 4.9-stable review patch. If anyone has any objections, please let me > > > know. > > > > > > --

[PATCH 4/10] drm/nouveau/bios/init: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom

[PATCH 3/10] drm/i915/gvt: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom

[PATCH 6/10] ixgbe: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom

Re: [RFC v2 1/6] platform/x86: intel_pmc_ipc: Use devm_* calls in driver probe function

2017-09-03 Thread Andy Shevchenko
On Sun, Sep 3, 2017 at 4:24 AM, wrote: > From: Kuppuswamy Sathyanarayanan > > This patch cleans up unnecessary free/alloc calls in ipc_plat_probe(), > ipc_pci_probe() and ipc_plat_get_res() functions by using devm_* > calls. > > This patch also adds proper error handling for failure cases in > ip

[PATCH 1/10] KVM: PPC: Book3S HV: Use ARRAY_SIZE macro

2017-09-03 Thread Thomas Meyer
Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and manual check/verification. Signed-off-by: Thom

[PATCH v4 0/3] i2c: Hookup typec power-negotation to the PMIC and charger

2017-09-03 Thread Hans de Goede
Hi Wolfram, Almost all patches from my patch series for hooking up typec power-negotation to the PMIC and charger drivers have been queued for merging into 4.14, leaving only the 3 patches of the v4 of this series. The first 2 patches are i2c patches, if you could review and merge these (preferab

[PATCH v4 3/3] platform/x86: intel_cht_int33fe: Update fusb302 type string, add properties

2017-09-03 Thread Hans de Goede
The fusb302 driver as merged in staging uses "typec_fusb302" as i2c-id rather then just "fusb302" and needs us to set a number of device- properties, adjust the intel_cht_int33fe driver accordingly. One of the properties set is max-snk-mv which makes the fusb302 driver negotiate up to 12V charging

[PATCH v4 2/3] i2c-cht-wc: Add device-properties for fusb302 integration

2017-09-03 Thread Hans de Goede
Add device-properties to make the bq24292i charger connected to the bus get its input-current-limit from the fusb302 Type-C port controller which is used on boards with the cht-wc PMIC, as well as regulator_init_data for the 5V boost converter on the bq24292i. Since this means we now hook-up the b

[PATCH v4 1/3] i2c: Allow overriding dev_name through board_info

2017-09-03 Thread Hans de Goede
For devices not instantiated through ACPI the i2c-client's device-name gets set to - by default, e.g. "0-0022" this means that the device-name is dependent on the order in which the i2c-busses are enumerated. In some cases having a predictable constant device-name is desirable, for example on non

[PATCH][rpmsg-next] rpmsg: glink: fix null pointer dereference on a null intent

2017-09-03 Thread Colin King
From: Colin Ian King In the case where glink->intentless is true and the call to qcom_glink_tx fails then we have a condition where ret is non-zero and intent is null, causing a null pointer deference when setting intent->in_use to false. Add an extra check to only dereference intent if intent i

[PATCH] geneve: Fix setting ttl value in collect metadata mode

2017-09-03 Thread Haishuang Yan
If key->tos is zero in collect metadata mode, tos should fallback to ip{4,6}_dst_hoplimit, same as normal mode. Signed-off-by: Haishuang Yan --- drivers/net/geneve.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/net/geneve.c b/drivers/net/geneve.c index f64040

Re: [PATCH] rtc: remove cast to void pointer

2017-09-03 Thread Himanshu Jha
On Tue, Aug 29, 2017 at 08:09:03PM +0530, Himanshu Jha wrote: > casting to void pointer from any pointer type and vice-versa is done > implicitly and therefore casting is not needed in such a case. > I hope my patch is in your queue, got no reply till now. Thanks > Signed-off-by: Himanshu Jha

[PATCH] rpmsg: glink: initialize ret to zero to ensure error status check is correct

2017-09-03 Thread Colin King
From: Colin Ian King The new switch cases for RPM_CMD_RX_DONE, RPM_CMD_RX_DONE_W_REUSE, RPM_CMD_RX_INTENT_REQ_ACK, RPM_CMD_INTENT and RPM_CMD_RX_INTENT_REQ from 4 recent commits are not setting ret and so a later non-zero check on ret is testing on a garbage value in ret. Fix this by initializing

Re: fanotify hangs with AUFS

2017-09-03 Thread J. R. Okajima
Ariel Zelivansky: > I just opened bug 196815 on the kernel bugzilla > (https://bugzilla.kernel.org/show_bug.cgi?id=196815). Let me know if > there's anything else I can do It seems that the problem exists in aufs. I will dive into it. Mainline people should not worry about it. Ariel, Aufs is not

Re: [PATCH 7/10] net/mlx4_core: Use ARRAY_SIZE macro

2017-09-03 Thread Tariq Toukan
On 03/09/2017 3:19 PM, Thomas Meyer wrote: Use ARRAY_SIZE macro, rather than explicitly coding some variant of it yourself. Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) /ARRAY_SIZE(\1)/g' and

[PATCH][thermal-next] thermal: brcmstb: remove two redundant integer range checks

2017-09-03 Thread Colin King
From: Colin Ian King The comparisons for integer low on low > INT_MAX and also integer high > INT_MAX are never going to be true since an int type cannot be greater than INT_MAX. Remove these redundant checks. Detected by: CoverityScan CID#1455245, 1455248 ("Operands don't affect result (CONS

[PATCH] ALSA: hda: Fix regression of hdmi eld control created based on invalid pcm

2017-09-03 Thread Wang YanQing
Commit fb087eaaef72 ("ALSA: hda - hdmi eld control created based on pcm") forget to filter out invalid pcm numbers, if there is only one invalid pcm number, then this issue causes we create eld control for invalid pcm silently, but when there are more than one invalid pcm numbers, then this issue b

[PATCH v2] media: net.h: add kernel-doc and use it at Documentation/

2017-09-03 Thread Mauro Carvalho Chehab
As we did with frontend.h, ca.h and dmx.h, move the struct definition to net.h. That should help to keep it updated, as more stuff gets added there. Signed-off-by: Mauro Carvalho Chehab --- v2: - Version 1 was broken: it was missing net-types.rst file and if_num was called "ifnum", causin

[PATCH] mmc: dw_mmc: make const arrays mszs static

2017-09-03 Thread Colin King
From: Colin Ian King Don't populate the const arrays mszs on the stack, instead make them static. Makes the object code smaller by over 310 bytes: Before: textdata bss dec hex filename 475278528 320 56375dc37 drivers/mmc/host/dw_mmc.o After: textdata

[PATCH 3/3] ARM: dts: sun4i: Add i2s0 block to dtsi

2017-09-03 Thread Priit Laes
sun4i-a10.dtsi was missing i2s0 block. Add it. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun4i-a10.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/boot/dts/sun4i-a10.dtsi index c5efd53..9899ecd 100644 --- a/arch/arm/boot/d

[PATCH 0/3] ARM: dts: sunxi: Use defines for ccu clock indices

2017-09-03 Thread Priit Laes
This is a follow-up commit for sun{4,7}i ccu conversion. Now that all the relevant pieces have been merged we can use dt-binding headers again. Also included is additional patch to add i2s0 block to sun4i dtsi header. Priit Laes (3): ARM: dts: sun4i: Use defines for clock and reset indices AR

[PATCH 1/3] ARM: dts: sun4i: Use defines for clock and reset indices

2017-09-03 Thread Priit Laes
We can now use defines for clock/reset indices defined in the dt-bindings includes. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun4i-a10.dtsi | 121 1 file changed, 61 insertions(+), 60 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10.dtsi b/arch/arm/b

[PATCH 2/3] ARM: dts: sun7i: Use defines for clock and reset indices

2017-09-03 Thread Priit Laes
We can now use defines for clock/reset indices defined in the devicetree binding include files. Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun7i-a20.dtsi | 146 1 file changed, 74 insertions(+), 72 deletions(-) diff --git a/arch/arm/boot/dts/sun7i-a20.dtsi

[PATCH] ASoC: fsl_spdif: make const arrays rate static

2017-09-03 Thread Colin King
From: Colin Ian King Don't populate the const arrays rate on the stack, instead make them static. Makes the object code smaller by 220 bytes: Before: textdata bss dec hex filename 243859776 128 3428985f1 sound/soc/fsl/fsl_spdif.o After: textdata bss

[PATCH] ALSA: hda: Fix assign invalid fixed slots pcm numbers to HDA_PCM_TYPE_HDMI in get_empty_pcm_device

2017-09-03 Thread Wang YanQing
The length of pcm_dev_bits in hda_bus is SNDRV_PCM_DEVICES, and the definiton of SNDRV_PCM_DEVICES is: " #if defined(CONFIG_SND_DYNAMIC_MINORS) #define SNDRV_PCM_DEVICES (SNDRV_OS_MINORS-2) #else #define SNDRV_PCM_DEVICES 8 #endif " So the max valid fixed slots pcm number is 7, an

[PATCH 0/2] [media] Motion Eye: Adjustments for meye_probe()

2017-09-03 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 3 Sep 2017 15:54:45 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete three error messages for a failed memory allocation Adjust two function calls together with a variable assignment drivers/me

[PATCH 1/2] [media] meye: Delete three error messages for a failed memory allocation in meye_probe()

2017-09-03 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 3 Sep 2017 15:30:04 +0200 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/pci/meye/meye.c | 13 - 1 file changed, 4 inser

[PATCH 2/2] [media] meye: Adjust two function calls together with a variable assignment

2017-09-03 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 3 Sep 2017 15:41:53 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/media/pci/meye/meye.c | 7 ---

[PATCH] ALSA: hda: Fix forget to free resource in error handling code path in hda_codec_driver_probe

2017-09-03 Thread Wang YanQing
When hda_codec_driver_probe meet error and return failure, we need to free resource with patch_ops.free, or we will get resource leak. Signed-off-by: Wang YanQing --- sound/pci/hda/hda_bind.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/pci/hda/hda_bind.c b/sound/pci/hda/hda_bind.

[PATCH v2] kaslr: get ACPI SRAT table to avoid movable memory

2017-09-03 Thread Chao Fan
KASLR should choose the memory region of immovable node to extract kernel. So get ACPI SRAT table and store the memory region of movable node which kaslr shold avoid. Signed-off-by: Chao Fan --- v2: Add the support for bios --- arch/x86/boot/compressed/kaslr.c | 346 +

Re: [PATCH] ALSA: hda: Fix regression of hdmi eld control created based on invalid pcm

2017-09-03 Thread Takashi Iwai
On Sun, 03 Sep 2017 15:18:49 +0200, Wang YanQing wrote: > > Commit fb087eaaef72 ("ALSA: hda - hdmi eld control created based on pcm") > forget to filter out invalid pcm numbers, if there is only one invalid pcm > number, then this issue causes we create eld control for invalid pcm silently, > but

[PATCH] dt-binding: phy: don't confuse with Ethernet phy properties

2017-09-03 Thread Baruch Siach
The generic PHY 'phys' property sometime appears in the same node with the Ethernet PHY 'phy' or 'phy-handle' properties. Add a warning in phy-bindings.txt to reduce confusion. Signed-off-by: Baruch Siach --- Documentation/devicetree/bindings/phy/phy-bindings.txt | 4 +++- 1 file changed, 3 inse

Re: [PATCH] ALSA: hda: Fix assign invalid fixed slots pcm numbers to HDA_PCM_TYPE_HDMI in get_empty_pcm_device

2017-09-03 Thread Takashi Iwai
On Sun, 03 Sep 2017 15:52:31 +0200, Wang YanQing wrote: > > The length of pcm_dev_bits in hda_bus is SNDRV_PCM_DEVICES, > and the definiton of SNDRV_PCM_DEVICES is: > " > #if defined(CONFIG_SND_DYNAMIC_MINORS) > #define SNDRV_PCM_DEVICES (SNDRV_OS_MINORS-2) > #else > #define SNDRV_PCM_DE

Re: [PATCH] ALSA: hda: Fix forget to free resource in error handling code path in hda_codec_driver_probe

2017-09-03 Thread Takashi Iwai
On Sun, 03 Sep 2017 16:11:22 +0200, Wang YanQing wrote: > > When hda_codec_driver_probe meet error and return failure, we need > to free resource with patch_ops.free, or we will get resource leak. No, the codec driver is responsible to free resources in its error path. thanks, Takashi

Re: [PATCH] sound: soc: fsl: Do not set DAI sysclk when it is equal to system freq

2017-09-03 Thread Łukasz Majewski
Hi Fabio, [Sorry for the top-posting] The driver currently has: /* * Hardware limitation: The bclk rate must be * never greater than 1/5 IPG clock rate */ if (freq * 5 > clk_get_rate(ssi_private->clk)) { dev_err(cpu_dai->dev, "bitclk > ipgclk/5\n"); return -EINVAL; } Unfortunately not.

[PATCH v2 7/8] staging: ccree: replace noop macro with inline

2017-09-03 Thread Gilad Ben-Yossef
Replace noop macro with a noop inline function Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_driver.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/ccree/ssi_driver.h b/drivers/staging/ccree/ssi_driver.h index 06a3c48..81ba827 100644 ---

[PATCH v2 8/8] staging: ccree: remove BUG macro usage

2017-09-03 Thread Gilad Ben-Yossef
Replace BUG() macro usage that crash the kernel with alternatives that signal error and/or try to recover. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_buffer_mgr.c | 14 ++ drivers/staging/ccree/ssi_cipher.c | 1 - drivers/staging/ccree/ssi_pm.c | 3

[PATCH 0/8] staging: ccree: more cleanup work for 4.14

2017-09-03 Thread Gilad Ben-Yossef
More cleanup work from Sunil and myself. I've previously sent some of these as part of a larger patch set. I've decided to split the patch set to smaller chunks to make it more manageable. This patch set applies on top of commit 28eb51f7468a ("staging:rtl8188eu:core Fix remove unneccessary else b

[PATCH v2 6/8] staging: ccree: move over to BIT macro for bit defines

2017-09-03 Thread Gilad Ben-Yossef
Use BIT macro for bit definitions where needed. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_cipher.h | 10 +- drivers/staging/ccree/ssi_driver.c | 3 ++- drivers/staging/ccree/ssi_driver.h | 6 +++--- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/dri

[PATCH v2 3/8] staging: ccree: Use platform_get_irq and devm_request_irq

2017-09-03 Thread Gilad Ben-Yossef
From: Suniel Mahesh It is recommended to use managed function devm_request_irq(), which simplifies driver cleanup paths and driver code. This patch does the following: (a) replace platform_get_resource(), request_irq() and corresponding error handling with platform_get_irq() and devm_request_irq(

[PATCH v2 5/8] staging: ccree: remove unused completion

2017-09-03 Thread Gilad Ben-Yossef
icache_setup_completion is no longer used. Remove it. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/ssi_driver.c | 2 -- drivers/staging/ccree/ssi_driver.h | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/staging/ccree/ssi_driver.c b/drivers/staging/ccree/ssi_driver.c in

[PATCH v2 4/8] staging: ccree: simplify resource release on error

2017-09-03 Thread Gilad Ben-Yossef
The resource release on probe/init error was being handled in an awkward manner and possibly leaking memory on certain (unlikely) error path. Fix it by simplifying the error resource release and making it easier to track. Reported-by: Dan Carpenter Signed-off-by: Gilad Ben-Yossef --- drivers/s

[PATCH v2 2/8] staging: ccree: Convert to devm_ioremap_resource for map, unmap

2017-09-03 Thread Gilad Ben-Yossef
From: Suniel Mahesh It is recommended to use managed function devm_ioremap_resource(), which simplifies driver cleanup paths and driver code. This patch does the following: (a) replace request_mem_region(), ioremap() and corresponding error handling with devm_ioremap_resource(). (b) remove struct

[PATCH v2 1/8] staging: ccree: Replace kzalloc with devm_kzalloc

2017-09-03 Thread Gilad Ben-Yossef
From: Suniel Mahesh It is recommended to use managed function devm_kzalloc, which simplifies driver cleanup paths and driver code. This patch does the following: (a) replace kzalloc with devm_kzalloc. (b) drop kfree(), because memory allocated with devm_kzalloc() is automatically freed on driver

Re: [PATCH 4.9 01/12] p54: memset(0) whole array

2017-09-03 Thread Joe Perches
On Sun, 2017-09-03 at 14:32 +0200, Christian Lamparter wrote: > On Saturday, September 2, 2017 8:51:01 AM CEST Joe Perches wrote: > > On Thu, 2017-08-31 at 09:40 -0700, Joe Perches wrote: > > > On Thu, 2017-08-31 at 17:44 +0200, Greg Kroah-Hartman wrote: > > > > 4.9-stable review patch. If anyone

[PATCH] ALSA: hda: Fix resource leak issue in snd_hda_codec_build_controls and snd_hda_codec_parse_pcms

2017-09-03 Thread Wang YanQing
When patch_ops.init, patch_ops.build_pcms and patch_ops.build_controls return failure, we need to free resource with patch_ops.free, or we will get resource leak. Signed-off-by: Wang YanQing --- sound/pci/hda/hda_codec.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/s

Re: RFC: Revert move default dialect from CIFS to to SMB3

2017-09-03 Thread Thorsten Leemhuis
Hi! Just a quick feedback from my side. After reading Andrew explanation in this thread about the "movement against SMB1" I kind of think "maybe the proposed revert for 4.13 and doing it properly in 4.14 would really have been a good fit". But whatever, doesn't bother me much any more: Steve Fren

Re: [PATCH] sound: soc: fsl: Do not set DAI sysclk when it is equal to system freq

2017-09-03 Thread Fabio Estevam
On Sun, Sep 3, 2017 at 11:40 AM, Łukasz Majewski wrote: > This is the part of fsl_ssi_set_bclk() function which is called after > fsl_ssi_set_dai_sysclk() (which sets ssi_private->bitclk_freq = freq;). > > Before the aforementioned check we do have: > > if (ssi_private->bitclk_freq) >

Re: [PATCH 0/10] Use ARRAY_SIZE macro - v4.13-rc7

2017-09-03 Thread Joe Perches
On Sun, 2017-09-03 at 14:19 +0200, Thomas Meyer wrote: > Use ARRAY_SIZE macro, rather than explicitly coding some variant of it > yourself. > > Found with: find -type f -name "*.c" -o -name "*.h" | xargs perl -p -i -e > 's/\bsizeof\s*\(\s*(\w+)\s*\)\s*\ /\s*sizeof\s*\(\s*\1\s*\[\s*0\s*\]\s*\) > /A

Re: [PATCH] iio: imu: inv_mpu6050: fix missing break in switch

2017-09-03 Thread Jonathan Cameron
On Wed, 23 Aug 2017 08:41:43 +0200 (CEST) Peter Meerwald-Stadler wrote: > > Add missing break statement to prevent the code for case > > IIO_CHAN_INFO_CALIBBIAS falling through to the default case. > > > > Also, add a break to the default case for the switch within > > case IIO_CHAN_INFO_CALIBBI

Re: [PATCH] ALSA: hda: Fix resource leak issue in snd_hda_codec_build_controls and snd_hda_codec_parse_pcms

2017-09-03 Thread Wang YanQing
On Sun, Sep 03, 2017 at 11:27:31PM +0800, Wang YanQing wrote: > When patch_ops.init, patch_ops.build_pcms and patch_ops.build_controls > return failure, we need to free resource with patch_ops.free, or we will > get resource leak. > > Signed-off-by: Wang YanQing > --- > sound/pci/hda/hda_codec.c

linux-next: Signed-off-by missing for commits in the mips tree

2017-09-03 Thread Stephen Rothwell
Hi all, Commits bb19a5e5205b MIPS: lantiq: Remove the arch/mips/lantiq/xway/reset.c implementation f6a4de1654c9 MIPS: lantiq: Add a GPHY driver which uses the RCU syscon-mfd 565f7e8292f5 reset: Add a reset controller driver for the Lantiq XWAY based SoCs e55bfdfacaed Documentation: DT: MIPS: lan

Re: [PATCH v5] iio: accel: mma8452: improvements to handle multiple events

2017-09-03 Thread Jonathan Cameron
On Tue, 29 Aug 2017 23:01:16 -0400 harinath Nampally wrote: > > We should never say "transient is for rising > > direction" or "ff_mt is for falling direction". any combination is fine. > > Ok I agree that there is no hard and fast rule that "transient is for rising > direction" or "ff_mt is f

Re: [PATCH] iio: imu: inv_mpu6050: make arrays hz and d static

2017-09-03 Thread Jonathan Cameron
On Wed, 30 Aug 2017 12:16:16 +0100 Colin King wrote: > From: Colin Ian King > > Don't populate the arrays on the stack, instead make them static. > Makes the object code smaller by 135 bytes: > > Before: >text data bss dec hex filename > 15135 4240 128

Re: [PATCH 2/5] lmp92001: mfd: iio: adc: Add support LMP92001

2017-09-03 Thread Jonathan Cameron
On Wed, 30 Aug 2017 20:21:58 +0100 Jonathan Cameron wrote: > Hi, for a multipart driver like this, please send all parts to all cc'd > people. > We would like to know how it fits together. > > Resending with that will save everyone time tracking down the other parts. Just to clarify - I'm not

Re: Linux 4.13: Reported regressions as of Sunday, 2017-09-03

2017-09-03 Thread Linus Torvalds
On Sun, Sep 3, 2017 at 2:36 AM, Thorsten Leemhuis wrote: > > [x86/mm/gup] e585513b76: will-it-scale.per_thread_ops -6.9% regression > Status: Asked on the list, but looks like issue gets ignored by everyone > Note: I'm a bit unsure if adding this issue to this list was a good > idea. Side note: Wa

Re: [PATCH] ALSA: hda: Fix resource leak issue in snd_hda_codec_build_controls and snd_hda_codec_parse_pcms

2017-09-03 Thread Takashi Iwai
On Sun, 03 Sep 2017 18:10:53 +0200, Wang YanQing wrote: > > On Sun, Sep 03, 2017 at 11:27:31PM +0800, Wang YanQing wrote: > > When patch_ops.init, patch_ops.build_pcms and patch_ops.build_controls > > return failure, we need to free resource with patch_ops.free, or we will > > get resource leak. >

  1   2   3   >