[RESEND PATCH] NFC: added the sysfs entry for nfcsim workqueue delay

2015-12-13 Thread Saurabh Sengar
added the sysfs entry for nfcsim workqueue delay, as tx_delay Signed-off-by: Saurabh Sengar --- In case this TODO is not expected to be done, please let me know. I wonder after my repeated attempts since last 50 days, I am not able to get a single response. Resending this patch in hope to get so

Re: [RFC PATCH 1/2] thread_local_abi system call: caching current CPU number (x86)

2015-12-13 Thread Michael Kerrisk (man-pages)
Hello Mathieu On 12 December 2015 at 13:40, Mathieu Desnoyers wrote: > - On Dec 11, 2015, at 1:56 PM, Michael Kerrisk mtk.manpa...@gmail.com > wrote: > >> Hi Mathieu, >> >> On 12/10/2015 04:39 PM, Mathieu Desnoyers wrote: >>> Expose a new system call allowing threads to register a userspace

Re: [PATCH] kbuild: support make dir/file.i for *.S

2015-12-13 Thread Masahiro Yamada
2015-12-13 4:13 GMT+09:00 Brian Gerst : > On Thu, Dec 10, 2015 at 11:33 AM, Wang YanQing wrote: >> This feature could reduce a little time to expand all >> the macros in *.S for reading. >> >> Signed-off-by: Wang YanQing >> --- >> Makefile | 2 ++ >> scripts/Makefile.build | 6

x86: a question about protection_map

2015-12-13 Thread Xishi Qiu
When we use mprotect to change the page prot, I find "__P001" and "__P011" are the same. So how we detect the write/read? pgprot_t protection_map[16] = { __P000, __P001, __P010, __P011, __P100, __P101, __P110, __P111, __S000, __S001, __S010, __S011, __S100, __S101, __S110, __S111 }

[PATCH trivial] include/asm-generic/page.h: Notice about 80 columns

2015-12-13 Thread Chen Gang
It is a trivial patch. Signed-off-by: Chen Gang --- include/asm-generic/page.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/asm-generic/page.h b/include/asm-generic/page.h index 67cfb7d..e04cef4 100644 --- a/include/asm-generic/page.h +++ b/include/asm-generic/p

[PATCH trivial] include/asm-generic/pgtable.h: Notice about coding styles

2015-12-13 Thread Chen Gang
Notice about 80 columns, and function parameters alignment. Export zero_pfn only once. Remove pte variable in ptep_get_and_clear_full(). Signed-off-by: Chen Gang --- include/asm-generic/pgtable.h | 16 +++- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/include/asm-

Re: [PATCH 00/25] serial: sh-sci: Add external clock and BRG Support

2015-12-13 Thread Geert Uytterhoeven
Hi Greg, On Sun, Dec 13, 2015 at 7:43 AM, Greg Kroah-Hartman wrote: > On Fri, Nov 20, 2015 at 10:09:24AM +0100, Geert Uytterhoeven wrote: >> On Thu, Nov 19, 2015 at 7:38 PM, Geert Uytterhoeven >> wrote: >> > This patch series adds support to the Renesas SCI serial driver for >> > - the optiona

[PATCH trivial] include/asm-generic/tlb.h: Notice about the coding style

2015-12-13 Thread Chen Gang
Notice about 80 columns. Notice about function parameter alignment. Append 'UL' to hard code numbers which are related with the unsigned long variables. Signed-off-by: Chen Gang --- include/asm-generic/tlb.h | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/

[PATCH] include/asm-generic/pgtable.h: Check once and return for pgprot_modify

2015-12-13 Thread Chen Gang
pgprot_val() likes an empty operation, and all three checking statements are related with oldprot, so only check once is enough, the reason is: - if both "oldprot == pgprot_noncached(oldprot)" and "oldprot == pgprot_writecombine(oldprot)" are satisfied. - So "pgprot_noncached(oldprot) == pg

Re: [PATCH] i2c: allow building emev2 without slave mode again

2015-12-13 Thread Wolfram Sang
> > > The slave_cb callback function is supposed to set the 'value' > > > here, > > > > Only if a master wants to READ from us. > > Right, and can this never fail? Exactly. The slave can stretch the clock if the value to be sent to the master needs some processing first, but it must deliver som

Re: [PATCH trivial] include/asm-generic/pgtable.h: Notice about coding styles

2015-12-13 Thread Chen Gang
Hello all: After communicated with my company, I am permitted to use my company email to send patches to open source community. My company supports what I have done for open source community, but at present, I still use my personal mail id as Signed-of-by (make and send patches mainly during my f

[PATCH] include/asm-generic/pgtable.h: Remove redundant variable r

2015-12-13 Thread Chen Gang
Return the immediate number directly. Signed-off-by: Chen Gang --- include/asm-generic/pgtable.h | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/include/asm-generic/pgtable.h b/include/asm-generic/pgtable.h index aecf0141..069536a 100644 --- a/include/asm

[GIT pull] timer fixes for 4.4

2015-12-13 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 to unbreak a clocksource driver which has more than 32bit counter width. Thanks, tglx --> Linus Wall

[GIT pull] irq fixes for 4.4

2015-12-13 Thread Thomas Gleixner
Linus, please pull the latest irq-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git irq-urgent-for-linus Two trivial fixes which add missing header fileas and forward declarations so the code will compile even when the magic include chains are differen

[GIT pull] x86 fixes for 4.4

2015-12-13 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 A series of small fixes to plug a race condition in the x86 vector management code related to irq affinity settings. Thanks, tglx --

URGENT MAIL FOR YOU...

2015-12-13 Thread linux-kernel-owner
Dear , My name is Mrs. Bella Holbrook and I work with the International Monetary Fund (IMF), I am writing you to let you know that finally your ATM Card worth $650,000.00 USD has been delivered through UPS to Mr. Hart Leroy, who works with the IMF where it is going to be activated before fina

[PATCH] fs:affs:Replace time_t with time64_t

2015-12-13 Thread DengChao
The affs code uses "time_t" and "get_seconds()". This will cause problems on 32-bit architectures in 2038 when time_t overflows. This patch replaces them with "time64_t" and "ktime_get_real_seconds()". Reviewed-by: Arnd Bergmann Signed-off-by: DengChao --- fs/affs/affs.h | 2 +- fs/affs/ami

Re: [PATCH] lock_page() doesn't lock if __wait_on_bit_lock returns -EINTR

2015-12-13 Thread Peter Zijlstra
On Sat, Dec 12, 2015 at 11:41:26AM -0800, Linus Torvalds wrote: > It looks like PeterZ's pending patch should fix this, by passing in > the proper TASK_UNINTERRUPTIBLE to the bit_wait_io function, and going > back to signal_pending_state(). PeterZ, did I follow the history of > this correctly? Yes

[PATCH] Staging: iio: accel: Fixed NULL comparison style

2015-12-13 Thread Bhaktipriya Shridhar
This patch fixes checkpatch.pl check: CHECK: Comparison to NULL could be written "!rx_p" + if (*rx_p == NULL) { Signed-off-by: Bhaktipriya Shridhar --- drivers/staging/iio/accel/sca3000_ring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/iio/accel/sca

Re: [GIT pull] x86 fixes for 4.4

2015-12-13 Thread Thomas Gleixner
Linus On Sun, 13 Dec 2015, Thomas Gleixner wrote: > 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 > > A series of small fixes to plug a race condition in the x86 vector > management

[PATCH] serial:bfin-uart:Remove 'struct timeval'

2015-12-13 Thread DengChao
The bfin-uart code uses real time with struct timeval. This will cause problems on 32-bit architectures in 2038 when time_t overflows. Since the code just needs delta value of time, it is not necessary to record them in real time. This patch changes the code to use the monotonic time instead, repla

Re: completion queue abstraction V2

2015-12-13 Thread Sagi Grimberg
Needless to say, on the entire series you can add my: Reviewed-by: Sagi Grimberg -- 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 http://vger.kernel.org/majordomo-info.html Please read the FAQ

Re: [PATCH 10/13] IB/srp: use the new CQ API

2015-12-13 Thread Sagi Grimberg
Allright. How do you want to proceed? The current rdma-cq branch has all kinds of dependencies, but I've also prepared a new rdma-cq.2 branch that could go straight on top of your current queue: http://git.infradead.org/users/hch/rdma.git/shortlog/refs/heads/rdma-cq.2 If you're ready to star

Re: [PATCH 03/10] drivers/pci: make host/pci-mvebu.c explicitly non-modular

2015-12-13 Thread Thomas Petazzoni
Paul, On Sat, 12 Dec 2015 20:41:50 -0500, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/pci/host/Kconfig:config PCI_MVEBU > drivers/pci/host/Kconfig: bool "Marvell EBU PCIe controller" > > ...meaning that it currently is not being built

Re: [PATCH 07/10] drivers/pci: make host/pcie-rcar.c explicitly non-modular

2015-12-13 Thread Geert Uytterhoeven
CC MODULE_AUTHOR On Sun, Dec 13, 2015 at 2:41 AM, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/pci/host/Kconfig:config PCI_RCAR_GEN2_PCIE > drivers/pci/host/Kconfig: bool "Renesas R-Car PCIe controller" > > ...meaning that it currently i

Re: [PATCH 05/10] drivers/pci: make host/pci-rcar-gen2.c explicitly non-modular

2015-12-13 Thread Geert Uytterhoeven
CC MODULE_AUTHOR On Sun, Dec 13, 2015 at 2:41 AM, Paul Gortmaker wrote: > The Kconfig currently controlling compilation of this code is: > > drivers/pci/host/Kconfig:config PCI_RCAR_GEN2 > drivers/pci/host/Kconfig: bool "Renesas R-Car Gen2 Internal PCI > controller" > > ...meaning that it

Re: [PATCH] Staging: iio: accel: Fixed NULL comparison style

2015-12-13 Thread Dan Carpenter
On Sun, Dec 13, 2015 at 12:54:27PM +0300, Bhaktipriya Shridhar wrote: > This patch fixes checkpatch.pl check: > CHECK: Comparison to NULL could be written "!rx_p" > + if (*rx_p == NULL) { > Actually it should be "if (!*rx_p)". checkpatch.pl appears to have a bug here. regards, dan carpent

[PATCH] crypto/nx842: Mask XERS0 bit in return value

2015-12-13 Thread Haren Myneni
NX842 coprocessor sets 3rd bit in CR register with XER[S0] which is nothing to do with NX request. Since this bit can be set with other valuable return status, mast this bit. One of other bits (INITIATED, BUSY or REJECTED) will be returned for any given NX request. Signed-off-by: Haren Myneni -

Re: [PATCH 1/3 v19] sys_membarrier(): system-wide memory barrier (generic, x86)

2015-12-13 Thread Mathieu Desnoyers
- On Dec 11, 2015, at 1:05 PM, Michael Kerrisk mtk.manpa...@gmail.com wrote: > Hi Matthew, > > On 12/05/2015 09:48 AM, Mathieu Desnoyers wrote: >> Hi Michael, >> >> Please find the membarrier man groff file attached. I re-integrated >> some changes that went in initially only in the changelo

RE: [PATCH v2] I2C: designware: fix IO timeout issue for AMD controller

2015-12-13 Thread Yu, Xiangliang
> -Original Message- > From: Wolfram Sang [mailto:w...@the-dreams.de] > Sent: Sunday, December 13, 2015 1:03 AM > To: Yu, Xiangliang > Cc: andriy.shevche...@linux.intel.com; jarkko.nik...@linux.intel.com; > mika.westerb...@linux.intel.com; linux-...@vger.kernel.org; linux- > ker...@vger.ker

Re: [Patch-V2 1/6] INPUT: xpad: Add minimal support for Logitech G920 Wheel

2015-12-13 Thread Elias Vanderstuyft
On Thu, Dec 10, 2015 at 6:08 PM, Benjamin Tissoires wrote: > On Dec 09 2015 or thereabouts, Dmitry Torokhov wrote: >> On Wed, Dec 9, 2015 at 5:23 PM, Dmitry Torokhov >> wrote: >> > On Thu, Nov 19, 2015 at 10:31 AM, Dmitry Torokhov >> > wrote: >> >> On Thu, Nov 19, 2015 at 02:50:51PM +0100, Jiri

[PATCH 0/2] tools/power turbostat: Fix TDP MSR bits and invalid parameters

2015-12-13 Thread Chen Yu
[PATCH 1/2] is to fix the TDP MSRs bits calculation, which might bring incorrect information to user. [PATCH 2/2] is to fix invalid parameters passing to dump_cstate_pstate_config_info and also fix some compiling problems. Chen Yu (2): tools/power turbostat: bugfix: TDP MSRs print bits fixing

[PATCH 2/2] tools/power turbostat: bugfix: fix several invalid parameters

2015-12-13 Thread Chen Yu
dump_cstate_pstate_config_info is invoked with no parameters, which might cause this function to misjudge the processor family and model. Fix this by passing family and model to it. Besides, fix the compiling warning caused by missing type declaration in dump_cstate_pstate_config_info, get_tdp and

[PATCH 1/2] tools/power turbostat: bugfix: TDP MSRs print bits fixing

2015-12-13 Thread Chen Yu
MSR_CONFIG_TDP_NOMINAL: should print all 8 bits of base_ratio (bit 0:7) 0xFF MSR_CONFIG_TDP_LEVEL_1: should print all 15 bits of PKG_MIN_PWR_LVL1 (bit 48:62) 0x7FFF should print all 15 bits of PKG_MAX_PWR_LVL1 (bit 32:46) 0x7FFF should print all 8 bits of LVL1_RATIO (bit 16:23) 0xFF should print a

[RFC PATCH man-pages] Add membarrier system call man page

2015-12-13 Thread Mathieu Desnoyers
[ Updated following feedback from Michael Kerrisk. Not sure what to put in SEE ALSO section ? Also, the example uses the syscall() macro. Should we target this, or some API eventually exposed by glibc ? ] Signed-off-by: Mathieu Desnoyers Cc: Michael Kerrisk Cc: Paul E. McKenney Cc: Josh Tri

use-after-free in pptp_connect

2015-12-13 Thread Dmitry Vyukov
Hello, The following program causes use-after-free in pptp_connect and a leak of pptp call id: // autogenerated by syzkaller (http://github.com/google/syzkaller) #include #include #include #include #include #include #include #include #include #include int main() { int fd = sock

[PATCH v2] Staging: iio: accel: Fixed NULL comparison style

2015-12-13 Thread Bhaktipriya Shridhar
The variable u8 **rx_p, is a pointer-to-pointer and hence the check should be "if (!*rx_p)" and not "if (!rx_p)". In the earlier version, checkpatch.pl gave the following check, which was buggy: CHECK: Comparison to NULL could be written "!rx_p" + if (*rx_p == NULL) { Signed-off-by: Bhaktipr

[PATCH 0/7] staging-Lustre: Fine-tuning for some function implementations

2015-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 13 Dec 2015 14:40:14 +0100 Several update suggestions were taken into account from static source code analysis. Markus Elfring (7): Delete unnecessary goto statements in six functions Rename a jump label for ptlrpc_req_finished() calls Rename a jump label fo

Re: [PATCH v2] rtc: fix overflow and incorrect calculation in rtc_time64_to_tm

2015-12-13 Thread Alexandre Belloni
On 03/12/2015 at 23:01:14 -0500, Sasha Levin wrote : > At some point after humans go extinct and robots cotrol the world, dividing > he time64_t by 86400 to extract the days will overflow a 32bit integer, > leading to incorrect conversion into rtc_time in rtc_time64_to_tm(). > > Signed-off-by: Sas

[PATCH 1/7] staging: lustre: Delete unnecessary goto statements in six functions

2015-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 13 Dec 2015 09:30:47 +0100 Six goto statements referred to a source code position directly behind them. Thus omit such unnecessary jumps. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/staging/lustre/lustre/l

Re: [PATCH] rtc: Replace simple_strtoul by kstrtoul

2015-12-13 Thread Alexandre Belloni
Hi, On 04/12/2015 at 15:19:39 +0100, LABBE Corentin wrote : > The simple_strtoul function is obsolete. > This patch replace it by kstrtoul. > > Signed-off-by: LABBE Corentin > --- > drivers/rtc/rtc-sysfs.c | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/drivers/r

[PATCH 2/7] staging: lustre: Rename a jump label for ptlrpc_req_finished() calls

2015-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 13 Dec 2015 10:33:38 +0100 This issue was detected by using the Coccinelle software. Choose a jump label according to the current Linux coding style convention. I suggest to improve this implementation detail by the reuse of a script like the following for the sem

[PATCH 3/7] staging: lustre: Rename a jump label for a kfree(key) call

2015-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 13 Dec 2015 10:56:35 +0100 This issue was detected by using the Coccinelle software. Choose a jump label according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/staging/lustre/lustre/mdc/mdc_request.c | 11 +--

[PATCH 4/7] staging: lustre: Delete an unnecessary variable initialisation in mgc_process_recover_log()

2015-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 13 Dec 2015 12:00:32 +0100 The variable "mne_swab" will eventually be set to an appropriate value from a call of the ptlrpc_rep_need_swab() function. Thus let us omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/staging

Re: [PATCH v2] Staging: iio: accel: Fixed NULL comparison style

2015-12-13 Thread Dan Carpenter
You have to resend it to apply on the original code, we are not going to apply the first version of this patch. In other words it is: - if (*rx_p == NULL) { + if (!*rxp) { regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body o

[PATCH 5/7] staging: lustre: Less checks in mgc_process_recover_log() after error detection

2015-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 13 Dec 2015 12:21:17 +0100 A few checks would be performed by the mgc_process_recover_log() function even if it is known already that the passed variable "pages" contained a null pointer. * Let us return directly if a call of the kcalloc() function failed. * Move

[PATCH 6/7] staging: lustre: A few checks less in mgc_process_recover_log() after error detection

2015-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 13 Dec 2015 13:03:58 +0100 A few checks would be performed by the mgc_process_recover_log() function even if it was determined that a call of the alloc_page() function failed. * This implementation detail could be improved by adjustments for jump targets accordi

[PATCH 7/7] staging: lustre: Rename a jump label for module_put() calls

2015-12-13 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 13 Dec 2015 14:05:57 +0100 This issue was detected by using the Coccinelle software. Choose a jump label according to the current Linux coding style convention. I suggest to improve this implementation detail by the reuse of a script like the following for the sem

Re: [PATCH v4] mm,oom: Add memory allocation watchdog kernel thread.

2015-12-13 Thread Tetsuo Handa
Johannes Weiner wrote: > On Sun, Dec 13, 2015 at 12:33:04AM +0900, Tetsuo Handa wrote: > > +Currently, when something went wrong inside memory allocation request, > > +the system will stall with either 100% CPU usage (if memory allocating > > +tasks are doing busy loop) or 0% CPU usage (if memory a

Re: [PATCH 1/6] n_tty: Always wake up read()/poll() if new input

2015-12-13 Thread Johannes Stezenbach
Hi Peter, On Sat, Dec 12, 2015 at 02:16:34PM -0800, Peter Hurley wrote: > A read() in non-canonical mode when VMIN > 0 and VTIME == 0 does not > complete until at least VMIN chars have been read (or the user buffer is > full). In this infrequent read mode, n_tty_read() attempts to reduce > wakeups

[PATCH v3] Staging: iio: accel: Fixed NULL comparison style

2015-12-13 Thread Bhaktipriya Shridhar
The variable u8 **rx_p, is a pointer-to-pointer and hence the check should be "if (!*rx_p)" and not "if (!rx_p)". In the earlier version, checkpatch.pl gave the following check, which was incorrect: CHECK: Comparison to NULL could be written "!rx_p" + if (*rx_p == NULL) { Signed-off-by: Bhak

Re: [PATCH 5/6] n_tty: Fix stuck write wakeup

2015-12-13 Thread Johannes Stezenbach
Hi Peter, On Sat, Dec 12, 2015 at 02:16:38PM -0800, Peter Hurley wrote: > If signal-driven i/o is disabled while write wakeup is pending (ie., > n_tty_write() has set TTY_DO_WRITE_WAKEUP but then signal-driven i/o > is disabled), the TTY_DO_WRITE_WAKEUP bit will never be cleared and > will cause t

Re: [PATCH v2 01/10] usb: host: ehci-sched: refactor scan_isoc function

2015-12-13 Thread Alan Stern
On Sun, 13 Dec 2015, Geyslan G. Bem wrote: > This patch removes an infinite 'for' loop and makes use of the already > existing 'restart' tag instead, reducing one leading tab. > > It also puts the easier evaluation (live variable) to be the first in > two conditionals. > > if (live && frame ==

[PATCH] mm: mempool: Factor out mempool_refill()

2015-12-13 Thread Wang, Zhi A
This patch factors out mempool_refill() from mempool_resize(). It's reasonable that the mempool user wants to refill the pool immdiately when it has chance e.g. inside a sleepible context, so that next time in the IRQ context the pool would have much more available elements to allocate. After the

[PATCH v2 3/3] keys, trusted: seal with a TPM2 authorization policy

2015-12-13 Thread Jarkko Sakkinen
TPM2 supports authorization policies, which are essentially combinational logic statements repsenting the conditions where the data can be unsealed based on the TPM state. This patch enables to use authorization policies to seal trusted keys. Two following new options have been added for trusted k

[PATCH v2 0/3] TPM 2.0 trusted key features for v4.5

2015-12-13 Thread Jarkko Sakkinen
These are the remaining features to enable trusted keys for TPM 2.0 that were not finished by the v4.4 merge window. These patches enable authorization policy based sealing (like using PCRs together with a password for example or something more complicated) with a user selected hash algorithm. Jar

[PATCH v2 1/3] keys, trusted: fix: *do not* allow duplicate key options

2015-12-13 Thread Jarkko Sakkinen
The trusted keys option parsing allows specifying the same option multiple times. The last option value specified is used. This can be seen as a regression because: * No gain. * Could be problematic if there is be options dependent on other options. Reported-by: James Morris James Morris Sign

Re: [PATCH] include/asm-generic/pgtable.h: Check once and return for pgprot_modify

2015-12-13 Thread Chen Gang
Oh, after check again, it looks my original comments are not precise: they check oldprot, but set newprot. After check pgprot_noncached, pgprot_writecombine, and pgprot_device again, for me, if still in order: 1st noncached, 2nd writecombine, 3rd device, we can still treate them exclusive with ea

[PATCH v2 2/3] keys, trusted: select hash algorithm for TPM2 chips

2015-12-13 Thread Jarkko Sakkinen
Added 'hash=' option for selecting the hash algorithm for add_key() syscall and documentation for it. Added entry for sm3-256 to the following tables in order to support TPM_ALG_SM3_256: * hash_algo_name * hash_digest_size Includes support for the following hash algorithms: * sha1 * sha256 * sh

Re: [PATCH] lock_page() doesn't lock if __wait_on_bit_lock returns -EINTR

2015-12-13 Thread Chris Mason
On Sun, Dec 13, 2015 at 10:50:01AM +0100, Peter Zijlstra wrote: > On Sat, Dec 12, 2015 at 11:41:26AM -0800, Linus Torvalds wrote: > > It looks like PeterZ's pending patch should fix this, by passing in > > the proper TASK_UNINTERRUPTIBLE to the bit_wait_io function, and going > > back to signal_pen

Re: [PATCH 4.1 00/45] 4.1.15-stable review

2015-12-13 Thread Guenter Roeck
On 12/12/2015 11:32 AM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.1.15 release. There are 45 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be ma

Re: [PATCH 4.2 00/61] 4.2.8-stable review

2015-12-13 Thread Guenter Roeck
On 12/12/2015 12:05 PM, Greg Kroah-Hartman wrote: === NOTE: This is the last 4.2.y kernel to be released, unless something major comes up, it is end-of-life after this release. Everyone should have moved to 4.3.y by now, you have been warned. =

Re: [PATCH 4.3 00/71] 4.3.3-stable review

2015-12-13 Thread Guenter Roeck
On 12/12/2015 12:05 PM, Greg Kroah-Hartman wrote: This is the start of the stable review cycle for the 4.3.3 release. There are 71 patches in this series, all will be posted as a response to this one. If anyone has any issues with these being applied, please let me know. Responses should be mad

Re: [PATCH v2 01/10] usb: host: ehci-sched: refactor scan_isoc function

2015-12-13 Thread Geyslan G. Bem
2015-12-13 12:29 GMT-03:00 Alan Stern : > On Sun, 13 Dec 2015, Geyslan G. Bem wrote: > >> This patch removes an infinite 'for' loop and makes use of the already >> existing 'restart' tag instead, reducing one leading tab. >> >> It also puts the easier evaluation (live variable) to be the first in >

Re: [PATCH v2] gpiolib: tighten up ACPI legacy gpio lookups

2015-12-13 Thread Linus Walleij
On Wed, Dec 9, 2015 at 6:21 PM, Dmitry Torokhov wrote: >> > Hmm, I'd like to get this patch into my tree as well to apply Irina's >> > goodix pieces on top to make sure they do not break. Would it be OK for >> > me to just apply the patch and hope git will sort it out when we merge >> > into next

Re: [PATCH v2] gpiolib: tighten up ACPI legacy gpio lookups

2015-12-13 Thread Dmitry Torokhov
On Sun, Dec 13, 2015 at 8:37 AM, Linus Walleij wrote: > On Wed, Dec 9, 2015 at 6:21 PM, Dmitry Torokhov > wrote: > >>> > Hmm, I'd like to get this patch into my tree as well to apply Irina's >>> > goodix pieces on top to make sure they do not break. Would it be OK for >>> > me to just apply the p

[PATCH v3 01/10] usb: host: ehci-sched: refactor scan_isoc function

2015-12-13 Thread Geyslan G. Bem
This patch removes an infinite 'for' loop and makes use of the already existing 'restart' tag instead, reducing one leading tab. The comments and code were corrected conforming file coding style. Tested by compilation only. Caught by checkpatch: WARNING: Too many leading tabs - consider code ref

[PATCH v3 00/10] usb: host: ehci-sched: cleanup

2015-12-13 Thread Geyslan G. Bem
Cleanup done with the help of coccinelle, checkpatch and cppcheck tools. Geyslan G. Bem (10): usb: host: ehci-sched: refactor scan_isoc function usb: host: ehci-sched: move constants to right usb: host: ehci-sched: remove useless initializations usb: host: ehci-sched: add spaces around ope

[PATCH v3 10/10] usb: host: ehci-sched: remove unnecessary braces

2015-12-13 Thread Geyslan G. Bem
This patch removes unnecessary braces in single statement blocks at the same time as replaces the if statement with a ternary conditional. Tested by compilation only. Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- v2: removes unnecessary parens in ternary conditional. --- drivers/usb

[PATCH v3 07/10] usb: host: ehci-sched: use C89-style comments

2015-12-13 Thread Geyslan G. Bem
This patch changes comments conforming coding style. Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-sched.c | 26 ++ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched

[PATCH v3 08/10] usb: host: ehci-sched: add line after declarations

2015-12-13 Thread Geyslan G. Bem
This patch adds a blank line after declarations. Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-sched.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index 2705c0b..d62d2fe 100644 --- a/drivers/

[PATCH v3 09/10] usb: host: ehci-sched: use sizeof operator with parens

2015-12-13 Thread Geyslan G. Bem
This patch adds parens to sizeof operator uses. Tested by compilation only. Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-sched.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sch

[PATCH v3 04/10] usb: host: ehci-sched: add spaces around operators

2015-12-13 Thread Geyslan G. Bem
This patch adds spaces around operators. Tested by compilation only. Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/host/ehci-sched.c b/drivers/usb/host/ehci-sched.c index 4d4c

[PATCH v3 05/10] usb: host: ehci-sched: remove prohibited spaces

2015-12-13 Thread Geyslan G. Bem
This patch removes prohibited spaces before open parenthesis and open brackets. It also removes an assignment inside condition and unnecessary braces in single statement block. Tested by compilation only. Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-sched.c | 2

[PATCH v3 06/10] usb: host: ehci-sched: remove useless else branch

2015-12-13 Thread Geyslan G. Bem
This patch removes an useless else branch after a break, reducing one indent block. Tested by compilation only. Caught by checkpatch. Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-sched.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/ehci-sc

[PATCH v3 03/10] usb: host: ehci-sched: remove useless initializations

2015-12-13 Thread Geyslan G. Bem
This patch removes useless initializations. Tested by compilation only. Caught by cppcheck. Signed-off-by: Geyslan G. Bem --- v2: replaces 'assignments' with 'initializations' --- drivers/usb/host/ehci-sched.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/usb

[PATCH v3 02/10] usb: host: ehci-sched: move constants to right

2015-12-13 Thread Geyslan G. Bem
This patch moves the constants to right. Tested by compilation only. Caught by coccinelle: scripts/coccinelle/misc/compare_const_fl.cocci Signed-off-by: Geyslan G. Bem --- drivers/usb/host/ehci-sched.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/host/eh

[GIT PULL] Please pull one bugfix for 4.4

2015-12-13 Thread Trond Myklebust
Hi Linus, The following changes since commit 527e9316f8ec44bd53d90fb9f611fa752bb9:   Linux 4.4-rc4 (2015-12-06 15:43:12 -0800) are available in the git repository at:   git://git.linux-nfs.org/projects/trondmy/linux-nfs.git tags/nfs-for-4.4-3 for you to fetch changes up to 756b9b37cfb2e3dc

Re: [PATCH 0/9] Fix checkpatch errors

2015-12-13 Thread Frederik
On Sat, 12. Dec 23:06, Greg KH wrote: > On Fri, Dec 11, 2015 at 11:36:00AM +0100, Frederik Völkel wrote: > > This patch series fixes all checkpatch error in 68328serial.c except > > 5 trailing whitespace errors we are unsure how to fix. > > What are the errors you are not sure how to fix? > > tha

[PATCH] Staging: comedi: pcmcia: fixed a line with over 80 chars

2015-12-13 Thread Philippe Loctaux
This patch fixes the checkpatch.pl warning: WARNING: line over 80 characters Signed-off-by: Philippe Loctaux --- drivers/staging/comedi/comedi_pcmcia.h | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/staging/comedi/comedi_pcmcia.h b/drivers/staging/comedi/come

[PATCH] checkpatch: detect leading * in NULL comparison check

2015-12-13 Thread S. Gilles
Prevent checkpatch.pl from emitting messages like CHECK: Comparison to NULL could be written "!rx_p" #51: FILE: drivers/staging/iio/accel/sca3000_ring.c:51: + if (*rx_p == NULL) { by checking for leading * characters in the comparison value. Signed-off-by: S. Gilles --- I've run th

Re: [PATCH 0/9] Fix checkpatch errors

2015-12-13 Thread Nicolai Stange
Frederik writes: > On Sat, 12. Dec 23:06, Greg KH wrote: >> On Fri, Dec 11, 2015 at 11:36:00AM +0100, Frederik Völkel wrote: >> > This patch series fixes all checkpatch error in 68328serial.c except >> > 5 trailing whitespace errors we are unsure how to fix. >> >> What are the errors you are not

Re: [RFC PATCH 1/2] thread_local_abi system call: caching current CPU number (x86)

2015-12-13 Thread Andi Kleen
> This getcpu cache is an alternative to the sched_getcpu() vdso which has > a few benefits: Note the first version of getcpu() I proposed had a cache. But it was rejected. > - It is faster to do a memory read that to call a vDSO, > - This cached value can be read from within an inline assembly,

Re: [PATCH 05/10] drivers/pci: make host/pci-rcar-gen2.c explicitly non-modular

2015-12-13 Thread Paul Gortmaker
[Re: [PATCH 05/10] drivers/pci: make host/pci-rcar-gen2.c explicitly non-modular] On 13/12/2015 (Sun 11:59) Geert Uytterhoeven wrote: > CC MODULE_AUTHOR Thanks, I just assumed get-maintainer.pl would have automatically collected that up with the other names it emits. Apparently not. Joe: is th

[PATCH] cpufreq: powernv: Redesign the presentation of throttle notification

2015-12-13 Thread Shilpasri G Bhat
Replace the throttling event console messages to perf trace event "power:powernv_throttle" and throttle counter stats which are exported in sysfs. The newly added sysfs files are as follows: 1)/sys/devices/system/node/node0/throttle_frequencies This gives the throttle stats for each of the avail

Re: [PATCH 07/10] drivers/pci: make host/pcie-rcar.c explicitly non-modular

2015-12-13 Thread Paul Gortmaker
[Re: [PATCH 07/10] drivers/pci: make host/pcie-rcar.c explicitly non-modular] On 13/12/2015 (Sun 11:58) Geert Uytterhoeven wrote: > CC MODULE_AUTHOR Yep, thanks -- I'll check for future sends to ensure get_maintainer.pl hasn't omitted the module author. Looks like it may emit the module author

Re: [PATCH 0/9] Fix checkpatch errors

2015-12-13 Thread Frederik
On Sun, 13. Dec 19:15, Nicolai Stange wrote: > Frederik writes: > > > On Sat, 12. Dec 23:06, Greg KH wrote: > >> On Fri, Dec 11, 2015 at 11:36:00AM +0100, Frederik Völkel wrote: > >> > This patch series fixes all checkpatch error in 68328serial.c except > >> > 5 trailing whitespace errors we are

Re: [PATCH 5/6] n_tty: Fix stuck write wakeup

2015-12-13 Thread Peter Hurley
On 12/13/2015 07:18 AM, Johannes Stezenbach wrote: > Hi Peter, > > On Sat, Dec 12, 2015 at 02:16:38PM -0800, Peter Hurley wrote: >> If signal-driven i/o is disabled while write wakeup is pending (ie., >> n_tty_write() has set TTY_DO_WRITE_WAKEUP but then signal-driven i/o >> is disabled), the TTY_

Re: [PATCH 1/2] video:omap2:dss: fix timings for VENC to match what omapdrm expects

2015-12-13 Thread H. Nikolaus Schaller
Hi Tomi, Am 09.12.2015 um 09:18 schrieb Tomi Valkeinen : > > On 13/11/15 12:29, H. Nikolaus Schaller wrote: >> Otherwise check_timings fails and we get a "has no modes" message >> from xrandr. >> >> This fix makes the venc assume PAL and NTSC timings that match the >> timings synthetized by cop

Re: [PATCHSET v2] ->follow_link() without dropping from RCU mode

2015-12-13 Thread Rasmus Villemoes
On Sat, Dec 12 2015, Al Viro wrote: > On Fri, Dec 11, 2015 at 11:16:24PM +, Al Viro wrote: > >> #define set_delayed_type(call, f, arg) \ >> sizeof(f(arg),0), \ >> __set_delayed_type(call, __closure_##f, (void *)arg) >> >> That could be reused for timers with typechecking - we have

[PATCH] s390: char: constify hmcdrv_ftp_ops structs

2015-12-13 Thread Aya Mahfouz
Constifies hmcdrv_ftp_ops structures in s390's char driver since they are not modified after their initialization. Detected and found using Coccinelle. Suggested-by: Julia Lawall Signed-off-by: Aya Mahfouz --- drivers/s390/char/hmcdrv_ftp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deleti

Re: [PATCH 3.16.y-ckt 009/126] sit: fix sit0 percpu double allocations

2015-12-13 Thread Luis Henriques
On Sat, Dec 12, 2015 at 04:18:26AM +, Ben Hutchings wrote: > On Wed, 2015-12-09 at 09:36 +, Luis Henriques wrote: > > 3.16.7-ckt21 -stable review patch.  If anyone has any objections, > > please let me know. > > > > -- > > > > From: Eric Dumazet > > > > commit 4ece900977

[PATCH V3 0/4] scsi: storvsc: Properly support FC hosts

2015-12-13 Thread K. Y. Srinivasan
Properly support FC hosts. Additional cleanup patches are also included. V2: Comments from Dan Carpenter and from Johannes Thumshirn addressed. V3: Fixed build issues reported by kbuild test robot K. Y. Srinivasan (4): scsi: storvsc: Fix a bug in the layout o

[PATCH V3 1/4] scsi: storvsc: Fix a bug in the layout of the hv_fc_wwn_packet

2015-12-13 Thread K. Y. Srinivasan
The hv_fc_wwn_packet is exchanged over vmbus. Make the definition in Linux match the Window's definition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Johannes Thumshirn Reviewed-by: Long Li Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c |5 ++--- 1 files changed, 2 insertions(+), 3 de

[PATCH V3 2/4] scsi: storvsc: Properly support Fibre Channel devices

2015-12-13 Thread K. Y. Srinivasan
For FC devices managed by this driver, atttach the appropriate transport template. This will allow us to create the appropriate sysfs files for these devices. With this we can publish the wwn for both the port and the node. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Tested-by: Alex Ng

[PATCH V3 4/4] scsi: storvsc: Tighten up the interrupt path

2015-12-13 Thread K. Y. Srinivasan
On the interrupt path, we repeatedly establish the pointer to the storvsc_device. Fix this. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Reviewed-by: Johannes Thumshirn Tested-by: Alex Ng --- drivers/scsi/storvsc_drv.c | 23 --- 1 files changed, 8 insertions(+),

[PATCH V3 3/4] scsi: storvsc: Refactor the code in storvsc_channel_init()

2015-12-13 Thread K. Y. Srinivasan
The function storvsc_channel_init() repeatedly interacts with the host to extract various channel properties. Refactor this code to eliminate code repetition. Signed-off-by: K. Y. Srinivasan Reviewed-by: Long Li Reviewed-by: Johannes Thumshirn Tested-by: Alex Ng --- V2: Fixed error pat

Re: [PATCH 3.16.y-ckt 024/126] Revert "mm: Check if section present during memory block (un)registering"

2015-12-13 Thread Luis Henriques
On Sat, Dec 12, 2015 at 04:37:10AM +, Ben Hutchings wrote: > On Wed, 2015-12-09 at 09:36 +, Luis Henriques wrote: > > 3.16.7-ckt21 -stable review patch.  If anyone has any objections, please > > let me know. > > > > -- > > > > From: Greg Kroah-Hartman > > > > commit 834

Re: [PATCHv4 1/1] SCSI: hosts: update to use ida_simple for host_no management

2015-12-13 Thread Lee Duncan
On 12/11/2015 07:31 AM, Ewan Milne wrote: > On Thu, 2015-12-10 at 13:48 -0800, Lee Duncan wrote: >> On 11/17/2015 03:20 PM, Martin K. Petersen wrote: "Lee" == Lee Duncan writes: >>> >>> Lee> Martin: I will be glad to update the patch, creating a modprobe >>> Lee> parameter as suggested, i

Re: [PATCH 5/6] n_tty: Fix stuck write wakeup

2015-12-13 Thread Johannes Stezenbach
On Sun, Dec 13, 2015 at 10:38:02AM -0800, Peter Hurley wrote: > On 12/13/2015 07:18 AM, Johannes Stezenbach wrote: > > > > There is a related bug that I meant to send a patch, but I > > never got around because the issue was found with proprietary > > userspace and ancient kernel. Maybe you could

  1   2   3   4   >