[PATCH 1/2] compat ABI: use non-compat openat and open_by_handle_at variants

2015-12-26 Thread Yury Norov
The only difference is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we don't support 32-bit off_t. The only exception is tile32, that continues with compat version of syscalls. Signed-off-by: Yury Norov ---

[PATCH 0/2] ABI: handle 32-bit off_t for 32-bit and compat ABIs

2015-12-26 Thread Yury Norov
32-bit off_t is supported only for old 32-bit and compat ABIs. New ABIs are 64-bit length only. This patchset makes 64-bit length the default for off_t, and reverts it for old architectures where needed. It does not change the behaviour of existing code. First patch makes all compat users of

Re: [PATCH v2 14/16] x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search

2015-12-26 Thread Minfei Huang
Ccing kexec maillist. On 12/25/15 at 03:09pm, Toshi Kani wrote: > diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c > index c245085..e2bd737 100644 > --- a/kernel/kexec_file.c > +++ b/kernel/kexec_file.c > @@ -522,10 +522,10 @@ int kexec_add_buffer(struct kimage *image, char > *buffer,

[PATCH v6 2/3] spi: sun4i: Fix clock calculations to be predictable and never exceed the requested rate

2015-12-26 Thread Marcus Weseloh
This patch fixes multiple problems with the current clock calculations: 1. The A10/A20 datasheet contains the formula AHB_CLK / (2^(n+1)) to calculate SPI_CLK from CDR1, but this formula is wrong. The actual formula - determined by analyzing the actual waveforms - is AHB_CLK / (2^n). 2. The

[PATCH v6 3/3] spi: sun4i: Add support for wait time between word transmissions

2015-12-26 Thread Marcus Weseloh
Modifies the sun4i SPI master driver to make use of the "spi-word-wait-ns" property. This specific SPI controller needs 3 clock cycles to set up the delay, which makes the minimum non-zero wait time on this hardware 4 clock cycles. Signed-off-by: Marcus Weseloh --- drivers/spi/spi-sun4i.c | 24

[PATCH v6 1/3] spi: dts: Add new device property to specifcy a wait time between word transmissions

2015-12-26 Thread Marcus Weseloh
Adds a new property "spi-word-wait-ns" to the spi-bus binding that allows SPI slave devices to set a wait time between the transmission of words. Signed-off-by: Marcus Weseloh Reviewed-by: Maxime Ripard Acked-by: Rob Herring --- Documentation/devicetree/bindings/spi/spi-bus.txt | 2 ++

[PATCH v6 0/3] spi: dts: sun4i: Add support for wait time between word transmissions

2015-12-26 Thread Marcus Weseloh
Hi all, This is the sixth version of the patch set that adds a new property "spi-word-wait-ns" to the spi-bus binding to allow SPI slave devices to set a wait time between the transmission of words. It modifies the spi_device struct and slave device probing to read and store the new property.

[PATCH v2] crypto: AF_ALG - add support for keys/asymmetric-type

2015-12-26 Thread Tadeusz Struk
From: Tadeusz Struk Created on top of patchset from Stephan Mueller https://patchwork.kernel.org/patch/7877921/ https://patchwork.kernel.org/patch/7877971/ https://patchwork.kernel.org/patch/7877961/ This patch adds support for asymmetric key type to AF_ALG. It will work as follows: A new

[PATCH 7/7] soc: ti: fix error return code

2015-12-26 Thread Julia Lawall
Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when !=

[PATCH 6/7] drivers: net: cpsw: fix error return code

2015-12-26 Thread Julia Lawall
Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when !=

[PATCH 5/7] rsxx: fix error return code

2015-12-26 Thread Julia Lawall
Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when !=

[PATCH 4/7] usb: gadget: legacy: fix error return code

2015-12-26 Thread Julia Lawall
Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when !=

[PATCH 0/7] fix error return code

2015-12-26 Thread Julia Lawall
The complate semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @ok exists@ identifier f,ret,i; expression e; constant c; @@ // identify a function that returns a negative return value at least once. f(...) { ... when any ( return -c@i; | ret = -c@i; ... when

[PATCH 2/7] gdrom: fix error return code

2015-12-26 Thread Julia Lawall
Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when !=

[PATCH 3/7] omapfb: fix error return code

2015-12-26 Thread Julia Lawall
Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when !=

[PATCH 1/7] umem: fix error return code

2015-12-26 Thread Julia Lawall
Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return ret; } | ret = 0 ) ... when != ret = e1 when !=

[PATCH] Staging: ste_rmi4: Remove obsolete driver

2015-12-26 Thread shraddha.6596
From: Shraddha Barke Remove support for Synaptics RMI4 Touchscreen driver from the staging directory since support for Synaptics RMI4 touchpads has been added in the mainline kernel. commit 9fb6bf02e3ad ("HID: rmi: introduce RMI driver for Synaptics touchpads") Signed-off-by: Shraddha Barke

Re: [PATCH 2/2] kexec: Provide arch_kexec_protect(unprotect)_crashkres()

2015-12-26 Thread Minfei Huang
On 12/23/15 at 07:12pm, Xunlei Pang wrote: > Implement the protection method for the crash kernel memory > reservation for the 64-bit x86 kdump. > > Signed-off-by: Xunlei Pang > --- > Only provided x86_64 implementation, as I've only tested on x86_64 so far. > >

[PATCH] RFKill airplane mode LED trigger

2015-12-26 Thread João Paulo Rechi Vita
This patch adds a LED trigger to drive the airplane mode LED present in some modern laptops. It will be used by the asus-wireless platform driver, which is currently under review on platform-driver-...@vger.kernel.org (the idea was mainly approved, but I'm addressing some comments by the

[PATCH] net/rfkill: Create "airplane mode" LED trigger

2015-12-26 Thread João Paulo Rechi Vita
For platform drivers to be able to correctly drive the "Airplane Mode" indicative LED there needs to be a RFKill LED trigger tied to the global state of RFKILL_TYPE_ALL (instead of to a specific RFKill) and that works in an inverted manner of regular RFKill LED triggers, that is, the LED is ON

[PATCH 2/4] asus-wireless: Add ACPI HID ATK4001

2015-12-26 Thread João Paulo Rechi Vita
As reported in https://bugzilla.kernel.org/show_bug.cgi?id=98931#c22 in the Asus UX31A the Asus Wireless Radio Control device (ASHS) uses the HID "ATK4001". Signed-off-by: João Paulo Rechi Vita Reported-by: Tasev Nikola --- drivers/platform/x86/asus-wireless.c | 1 + 1 file changed, 1

[PATCH 3/4] net/rfkill: Create "airplane mode" LED trigger

2015-12-26 Thread João Paulo Rechi Vita
For platform drivers to be able to correctly drive the "Airplane Mode" indicative LED there needs to be a RFKill LED trigger tied to the global state of RFKILL_TYPE_ALL (instead of to a specific RFKill) and that works in an inverted manner of regular RFKill LED triggers, that is, the LED is ON

[PATCH 4/4] asus-wireless: Toggle airplane mode LED

2015-12-26 Thread João Paulo Rechi Vita
In the ASHS device we have the HSWC method, which basically calls either OWGD or OWGS, depending on its parameter: Device (ASHS) { Name (_HID, "ATK4002") // _HID: Hardware ID Method (HSWC, 1, Serialized) { If

[PATCH 1/4] platform/x86: Add Asus Wireless Radio Control driver

2015-12-26 Thread João Paulo Rechi Vita
Some Asus notebooks like the Asus E202SA and the Asus X555UB have a separate ACPI device for notifications from the airplane mode hotkey. This device is called "Wireless Radio Control" in Asus websites and ASHS in the DSDT, and its ACPI _HID is ATK4002 in the two models mentioned above. For these

[RFCv2 0/4] Asus Wireless Radio Control driver

2015-12-26 Thread João Paulo Rechi Vita
This is the 2nd RFC for the "Asus Wireless Radio Control" device, addressing the comments on the previous RFC. The differences from the previous RFC are: - Generate input events accessing the input layer directly instead of using sparse_keymap, as this was considered overkill for a device

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-26 Thread Andy Lutomirski
On Dec 26, 2015 6:33 PM, "Borislav Petkov" wrote: > > On Fri, Dec 25, 2015 at 08:05:39PM +, Luck, Tony wrote: > > mce_in_kernel_recov() should check whether we have a fix up entry for > > the specific IP that hit the machine check before rating the severity > > as kernel recoverable. > >

[PATCH] arch/x86/kernel/ptrace.c: Remove redundant arg_offs_table

2015-12-26 Thread chengang
From: Chen Gang The related warning from gcc 6.0: arch/x86/kernel/ptrace.c:127:18: warning: ‘arg_offs_table’ defined but not used [-Wunused-const-variable] static const int arg_offs_table[] = { ^~ Signed-off-by: Chen Gang --- arch/x86/kernel/ptrace.c |

Re: [PATCH V2 1/3] ARM: multi_v7_defconfig: Enable beaglebone PMIC TPS65217

2015-12-26 Thread Afzal Mohammed
Hi, On Tue, Dec 22, 2015 at 11:31:52AM -0800, Olof Johansson wrote: > On Wed, Dec 16, 2015 at 07:15:41PM +0530, Afzal Mohammed wrote: > > That patch didn't get a reply at all, hence assuming that it won't be > > picked & don't want to create a noise on that silent thread ;), but if > > it gets

[PATCH] kernel: rcu: tree: Remove useless rcu_data_p when !PREEMPT_RCU

2015-12-26 Thread chengang
From: Chen Gang The related warning from gcc 6.0: In file included from kernel/rcu/tree.c:4630:0: kernel/rcu/tree_plugin.h:810:40: warning: ‘rcu_data_p’ defined but not used [-Wunused-const-variable] static struct rcu_data __percpu *const rcu_data_p = _sched_data;

[PATCH] include/linux/amd-iommu.h: Move to arch/x86/include/asm

2015-12-26 Thread chengang
From: Chen Gang It is architecture specific mechanism header, not generic header, so move it to arch/x86/include/asm. ALso change all related contents for it. Signed-off-by: Chen Gang --- MAINTAINERS | 2 +- {include/linux =>

[PATCH] iio: qcom-spmi-vadc: One check less in vadc_measure_ref_points() after error detection

2015-12-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Dec 2015 13:53:15 +0100 This issue was detected by using the Coccinelle software. Move the jump label directly before the desired log statement so that the variable "ret" does not need to be checked once more after it was determined that a function call

Re: [GIT PULL] parisc huge page support for v4.4

2015-12-26 Thread Helge Deller
On 26.12.2015 13:09, Mikulas Patocka wrote: >> On Tue, 24 Nov 2015, Helge Deller wrote: >>> * Mikulas Patocka : On Tue, 24 Nov 2015, Helge Deller wrote: >> Hi >> >> Since the kernel 4.4-rc2 I'm getting frequent boot failures on PA-RISC. >> When I revert this patchset, the

timerfd_settime/timerfd_gettime issue ?

2015-12-26 Thread Helge Deller
Hi Thomas, I see a strange behavior on the parisc platform, for which I'm not sure if it's intended or if there is a bug somewhere. The program calls timerfd_settime() and sets a timer (e.g. sec=0, nsec=1). Directly after setting the timer it calls timerfd_gettime() and receives

Re: [PATCH] init, Documentation: Remove ramdisk_blocksize mentions

2015-12-26 Thread Jonathan Corbet
On Wed, 23 Dec 2015 18:28:49 -0600 Robert Elliott wrote: > The brd driver has never supported the ramdisk_blocksize kernel > parameter that was in the rd driver it replaced, so remove > mention of this parameter from comments and Documentation. > > Commit 9db5579be4bb ("rewrite rd") replaced rd

Re: [GIT PULL] parisc huge page support for v4.4

2015-12-26 Thread Mikulas Patocka
On Tue, 24 Nov 2015, Mikulas Patocka wrote: > > > On Tue, 24 Nov 2015, Helge Deller wrote: > > > * Mikulas Patocka : > > > > > > > > > On Tue, 24 Nov 2015, Helge Deller wrote: > > > > > > > > Hi > > > > > > > > > > Since the kernel 4.4-rc2 I'm getting frequent boot failures on > > > > >

[PATCH v2] wl1251: add sysfs interface for bluetooth coexistence mode configuration

2015-12-26 Thread Pali Rohár
Port the bt_coex_mode sysfs interface from wl1251 driver version included in the Maemo Fremantle kernel to allow bt-coexistence mode configuration. This enables userspace applications to set one of the modes WL1251_BT_COEX_OFF, WL1251_BT_COEX_ENABLE and WL1251_BT_COEX_MONOAUDIO. The default mode

[PATCH v2 1/1] fix a dead loop when in heavy low memory

2015-12-26 Thread Figo
Android System UI hang when run heavy monkey stress test. Run this monkey stress test script with more than 100 apps/games installed: adb shell "monkey --ignore-crashes --ignore-timeouts --kill-process-after-error --ignore-security-exceptions --throttle 200 -v 2000" kernel log: [

[PATCH 1/1] fix a dead loop when in heavy low memory

2015-12-26 Thread Figo
Android System UI hang when run heavy monkey stress test. monkey stress test script: adb shell "monkey --ignore-crashes --ignore-timeouts --kill-process-after-error --ignore-security-exceptions --throttle 200 -v 2000" kernel log: [ 1526.272125] lowmem_scan start: 128, 213da, ofree -9849

[PATCH 1/1] fix a dead loop when in heavy low memory

2015-12-26 Thread Figo
Android System UI hang when run heavy monkey stress test. monkey stress test script: adb shell "monkey --ignore-crashes --ignore-timeouts --kill-process-after-error --ignore-security-exceptions --throttle 200 -v 2000" kernel log: [ 1526.272125] lowmem_scan start: 128, 213da, ofree -9849

[PATCH v3] Staging: olpc_dcon: Remove obsolete driver

2015-12-26 Thread shraddha.6596
From: Shraddha Barke Remove support for One Laptop Per Child organization since it is dead. http://www.olpcnews.com/about_olpc_news/goodbye_one_laptop_per_child.html Signed-off-by: Shraddha Barke --- Changes in v3 - Nothing. Patch based on correct branch Changes in v2 - Added public mailing

[PATCH LINUX v5 1/8] tty: xuartps: Beautify read-modify writes

2015-12-26 Thread Soren Brinkmann
Non-functional, formatting changes to ease reading the code. Signed-off-by: Soren Brinkmann Reviewed-by: Peter Hurley Reviewed-by: Moritz Fischer --- drivers/tty/serial/xilinx_uartps.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git

[PATCH LINUX v5 6/8] tty: xuartps: Keep lock for whole ISR

2015-12-26 Thread Soren Brinkmann
The RX path in the interrupt handler released a lock unnecessarily. Signed-off-by: Soren Brinkmann Reviewed-by: Peter Hurley --- drivers/tty/serial/xilinx_uartps.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c

[PATCH LINUX v5 4/8] tty: xuartps: Clear interrupt status register in shutdown

2015-12-26 Thread Soren Brinkmann
When shutting down the UART, clear the interrupt status register. Bits in the ISR are cleared by writing them as '1'. Signed-off-by: Soren Brinkmann Reviewed-by: Peter Hurley Reviewed-by: Moritz Fischer --- v4: - clarify workings of the ISR in the commit message ---

[PATCH LINUX v5 2/8] tty: xuartps: Use spinlock to serialize HW access

2015-12-26 Thread Soren Brinkmann
Instead of disabling the IRQ, use the spin lock to serialize accesses to the HW. This protects the driver from interference of non-IRQ callbacks with each other and makes the driver more consistent in its serialization method. Signed-off-by: Soren Brinkmann Reviewed-by: Peter Hurley ---

[PATCH LINUX v5 3/8] tty: xuartps: Don't consider circular buffer when enabling transmitter

2015-12-26 Thread Soren Brinkmann
Restarting the transmitter even if the circ buffer is empty may be necessary to push out remaining data when the port is restarted after being stopped. Cc: Peter Hurley Signed-off-by: Soren Brinkmann Reviewed-by: Peter Hurley --- v3: - changed this patch to not always enable the transmitter,

[PATCH LINUX v5 7/8] tty: xuartps: Acquire port lock for shutdown

2015-12-26 Thread Soren Brinkmann
Shutting down the UART port can happen while console operations are in progress. Holding the port lock serializes these operations and avoids the UART HW to be disabled in the middle of console prints. Signed-off-by: Soren Brinkmann Reviewed-by: Peter Hurley ---

[PATCH LINUX v5 0/8] tty: xuartps: Fix lock ups

2015-12-26 Thread Soren Brinkmann
Hi, as requested by Peter, this is the first part of my series which has the patches reviewed by Peter. I'll submit the second part separately. There are no new changes within the patches. Thanks, Sören Sören Brinkmann (8): tty: xuartps: Beautify read-modify writes tty:

[PATCH LINUX v5 5/8] tty: xuartps: Improve startup function

2015-12-26 Thread Soren Brinkmann
The startup function is supposed to initialize the UART for receiving. Hence, don't enable the TX part. Also, protect HW accesses with the port lock. Signed-off-by: Soren Brinkmann Reviewed-by: Peter Hurley --- drivers/tty/serial/xilinx_uartps.c | 20 1 file changed, 12

[PATCH LINUX v5 8/8] tty: xuartps: Move RX path into helper function

2015-12-26 Thread Soren Brinkmann
Move RX-related IRQ handling into a helper function. Fixes a problem where every char received after a parity or frame error in the current isr will also be tagged as a parity or frame error. Signed-off-by: Soren Brinkmann Reviewed-by: Peter Hurley --- v4: - added Peter's additional

Re: [PATCH v2 14/16] x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search

2015-12-26 Thread Borislav Petkov
On Fri, Dec 25, 2015 at 03:09:23PM -0700, Toshi Kani wrote: > Change to call walk_iomem_res_desc() for searching resource entries > with the following names: > "ACPI Tables" > "ACPI Non-volatile Storage" > "Persistent Memory (legacy)" > "Crash kernel" > > Note, the caller of walk_iomem_res()

Re: [PATCHV5 3/3] x86, ras: Add __mcsafe_copy() function to recover from machine checks

2015-12-26 Thread Borislav Petkov
On Fri, Dec 25, 2015 at 08:05:39PM +, Luck, Tony wrote: > mce_in_kernel_recov() should check whether we have a fix up entry for > the specific IP that hit the machine check before rating the severity > as kernel recoverable. Yeah, it is not precise right now. But this is easy - I'll change it

[PATCH 3/3] IDE-ACPI: Move an assignment for one variable in ide_get_dev_handle()

2015-12-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Dec 2015 10:50:33 +0100 Move the assignment for the variable "addr" to the statement where its value is used after previous function calls succeeded. Signed-off-by: Markus Elfring --- drivers/ide/ide-acpi.c | 5 ++--- 1 file changed, 2 insertions(+), 3

[PATCH 2/3] IDE-ACPI: Delete unnecessary null pointer checks in ide_get_dev_handle()

2015-12-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Dec 2015 10:33:48 +0100 The variable "dinfo" will contain an appropropriate pointer after a call of the acpi_get_object_info() function succeeded. Thus remove two safety checks. Signed-off-by: Markus Elfring --- drivers/ide/ide-acpi.c | 4 ++-- 1 file

[PATCH 1/3] IDE-ACPI: One function call less in ide_get_dev_handle() after error detection

2015-12-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Dec 2015 10:01:36 +0100 The kfree() function was called in two cases by the ide_get_dev_handle() function during error handling even if the passed variable "dinfo" contained a null pointer. * Let us return directly if a call of the function "ACPI_HANDLE" or

[PATCH 0/3] IDE-ACPI: Fine-tuning for a function

2015-12-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Dec 2015 11:04:56 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): One function call less in ide_get_dev_handle() after error detection Delete unnecessary null pointer checks in

[f2fs-dev] [PATCH] f2fs: fix bugs and simplify codes of f2fs_fiemap

2015-12-26 Thread Fan Li
fix bugs: 1. len could be updated incorrectly when start+len is beyond isize. 2. If there is a hole consisting of more than two blocks, it could fail to add FIEMAP_EXTENT_LAST flag for the last extent. 3. If there is an extent beyond isize, when we search extents in a range that ends at

[PATCH 3/3] bpf: hash: use per-bucket spinlock

2015-12-26 Thread Ming Lei
From: Ming Lei Both htab_map_update_elem() and htab_map_delete_elem() can be called from eBPF program, and they may be in kernel hot path, so it isn't efficient to use a per-hashtable lock in this two helpers. The per-hashtable spinlock is used just for protecting bucket's hlist, and per-bucket

[PATCH 2/3] bpf: hash: move select_bucket() out of htab's spinlock

2015-12-26 Thread Ming Lei
The spinlock is just used for protecting the per-bucket hlist, so it isn't needed for selecting bucket. Signed-off-by: Ming Lei --- kernel/bpf/hashtab.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/kernel/bpf/hashtab.c b/kernel/bpf/hashtab.c index 2615388..d857fcb

[PATCH 0/3] bpf: hash: use per-bucket spinlock

2015-12-26 Thread Ming Lei
Hi, This patchset tries to optimize ebpf hash map, and follows the idea: Both htab_map_update_elem() and htab_map_delete_elem() can be called from eBPF program, and they may be in kernel hot path, it isn't efficient to use a per-hashtable lock in this two helpers,

[PATCH 1/3] bpf: hash: use atomic count

2015-12-26 Thread Ming Lei
Preparing for removing global per-hashtable lock, so the counter need to be defined as aotmic_t first. Signed-off-by: Ming Lei --- kernel/bpf/hashtab.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/bpf/hashtab.c b/kernel/bpf/hashtab.c index

Re: [f2fs-dev] [PATCH 4/5] f2fs: support data flush in ioctl

2015-12-26 Thread Chao Yu
Hi Jaegeuk, On 12/25/15 5:06 AM, Jaegeuk Kim wrote: > Hi Chao, > > On Thu, Dec 24, 2015 at 06:10:25PM +0800, Chao Yu wrote: >> Sometimes user want to sync all data belong to superblock into storage >> for persistence, 'syncfs' syscall is one option, still f2fs supports >> similar one through

Re: [GIT PULL] tpmdd updates for Linux 4.5

2015-12-26 Thread James Morris
On Mon, 21 Dec 2015, Jarkko Sakkinen wrote: > Hi > > Here are tpmdd updates for Linux 4.5. Sorry I didn't send this already > last week but I had to hold until I get ack from Peter and Mimi before > doing anything. Patches are quite well baked for a while now with the > exception of small fix

Re: [PATCH 4/6] bpf: hash: convert per-hashtable lock into per-bucket bit spinlock

2015-12-26 Thread Ming Lei
On Fri, Dec 18, 2015 at 2:20 PM, Alexei Starovoitov wrote: > On Wed, Dec 16, 2015 at 02:58:08PM +0800, Ming Lei wrote: >> On Wed, Dec 16, 2015 at 1:01 PM, Yang Shi wrote: >> >> > >> > I recalled Steven confirmed raw_spin_lock has the lockdep benefit too in >> > the >> > patch review for

Re: i2c-core: One function call less in acpi_i2c_space_handler() after error detection

2015-12-26 Thread SF Markus Elfring
>> The kfree() function was called in one case by the >> acpi_i2c_space_handler() function during error handling >> even if the passed variable "client" contained a null pointer. > > This is OK. kfree() is known to be NULL-tolerant and we rely on it in > various places to keep the code simpler.

Re: [PATCH 6/7] drivers: net: cpsw: fix error return code

2015-12-26 Thread Julia Lawall
> > diff --git a/drivers/net/ethernet/ti/cpsw.c > > b/drivers/net/ethernet/ti/cpsw.c > > index 3409e80..6a76992 100644 > > --- a/drivers/net/ethernet/ti/cpsw.c > > +++ b/drivers/net/ethernet/ti/cpsw.c > > @@ -2448,8 +2448,10 @@ static int cpsw_probe(struct platform_device *pdev) > > > > /* RX

Re: [PATCH v2 1/1] fix a dead loop when in heavy low memory

2015-12-26 Thread Greg KH
On Sun, Dec 27, 2015 at 03:39:42AM +0800, Figo wrote: > Android System UI hang when run heavy monkey stress test. What changed from v1 of this patch? Please describe that below the --- line. > > Signed-off-by: Figo I need a "full" name here, not a "short" name,

Re: [PATCH 0/3] IDE-ACPI: Fine-tuning for a function

2015-12-26 Thread David Miller
IDE is in deep freeze maintainence mode. Therefore patches that perform simplications and cleanups will not be accepted. Thanks. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

[PATCH] nvme: consolidate kmallc + memset 0 into kzalloc

2015-12-26 Thread Nicholas Mc Guire
This is an API consolidation only. The use of kmalloc + memset to 0 here should be equivalent to kzalloc. Signed-off-by: Nicholas Mc Guire --- Found by coccinelle script (relaxed version of scripts/coccinelle/api/alloc/kzalloc-simple.cocci) Patch was compile tested with:

Re: [PATCH] Fix documentation for adp1653 DT

2015-12-26 Thread Pavel Machek
On Sat 2015-12-26 00:37:16, Pali Rohár wrote: > Property names do not match real names needed by driver itself. > This patch fix this problem. > > Signed-off-by: Pali Rohár Acked-by: Pavel Machek Now... if someone could convert adp1653 to the LED subsystem

[PATCH] block: add start and size to ABI documentation

2015-12-26 Thread Peter Wu
Document the start and size fields (which were introduced in commit v2.5.42-215-gb288f6a) to avoid guesswork on the unit. Signed-off-by: Peter Wu --- Hi, As the meaning has not changed for over 13 years, I would like to formalize these attributes such that users can rely on

[PATCH 4/6] InfiniBand-ocrdma: Return a value from a function call in _ocrdma_modify_qp() directly

2015-12-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Dec 2015 18:40:43 +0100 Return the value from a call of the ocrdma_mbx_modify_qp() function without using an extra assignment for the local variable "status". Signed-off-by: Markus Elfring ---

Re: [PATCH 6/7] drivers: net: cpsw: fix error return code

2015-12-26 Thread Sergei Shtylyov
Hello. On 12/26/2015 08:50 PM, Sergei Shtylyov wrote: diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 3409e80..6a76992 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -2448,8 +2448,10 @@ static int cpsw_probe(struct

Re: [PATCH 6/7] drivers: net: cpsw: fix error return code

2015-12-26 Thread Sergei Shtylyov
On 12/26/2015 11:07 PM, Julia Lawall wrote: diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 3409e80..6a76992 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -2448,8 +2448,10 @@ static int cpsw_probe(struct platform_device

Re: [PATCH v2 14/16] x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search

2015-12-26 Thread Minfei Huang
Ccing kexec maillist. On 12/25/15 at 03:09pm, Toshi Kani wrote: > diff --git a/kernel/kexec_file.c b/kernel/kexec_file.c > index c245085..e2bd737 100644 > --- a/kernel/kexec_file.c > +++ b/kernel/kexec_file.c > @@ -522,10 +522,10 @@ int kexec_add_buffer(struct kimage *image, char > *buffer,

[PATCH 5/6] InfiniBand-ocrdma: Returning only value constants in ocrdma_resize_cq()

2015-12-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Dec 2015 18:54:47 +0100 Return constant integer values without storing them in the local variable "status". Signed-off-by: Markus Elfring --- drivers/infiniband/hw/ocrdma/ocrdma_verbs.c | 9

Re: [PATCH] ARM: dts: omap3: Include missing bandgap data for ti-soc-thermal driver

2015-12-26 Thread Pavel Machek
On Sat 2015-12-26 00:32:25, Pali Rohár wrote: > Driver for omap3 with documentation is there since v4.4-rc1. > > Signed-off-by: Pali Rohár Acked-by: Pavel Machek Tested-by: Pavel Machek Thanks!

[PATCH 6/6] InfiniBand-ocrdma: Delete an unnecessary variable in ocrdma_dealloc_pd()

2015-12-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Dec 2015 19:09:23 +0100 1. Return zero in one case directly. 2. Return the value from a call of the _ocrdma_dealloc_pd() function without using an extra assignment for the local variable. 3. Remove the variable "status" in

Re: [PATCH 6/7] drivers: net: cpsw: fix error return code

2015-12-26 Thread Julia Lawall
On Sat, 26 Dec 2015, Sergei Shtylyov wrote: > Hello. > > On 12/26/2015 08:50 PM, Sergei Shtylyov wrote: > > > > > > diff --git a/drivers/net/ethernet/ti/cpsw.c > > > > > b/drivers/net/ethernet/ti/cpsw.c > > > > > index 3409e80..6a76992 100644 > > > > > --- a/drivers/net/ethernet/ti/cpsw.c > > >

Re: [PATCH] coccinelle: api: check for propagation of error from platform_get_irq

2015-12-26 Thread Julia Lawall
On Sat, 26 Dec 2015, Sergei Shtylyov wrote: > On 12/26/2015 10:24 PM, Julia Lawall wrote: > > > The error return value of platform_get_irq seems to often get dropped. > >Maybe it was intentional (see my recent follow-up to your netdev patch). > But if an error gets unconditionally

Re: [PATCH] coccinelle: api: check for propagation of error from platform_get_irq

2015-12-26 Thread Julia Lawall
The conclusion seems to be that it is useful to override the value, so we can just drop this semantic patch. julia -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at

Re: [PATCH] coccinelle: api: check for propagation of error from platform_get_irq

2015-12-26 Thread Julia Lawall
On Sat, 26 Dec 2015, Sergei Shtylyov wrote: > On 12/26/2015 11:24 PM, Julia Lawall wrote: > > > The conclusion seems to be that it is useful to override the value, so we > > can just drop this semantic patch. > >No! As I said, unconditionally overriding an error value breaks the >

Re: [PATCH] ptrace: being capable wrt a process requires mapped uids/gids

2015-12-26 Thread Jann Horn
On Sat, Dec 26, 2015 at 02:23:45PM -0600, Serge E. Hallyn wrote: > On Sat, Dec 26, 2015 at 02:10:38AM +0100, Jann Horn wrote: > > On Sat, Dec 12, 2015 at 09:12:41PM +0100, Jann Horn wrote: > > > With this change, the entering process can first enter the > > > namespace and then safely inspect the

[PATCH 0/2] ABI: handle 32-bit off_t for 32-bit and compat ABIs

2015-12-26 Thread Yury Norov
32-bit off_t is supported only for old 32-bit and compat ABIs. New ABIs are 64-bit length only. This patchset makes 64-bit length the default for off_t, and reverts it for old architectures where needed. It does not change the behaviour of existing code. First patch makes all compat users of

[PATCH 2/2] 32-bit ABI: introduce ARCH_32BIT_OFF_T config option

2015-12-26 Thread Yury Norov
All new 32-bit architectures should have 64-bit off_t type, but existing architectures has 32-bit ones. To handle it, new config option is added to arch/Kconfig that defaults ARCH_32BIT_OFF_T to be disabled by default. All existing 32-bit architectures enable it explicitly here. New option

[PATCH 1/2] compat ABI: use non-compat openat and open_by_handle_at variants

2015-12-26 Thread Yury Norov
The only difference is that non-compat version forces O_LARGEFILE, and it should be the default behaviour for all architectures, as we don't support 32-bit off_t. The only exception is tile32, that continues with compat version of syscalls. Signed-off-by: Yury Norov

Re: [PATCH 6/7] drivers: net: cpsw: fix error return code

2015-12-26 Thread Sergei Shtylyov
Hello. On 12/26/2015 6:28 PM, Julia Lawall wrote: Return a negative error code on failure. A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // @@ identifier ret; expression e1,e2; @@ ( if (\(ret < 0\|ret != 0\)) { ... return

Re: [PATCH 6/7] drivers: net: cpsw: fix error return code

2015-12-26 Thread Sergei Shtylyov
On 12/26/2015 8:40 PM, Julia Lawall wrote: diff --git a/drivers/net/ethernet/ti/cpsw.c b/drivers/net/ethernet/ti/cpsw.c index 3409e80..6a76992 100644 --- a/drivers/net/ethernet/ti/cpsw.c +++ b/drivers/net/ethernet/ti/cpsw.c @@ -2448,8 +2448,10 @@ static int cpsw_probe(struct platform_device

Re: [PATCH] ARM: dts: n900: Include adp1653 device

2015-12-26 Thread Pavel Machek
On Sat 2015-12-26 00:40:12, Pali Rohár wrote: > This patch adds adp1653 device into n900 DT structure. DT support in > adp1653 driver is there since v4.2-rc1 version. > > Signed-off-by: Pali Rohár Acked-by: Pavel Machek -- (english)

Re: i2c-core: One function call less in acpi_i2c_space_handler() after error detection

2015-12-26 Thread Wolfram Sang
On Sat, Dec 26, 2015 at 09:52:11AM +0100, SF Markus Elfring wrote: > >> The kfree() function was called in one case by the > >> acpi_i2c_space_handler() function during error handling > >> even if the passed variable "client" contained a null pointer. > > > > This is OK. kfree() is known to be

[PATCH 2/6] InfiniBand-ocrdma: Delete unnecessary variable initialisations in 11 functions

2015-12-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Dec 2015 18:18:18 +0100 The variable "status" will be set to an appropriate value a bit later. Thus let us omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring ---

[PATCH 1/6] InfiniBand-ocrdma: One variable and jump label less in ocrdma_alloc_ucontext_pd()

2015-12-26 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 26 Dec 2015 17:16:00 +0100 This issue was detected by using the Coccinelle software. * Let us return directly if a call of the _ocrdma_alloc_pd() function failed. * Delete the jump label "err" and the local variable "status"

Re: [PATCH 1/6] InfiniBand-ocrdma: One variable and jump label less in ocrdma_alloc_ucontext_pd()

2015-12-26 Thread kbuild test robot
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system] Hi Markus, [auto build test WARNING on v4.4-rc6] [also build test WARNING on next-20151223] url:

Re: [PATCH] ptrace: being capable wrt a process requires mapped uids/gids

2015-12-26 Thread Serge E. Hallyn
On Sat, Dec 26, 2015 at 02:10:38AM +0100, Jann Horn wrote: > On Sat, Dec 12, 2015 at 09:12:41PM +0100, Jann Horn wrote: > > With this change, the entering process can first enter the > > namespace and then safely inspect the namespace's > > properties, e.g. through /proc/self/{uid_map,gid_map}, >

Re: [PATCH] coccinelle: api: check for propagation of error from platform_get_irq

2015-12-26 Thread Sergei Shtylyov
On 12/26/2015 11:24 PM, Julia Lawall wrote: The conclusion seems to be that it is useful to override the value, so we can just drop this semantic patch. No! As I said, unconditionally overriding an error value breaks the deferred probing. It's actually a bug to override it, so the patch

Re: [PATCH 4/6] bpf: hash: convert per-hashtable lock into per-bucket bit spinlock

2015-12-26 Thread Ming Lei
On Fri, Dec 18, 2015 at 2:20 PM, Alexei Starovoitov wrote: > On Wed, Dec 16, 2015 at 02:58:08PM +0800, Ming Lei wrote: >> On Wed, Dec 16, 2015 at 1:01 PM, Yang Shi wrote: >> >> > >> > I recalled Steven confirmed raw_spin_lock has the lockdep

Re: [f2fs-dev] [PATCH 4/5] f2fs: support data flush in ioctl

2015-12-26 Thread Chao Yu
Hi Jaegeuk, On 12/25/15 5:06 AM, Jaegeuk Kim wrote: > Hi Chao, > > On Thu, Dec 24, 2015 at 06:10:25PM +0800, Chao Yu wrote: >> Sometimes user want to sync all data belong to superblock into storage >> for persistence, 'syncfs' syscall is one option, still f2fs supports >> similar one through

[PATCH v3] Staging: olpc_dcon: Remove obsolete driver

2015-12-26 Thread shraddha.6596
From: Shraddha Barke Remove support for One Laptop Per Child organization since it is dead. http://www.olpcnews.com/about_olpc_news/goodbye_one_laptop_per_child.html Signed-off-by: Shraddha Barke --- Changes in v3 - Nothing. Patch based on

[PATCH v2 1/1] fix a dead loop when in heavy low memory

2015-12-26 Thread Figo
Android System UI hang when run heavy monkey stress test. Run this monkey stress test script with more than 100 apps/games installed: adb shell "monkey --ignore-crashes --ignore-timeouts --kill-process-after-error --ignore-security-exceptions --throttle 200 -v 2000" kernel log: [

[PATCH v2] wl1251: add sysfs interface for bluetooth coexistence mode configuration

2015-12-26 Thread Pali Rohár
Port the bt_coex_mode sysfs interface from wl1251 driver version included in the Maemo Fremantle kernel to allow bt-coexistence mode configuration. This enables userspace applications to set one of the modes WL1251_BT_COEX_OFF, WL1251_BT_COEX_ENABLE and WL1251_BT_COEX_MONOAUDIO. The default mode

[PATCH] include/linux/amd-iommu.h: Move to arch/x86/include/asm

2015-12-26 Thread chengang
From: Chen Gang It is architecture specific mechanism header, not generic header, so move it to arch/x86/include/asm. ALso change all related contents for it. Signed-off-by: Chen Gang --- MAINTAINERS

<    1   2   3   4   >