[PATCH] ASoC: wm8804: Use common error handling code in wm8804_probe()

2017-11-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 19 Nov 2017 07:55:49 +0100 * Add a jump target so that a specific error message is stored only once at the end of this function implementation. * Replace two calls of the function "dev_err" by goto statements. This issue was detected by using the Coccinelle sof

Re: [PATCH] ALSA: via82xx: Use common error handling code in snd_via82xx_create()

2017-11-18 Thread SF Markus Elfring
>> @@ -1153,6 +1150,14 @@ static int snd_via82xx_create(struct snd_card *card, >> >> *r_via = chip; >> return 0; >> + >> +disable_device: >> +pci_disable_device(pci); >> +goto exit; >> +free_chip: >> +snd_via82xx_free(chip); >> +exit: >> +return err; > > Doubly goto doe

Re: [PATCH V2 2/2] mfd: cros ec: spi: Simplify delay handling between SPI messages

2017-11-18 Thread Benson Leung
Hi Jon, On Tue, Nov 14, 2017 at 02:43:28PM +, Jon Hunter wrote: > The EC SPI driver prevents SPI transfers being to rapidly by keeping > track of the time the last transfer was issued via the > 'last_transfer_ns' variable. Previously, if the 'last_transfer_ns' > variable was zero, this indicat

Re: [PATCH V2 1/2] mfd: cros ec: spi: Don't send first message too soon

2017-11-18 Thread Benson Leung
Hi Jon, On Tue, Nov 14, 2017 at 02:43:27PM +, Jon Hunter wrote: > On the Tegra124 Nyan-Big chromebook the very first SPI message sent to > the EC is failing. > > The Tegra SPI driver configures the SPI chip-selects to be active-high > by default (and always has for many years). The EC SPI req

[PATCH 1/2] MAINTAINERS: regulator: Add Documentation/power/regulator/

2017-11-18 Thread Jonathan Neuschäfer
Signed-off-by: Jonathan Neuschäfer --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2811a211632c..a644d41e088c 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -14447,6 +14447,7 @@ W: http://www.slimlogic.co.uk/?p=48 T: git git://git.kerne

[PATCH 2/2] regulator: Update code examples in documentation

2017-11-18 Thread Jonathan Neuschäfer
This involves using the REGULATOR_SUPPLY initializer macro and reindenting some of the code. Signed-off-by: Jonathan Neuschäfer --- Documentation/power/regulator/machine.txt | 36 ++- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/Documentation/power/

[PATCH 3/6 v3] mmc: sdhci-acpi: Handle return value of platform_get_irq

2017-11-18 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in v3 : return -EINVAL instead of host->irq. drivers/mmc/host/sdhci-acpi.c | 4 ++

[PATCH 2/6 v3] mmc: s3cmci: Fix platform_get_irq's error checking

2017-11-18 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in

[PATCH 6/6 v3] mmc: sunxi-mmc: Handle return value of platform_get_irq

2017-11-18 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in v3 : return -EINVAL instead of host->irq. drivers/mmc/host/sunxi-mmc.c | 5 +++

[PATCH 1/6 v3] mmc: meson-gx-mmc: Fix platform_get_irq's error checking

2017-11-18 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in

[PATCH 4/6 v3] mmc: sdhci-spear: Handle return value of platform_get_irq

2017-11-18 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in v3 : return -EINVAL instead of host->irq. drivers/mmc/host/sdhci-spear.c | 4 +

[PATCH 2/2 v3] misc: atmel-ssc: Fix platform_get_irq's error checking

2017-11-18 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ 0 is not valid. changes i

[PATCH 1/2 v3] misc: aspeed-lpc-snoop: Fix platform_get_irq's error checking

2017-11-18 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ 0 is not valid. changes i

[PATCH 1/3 v3] mfd: ipaq-micro: Fix platform_get_irq's error checking

2017-11-18 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. If IRQ0 is not valid. changes

[PATCH 3/3 v3] mfd: sun4i-gpadc: Handle return value of platform_get_irq

2017-11-18 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. If IRQ0 is not valid. changes in v3 : return -EINVAL insted of irq. drivers/mfd/sun4i-gpadc.c | 7 +-- 1

Re: [PATCH v2] serial: 8250_pci: Add Amazon PCI serial device ID

2017-11-18 Thread Matt Wilson
On Mon, Nov 13, 2017 at 11:31:31AM -0800, Matt Wilson wrote: > From: Matt Wilson > > This device will be used in future Amazon EC2 instances as the primary > serial port (i.e., data sent to this port will be available via the > GetConsoleOuput [1] EC2 API). Ping? --msw > [1] > http://docs.aws

Re: [PATCH v2] iio: mma8452: replace license description with SPDX specifier

2017-11-18 Thread harinath Nampally
> This replaces the custom license information text with the appropriate > SPDX identifier. While the information here stays the same, it is easier > to read. > Signed-off-by: Martin Kepplinger > Acked-by: Peter Meerwald-Stadler Acked-by: Harinath Nampally On Sat, Nov 18, 2017 at 11:29 AM, Phil

Re: [RFC v2] prctl: prctl(PR_SET_IDLE, PR_IDLE_MODE_KILLME), for stateless idle loops

2017-11-18 Thread Matthew Wilcox
On Fri, Nov 17, 2017 at 08:45:03PM -0800, Shawn Landden wrote: > On Fri, Nov 3, 2017 at 2:09 AM, Michal Hocko wrote: > > On Thu 02-11-17 23:35:44, Shawn Landden wrote: > > > 16 bytes per process is kinda spendy, but I want to keep > > > lru behavior, which mem_score_adj does not allow. When a supe

[PATCH 5/5 v3] ASoC: intel: mfld: Handle return value of platform_get_irq

2017-11-18 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in v3 : Return EIO insted of ctx->irq_num. sound/soc/intel/boards/mfld_machine.c

[PATCH 3/5 v4] ASoC: nuc900: Fix platform_get_irq's error checking

2017-11-18 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : irq was unsigned. so using signed variable ret. changes in v3 :

[PATCH 2/5 v4] ASoC: mt8173: Fix platform_get_irq's error checking

2017-11-18 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : irq was unsigned. so changed it to signed. changes in v3 :

[PATCH 4/5 v3] ASoC: intel: sst: Handle return value of platform_get_irq

2017-11-18 Thread Arvind Yadav
platform_get_irq() can fail here and we must check its return value. Signed-off-by: Arvind Yadav --- changes in v2 : Add failure case '<= 0' instead of '< 0'. IRQ0 is not valid. changes in v3 : Return EIO insted of ctx->irq_num. sound/soc/intel/atom/sst/sst_acpi.c |

[PATCH 1/5 v4] ASoC: ep93xx-ac97: Fix platform_get_irq's error checking

2017-11-18 Thread Arvind Yadav
The platform_get_irq() function returns negative if an error occurs. zero or positive number on success. platform_get_irq() error checking for zero is not correct. Signed-off-by: Arvind Yadav --- changes in v2 : irq was unsigned. so changed it to signed. changes in v3 :

Re: [22/26] MIPS: generic: Introduce generic DT-based board support

2017-11-18 Thread Guenter Roeck
On Fri, Aug 26, 2016 at 04:37:21PM +0100, Paul Burton wrote: > Introduce a "generic" platform, which aims to be board-agnostic by > making use of device trees passed by the boot protocol defined in the > MIPS UHI (Universal Hosting Interface) specification. Provision is made > for supporting boards

Re: [PATCH v2 net-next] net/tcp: trace all TCP/IP state transition with tcp_set_state tracepoint

2017-11-18 Thread David Miller
From: Yafang Shao Date: Sat, 18 Nov 2017 15:32:36 + > The TCP/IP transition from TCP_LISTEN to TCP_SYN_RECV and some other > transitions are not traced with tcp_set_state tracepoint. > > In order to trace the whole tcp lifespans, two helpers are introduced, > void __tcp_set_state(struct sock

Re: [PATCH] usbnet: ipheth: fix potential null pointer dereference in ipheth_carrier_set

2017-11-18 Thread David Miller
From: "Gustavo A. R. Silva" Date: Fri, 17 Nov 2017 14:02:09 -0600 > _dev_ is being dereferenced before it is null checked, hence there > is a potential null pointer dereference. > > Fix this by moving the pointer dereference after _dev_ has been null > checked. > > Addresses-Coverity-ID: 146202

[PATCH] perf probe: Add a tip about define a tracepoint event

2017-11-18 Thread minchae
perf probe command defines dynamic tracepoint events, by symbol and registers without debuginfo, or by C expressions with debuginfo. --- tools/perf/Documentation/tips.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/perf/Documentation/tips.txt b/tools/perf/Documentati

Re: [PATCH] RCU: Remove have_rcu_nocb_mask from tree_plugin.h

2017-11-18 Thread Paul E. McKenney
On Fri, Nov 17, 2017 at 09:40:15PM +0600, Rakib Mullick wrote: > Currently have_rcu_nocb_mask is used to avoid double allocation of > rcu_nocb_mask during boot up. Due to different representation of > cpumask_var_t on different kernel config CPUMASK=y(or n) it was okay. > But now we have a helper c

Re: [PATCH RFC 00/25] Replacing net_mutex with rw_semaphore

2017-11-18 Thread Eric W. Biederman
Kirill Tkhai writes: > Hi, > > this is continuation of discussion from here: > > https://lkml.org/lkml/2017/11/14/298 > > The plan has changed a little bit, so I'd be happy to hear > people's comments, before I dived into all 400+ pernet subsys > and devices. > > The patch set adds pernet sys lis

Re: [PATCH] HID: elecom: fix the descriptor of the EX-G trackball

2017-11-18 Thread Tomasz Kramkowski
On Sun, Nov 19, 2017 at 12:31:45AM +, Diego Elio Pettenò wrote: > Please do not drop the explicit documentation of the diff. Looking at what > a driver does in three years is not going to be obvious, whether you know > HID or not. I'm sure there are situations where this is true but I've just

[PATCH] iio: cros_ec: Remove unused variables

2017-11-18 Thread Paolo Cretaro
Fix gcc warnings about variable 'ec_device' being set but not used in these files: common/cros_ec_sensors/cros_ec_sensors.c:194:25 light/cros_ec_light_prox.c:184:25 Signed-off-by: Paolo Cretaro --- drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c | 2 -- drivers/iio/light/cros_ec_light_prox.

[PATCH] perf trace: Add tips about perf trace

2017-11-18 Thread Sangwon Hong
Add two tips that summary perf trace and perf trace record to know Intuitively. Cc: Jiri Olsa Cc: Namhyung Kim Cc: Taeung Song Signed-off-by: Sangwon Hong --- tools/perf/Documentation/tips.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/perf/Documentation/tips.txt b/tools/per

Re: [PATCH] HID: elecom: fix the descriptor of the EX-G trackball

2017-11-18 Thread Tomasz Kramkowski
On Sat, Nov 18, 2017 at 10:27:26PM +, Tomasz Kramkowski wrote: > I was going to do this just now actually but then I noticed that someone > had beat me to the punch with the EX-G (I was already surprised when I > found someone had patched the HUGE and DEFT). Actually, I'll put my money where m

Re: [PATCH v2 06/15] ima: add parser of digest lists metadata

2017-11-18 Thread Mimi Zohar
Hi Serge, On Fri, 2017-11-17 at 22:20 -0600, Serge E. Hallyn wrote: > On Tue, Nov 07, 2017 at 11:37:01AM +0100, Roberto Sassu wrote: > > from a predefined position (/etc/ima/digest_lists/metadata), when rootfs > > becomes available. Digest lists must be loaded before IMA appraisal is in > > enforc

Re: [alsa-devel] [PATCH] ASoC: fsl_asrc: Fix typo in a field define

2017-11-18 Thread Fabio Estevam
On Thu, Nov 16, 2017 at 5:55 PM, Nicolin Chen wrote: > ASRFSTi_IAEi has an 11-bit offset as its _SHIFT macro defines. > > So this patch just fixes that. > > Reported-by: Laurent Charpentier > Signed-off-by: Nicolin Chen Reviewed-by: Fabio Estevam

Re: [PATCH] HID: elecom: fix the descriptor of the EX-G trackball

2017-11-18 Thread Tomasz Kramkowski
Since the device only has 6 physical buttons, I don't think unmasking all 8 bits in the HID report descriptor is appropriate. If you do that then userspace sees a mouse with 8 buttons and you never know when software might actually behave differently depending on that number. (I can imagine fancy m

Re: seccomp() SECCOMP_RET_KILL_PROCESS text for man page

2017-11-18 Thread Michael Kerrisk (man-pages)
Hi Kees! On 18 November 2017 at 21:52, Kees Cook wrote: > On Sat, Nov 18, 2017 at 12:04 PM, Michael Kerrisk (man-pages) > wrote: >> Hi Kees, >> >> I came up with the following text (patch below) to describe the >> SECCOMP_RET_KILL_PROCESS action that you added in 4.14. Does it >> look okay? >> >

transaction charged twice.

2017-11-18 Thread Ahalan Kamal Arnab
Hello, Two days ago i bought from your website at value 215.60 dedic. I used my credit card to pay for 215.60 for those service. Yesterday morning when I checked my account, I had the transaction charged twice. I have attached my bank statement that shows the double charge. Plase let me

Re: [PATCH] drivers/char/random.c: remove unused dont_count_entropy

2017-11-18 Thread Rasmus Villemoes
On 28 October 2017 at 00:30, Rasmus Villemoes wrote: > Ever since "random: kill dead extract_state struct" [1], the > dont_count_entropy member of struct timer_rand_state has been > effectively unused. Since it hasn't found a new use in 12 years, it's > probably safe to finally kill it. Ping.

Re: [PATCH] dt-bindings: trivial-devices: Remove fsl,mc13892

2017-11-18 Thread Fabio Estevam
On Sat, Nov 18, 2017 at 12:22 AM, Jonathan Neuschäfer wrote: > This device's bindings are not trivial: Additional properties are > documented in in Documentation/devicetree/bindings/mfd/mc13xxx.txt. > > Signed-off-by: Jonathan Neuschäfer Reviewed-by: Fabio Estevam Thanks

Re: [git pull] vfs.git get_user_pages_fast() conversion

2017-11-18 Thread Dan Williams
On Fri, Nov 17, 2017 at 1:32 PM, Al Viro wrote: > On Fri, Nov 17, 2017 at 12:50:47PM -0800, Linus Torvalds wrote: > >> Not because the conversion was wrong, but because the original code is >> so broken. >> >> In particular, that "1" that is unchanged in the arguments is correct >> in the conversi

transaction charged twice.

2017-11-18 Thread Davi |||
Hello, Two days ago i bought from your website at value 215.60 dedic. I used my credit card to pay for 215.60 for those service. Yesterday morning when I checked my account, I had the transaction charged twice. I have attached my bank statement that shows the double charge. Plase let me know

Re: [git pull] vfs.git get_user_pages_fast() conversion

2017-11-18 Thread Al Viro
On Fri, Nov 17, 2017 at 09:32:15PM +, Al Viro wrote: > And for get_user_pages() itself it's even more ridiculous - vmalist (the last > argument) is non-NULL in only one caller. Which uses it only to check if all > of the VMAs happen to be hugetlb ones, apparently. > > FWIW, I wanted to trim

Re: [PATCH 00/10] x86: Add support for running as secondary Jailhouse guest

2017-11-18 Thread H. Peter Anvin
On 11/15/17 23:26, Jan Kiszka wrote: > This series paves the way to run Linux in so-called non-root cells > (guest partitions) of the Jailhouse hypervisor. > > Jailhouse [1] was started 4 years ago as an open-source (GPL) leight- > weight hypervisor that statically partitions SMP systems. It's uni

[PATCH] ALSA: cs5530: Use common error handling code in snd_cs5530_probe()

2017-11-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 18 Nov 2017 22:10:19 +0100 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/pci/cs5530.c | 17 +-

Re: [RFC PATCH v3 for 4.15 08/24] Provide cpu_opv system call

2017-11-18 Thread Andy Lutomirski
On Fri, Nov 17, 2017 at 12:07 PM, Thomas Gleixner wrote: > On Fri, 17 Nov 2017, Andi Kleen wrote: >> > The most straight forward is to have a mechanism which forces everything >> > into the slow path in case of debugging, lack of progress, etc. The slow >> >> That's the abort address, right? > > Y

Re: seccomp() SECCOMP_RET_KILL_PROCESS text for man page

2017-11-18 Thread Kees Cook
On Sat, Nov 18, 2017 at 12:04 PM, Michael Kerrisk (man-pages) wrote: > Hi Kees, > > I came up with the following text (patch below) to describe the > SECCOMP_RET_KILL_PROCESS action that you added in 4.14. Does it > look okay? > >SECCOMP_RET_KILL_PROCESS (since Linux 4.14) >

Re: [patch V2 02/11] LICENSES: Add the GPL 2.0 license

2017-11-18 Thread Charlemagne Lasse
2017-11-18 20:14 GMT+01:00 Linus Torvalds : > You may be confusing things because of a newer version. > > I refuse to change the original copyright wording due to idiotic > internal FSF politics that tried to change history. But you are accepting commit messages which are factually wrong? I am no

[PATCH 2/2] ALSA: vx222: Use common error handling code in two functions

2017-11-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 18 Nov 2017 21:23:27 +0100 Add jump targets so that a bit of exception handling can be better reused at the end of these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/pci/vx222/vx222.c | 44

[PATCH 1/2] ALSA: vx222: Adjust ten function calls together with a variable assignment

2017-11-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 18 Nov 2017 21:10:37 +0100 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 --- sound/pci/vx222/vx222.c | 19

[PATCH 0/2] ALSA-Digigram VX222: Fine-tuning for four function implementations

2017-11-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 18 Nov 2017 21:27:50 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Adjust ten function calls together with a variable assignment Use common error handling code in two functions sound/pci/vx222/vx22

[PATCH] ARM: exynos: add machine description for ODROID-XU3/4

2017-11-18 Thread Dongjin Kim
This patch is to add the machine descriptions for ODROID-XU3/4 boards in order to present the hardware name at /proc/cputinfo rather than "SAMSUNG EXYNOS (Flattened Device Tree)". An embedded open source project, such as DietPi, reads the hardware name to run different features. $ cat /pro

Re: [RFC v2] prctl: prctl(PR_SET_IDLE, PR_IDLE_MODE_KILLME), for stateless idle loops

2017-11-18 Thread Shawn Landden
On Fri, Nov 3, 2017 at 2:09 AM, Michal Hocko wrote: > On Thu 02-11-17 23:35:44, Shawn Landden wrote: >> 16 bytes per process is kinda spendy, but I want to keep >> lru behavior, which mem_score_adj does not allow. When a supervisor, >> like Android's user input is keeping track this can be done in

Re: [GIT PULL] platform-drivers-x86 for 4.15-1

2017-11-18 Thread Linus Torvalds
On Sat, Nov 18, 2017 at 10:37 AM, Linus Torvalds wrote: > > So I note that you seem to use the same summary script that Darren used. .. oh, and I note a *much* worse issue. You add new drivers and then default them to "on". THAT IS COMPLETELY UNACCEPTABLE. I don't know why I have to say this e

seccomp() SECCOMP_RET_KILL_PROCESS text for man page

2017-11-18 Thread Michael Kerrisk (man-pages)
Hi Kees, I came up with the following text (patch below) to describe the SECCOMP_RET_KILL_PROCESS action that you added in 4.14. Does it look okay? SECCOMP_RET_KILL_PROCESS (since Linux 4.14) This value results in immediate termination of the process, with a co

Re: [PULL REQUEST] nfsd changes for 4.15

2017-11-18 Thread Linus Torvalds
On Sat, Nov 18, 2017 at 10:40 AM, J. Bruce Fields wrote: > Please pull nfsd changes for 4.15 from: Hmm. This had a tracepoint conflict with the nfs client pull. The resolution seems obvious and I did it, but I'd like people to review the end result but particularly also their workflows, because

Re: [PATCH] NFSv4: Ensure gcc 4.4.4 can compile initialiser for "invalid_stateid"

2017-11-18 Thread Boris Ostrovsky
On 11/18/2017 01:50 PM, Trond Myklebust wrote: gcc 4.4.4 is too old to have full C11 anonymous union support, so the current initialiser fails to compile. Reported-by: Boris Ostrovsky Signed-off-by: Trond Myklebust (compile-)Tested-by: Boris Ostrovsky --- fs/nfs/nfs4state.c | 4 ++--

Re: [PATCH 05/10] x86: jailhouse: Set up timekeeping

2017-11-18 Thread Jan Kiszka
On 2017-11-17 23:49, Thomas Gleixner wrote: > On Thu, 16 Nov 2017, Jan Kiszka wrote: >> Calibrate the TSC and, where necessary, the APIC timer against the >> TMTIMER. We need our own implementation as neither the PIC nor the HPET >> are available, and the standard calibration routines try to make u

Re: [PATCH 02/10] x86: jailhouse: Add infrastructure for running in non-root cell

2017-11-18 Thread Jan Kiszka
On 2017-11-17 22:54, Thomas Gleixner wrote: > On Thu, 16 Nov 2017, Jan Kiszka wrote: > >> +config JAILHOUSE_GUEST >> +bool "Jailhouse non-root cell support" >> +depends on PARAVIRT && X86_64 >> +---help--- >> + This option allows to run Linux as guest in a Jailhouse non-root >>

Re: [patch V2 02/11] LICENSES: Add the GPL 2.0 license

2017-11-18 Thread Jonas Oberg
>This is neither the GPL-2.0 from >https://www.gnu.org/licenses/gpl-2.0.txt I think it should be the copy from COPYING, in fact, since that's the exact GPL 2.0 license the kernel is under. Library GPL is factually correct; Lesser GPL is a newer name for the same license, but COPYING retains the

Re: [patch V2 02/11] LICENSES: Add the GPL 2.0 license

2017-11-18 Thread Linus Torvalds
You may be confusing things because of a newer version. On Sat, Nov 18, 2017 at 11:03 AM, Charlemagne Lasse wrote: > > That should be "GNU Lesser General Public" and not "GNU Library General > Public" That's just FSF revisionism. It used to be called "Library" over "Lesser", in the original GP

[PATCH 3/3] ALSA: trident: Use common error handling code in snd_trident_mixer()

2017-11-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 18 Nov 2017 19:49:50 +0100 Adjust jump targets so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- sound/pci/trident/trident_main.c | 71 +++- 1 file changed,

[PATCH 2/3] ALSA: trident: Use common error handling code in two functions

2017-11-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 18 Nov 2017 19:29:35 +0100 Add jump targets so that a bit of exception handling can be better reused at the end of these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- sound/pci/trident/trident.c | 54

[PATCH 1/3] ALSA: trident: Adjust 34 function calls together with a variable assignment

2017-11-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 18 Nov 2017 18:50:22 +0100 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix affected source code places. Signed-off-by: Markus Elfring --- sound/pci/trident/trident.c | 24 +-

[PATCH 0/3] ALSA-Trident 4DWave: Fine-tuning for nine function implementations

2017-11-18 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 18 Nov 2017 19:50:12 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (3): Adjust 34 function calls together with a variable assignment Use common error handling code in two functions Use common error ha

Re: [patch V2 02/11] LICENSES: Add the GPL 2.0 license

2017-11-18 Thread Charlemagne Lasse
2017-11-18 20:03 GMT+01:00 Charlemagne Lasse : >> +Ty Coon, President of Vice >> + >> +This General Public License does not permit incorporating your program into >> +proprietary programs. If your program is a subroutine library, you may >> +consider it more useful to permit linking proprietar

Re: [patch V2 02/11] LICENSES: Add the GPL 2.0 license

2017-11-18 Thread Charlemagne Lasse
2017-11-16 19:33 GMT+01:00 Thomas Gleixner : > Add the full text of the GPL 2.0 license to the kernel tree. It was > copied directly from: > >https://spdx.org/licenses/GPL-2.0.html#licenseText > > Add the required tags for reference and tooling. > > Signed-off-by: Thomas Gleixner NACKed-by:

[PATCH] NFSv4: Ensure gcc 4.4.4 can compile initialiser for "invalid_stateid"

2017-11-18 Thread Trond Myklebust
gcc 4.4.4 is too old to have full C11 anonymous union support, so the current initialiser fails to compile. Reported-by: Boris Ostrovsky Signed-off-by: Trond Myklebust --- fs/nfs/nfs4state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4

Re: [PATCH v2 net-next] net/tcp: trace all TCP/IP state transition with tcp_set_state tracepoint

2017-11-18 Thread Song Liu
> On Nov 18, 2017, at 7:32 AM, Yafang Shao wrote: > > The TCP/IP transition from TCP_LISTEN to TCP_SYN_RECV and some other > transitions are not traced with tcp_set_state tracepoint. > > In order to trace the whole tcp lifespans, two helpers are introduced, > void __tcp_set_state(struct sock *s

Re: Cannot boot with rootfs from eMMC if maxcpus=1

2017-11-18 Thread Randy Dunlap
On 11/09/2017 08:14 AM, Richard Schmitt wrote: > Using a 4.9 kernel, trying to boot a kernel using an eMMC based rootfs will > result in a crash > > The message preceeding the crash is: > > [3.285566] VFS: Cannot open root device "mmcblk0p9" or > unknown-block(0,0): error -6 > [3.293338

[PULL REQUEST] nfsd changes for 4.15

2017-11-18 Thread J. Bruce Fields
Please pull nfsd changes for 4.15 from: git://linux-nfs.org/~bfields/linux.git tags/nfsd-4.15 Lots of good bugfixes, including: - fix a number of races in the NFSv4+ state code. - fix some shutdown crashes in multiple-network-namespace cases. - relax our 4.1 session lim

Re: [GIT PULL] platform-drivers-x86 for 4.15-1

2017-11-18 Thread Linus Torvalds
On Sat, Nov 18, 2017 at 10:09 AM, Andy Shevchenko wrote: > > Here is the collected material against Platform Drivers x86 subsystem. > It's rather bit busy cycle for PDx86, mostly due to Dell SMBIOS driver > activity. So I note that you seem to use the same summary script that Darren used. Guys,

Re: [PATCH PREEMPT RT] rt-mutex: fix deadlock in device mapper

2017-11-18 Thread Mike Galbraith
On Fri, 2017-11-17 at 15:57 +0100, Sebastian Siewior wrote: > On 2017-11-13 12:56:53 [-0500], Mikulas Patocka wrote: > > Hi > Hi, > > > I'm submitting this patch for the CONFIG_PREEMPT_RT patch. It fixes > > deadlocks in device mapper when real time preemption is used. > > applied, thank you. B

Re: [PATCH] input: remove unneeded DRIVER_LICENSE #defines

2017-11-18 Thread Dmitry Torokhov
On Sat, Nov 18, 2017 at 11:27:24AM +0100, Greg Kroah-Hartman wrote: > On Fri, Nov 17, 2017 at 12:33:13PM -0800, Dmitry Torokhov wrote: > > On Fri, Nov 17, 2017 at 03:17:20PM +0100, Greg Kroah-Hartman wrote: > > > There is no need to #define the license of the driver, just put it in > > > the MODULE

Re: Commit fcd8843c40 breaks old compilers

2017-11-18 Thread Boris Ostrovsky
On 11/18/2017 01:12 PM, Trond Myklebust wrote: Sigh OK, how about something like the following then: { .data = { 0xff, 0xff, 0xff, 0xff, 0 }, } Yes, this does build. diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 54fd56d..daa6085 100644 --- a/fs/nfs/nfs4state.c +++ b/fs

Re: [PATCH 01/10 v3] Input: ep93xx_keypad: Fix platform_get_irq's error checking

2017-11-18 Thread Dmitry Torokhov
On Sat, Nov 18, 2017 at 04:25:08PM +0530, Arvind Yadav wrote: > The platform_get_irq() function returns negative if an error occurs. > zero or positive number on success. platform_get_irq() error checking > for zero is not correct. > > Signed-off-by: Arvind Yadav > --- > changes in v2: >

Re: [PATCH 5/10 v2] Input: cpcap-pwrbutton: Handle return value of platform_get_irq

2017-11-18 Thread Dmitry Torokhov
On Sat, Nov 18, 2017 at 08:21:22AM +, Russell King - ARM Linux wrote: > On Sat, Nov 18, 2017 at 02:36:53AM +0530, Arvind Yadav wrote: > > platform_get_irq() can fail here and we must check its return value. > > The test should be <= 0, and you need to return an error code for the > 0 case. In

Re: mm/percpu.c: use smarter memory allocation for struct pcpu_alloc_info (crisv32 hang)

2017-11-18 Thread Guenter Roeck
Hi, On Tue, Oct 03, 2017 at 06:29:49PM -0400, Nicolas Pitre wrote: > On Tue, 3 Oct 2017, Tejun Heo wrote: > > > On Tue, Oct 03, 2017 at 04:57:44PM -0400, Nicolas Pitre wrote: > > > This can be much smaller than a page on very small memory systems. > > > Always rounding up the size to a page is w

[GIT PULL] platform-drivers-x86 for 4.15-1

2017-11-18 Thread Andy Shevchenko
Hi Linus, Here is the collected material against Platform Drivers x86 subsystem. It's rather bit busy cycle for PDx86, mostly due to Dell SMBIOS driver activity. During merge it will get a conflict CONFLICT (content): Merge conflict in Documentation/admin-guide/thunderbolt.rst that is pretty st

Re: [PATCH v18 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-18 Thread Alex Williamson
On Sat, 18 Nov 2017 23:29:31 +0530 Kirti Wankhede wrote: > Extremely sorry for the delay. > This works for VFIO_GFX_PLANE_TYPE_REGION. Tested with local changes. > > Reviewed-by: Kirti Wankhede With that, Acked-by: Alex Williamson > On 11/18/2017 9:00 PM, Alex Williamson wrote: > > > > Kir

Re: Commit fcd8843c40 breaks old compilers

2017-11-18 Thread Trond Myklebust
On Sat, 2017-11-18 at 13:07 -0500, Boris Ostrovsky wrote: > > On 11/18/2017 12:39 PM, Trond Myklebust wrote: > > On Sat, 2017-11-18 at 12:19 -0500, Boris Ostrovsky wrote: > > > Commit fcd8843c406b46433857ae45e5e9d84b01a7d20b breaks on older > > > compilers which cannot process initializers for ano

Re: Commit fcd8843c40 breaks old compilers

2017-11-18 Thread Boris Ostrovsky
On 11/18/2017 12:39 PM, Trond Myklebust wrote: On Sat, 2017-11-18 at 12:19 -0500, Boris Ostrovsky wrote: Commit fcd8843c406b46433857ae45e5e9d84b01a7d20b breaks on older compilers which cannot process initializers for anonymous structures: +const nfs4_stateid invalid_stateid = { + { +

RFC: Copying Device Tree File into reserved area of VMLINUX before deployment

2017-11-18 Thread Ulf Samuelsson
I noticed when checking out the OpenWRT support for the board that they have a method to avoid having to pass the device tree address to the kernel, and can thus boot device tree based kernels with U-boots that does not support device trees. Is this something that would be considered useful for

Re: [PATCH v18 5/6] vfio: ABI for mdev display dma-buf operation

2017-11-18 Thread Kirti Wankhede
Extremely sorry for the delay. This works for VFIO_GFX_PLANE_TYPE_REGION. Tested with local changes. Reviewed-by: Kirti Wankhede Thanks, Kirti On 11/18/2017 9:00 PM, Alex Williamson wrote: > > Kirti? > > On Wed, 15 Nov 2017 21:11:42 -0700 > Alex Williamson wrote: > >> On Thu, 16 Nov 2017 11

[PATCH] Staging: comedi: adl_pci9118.c : fixed code style issue

2017-11-18 Thread Fabian Baumanis
Removed uneccessary parantheses which were sorrounding two if-statements. Signed-off-by: Fabian Baumanis ---  drivers/staging/comedi/drivers/adl_pci9118.c | 3 +--  1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/comedi/drivers/adl_pci9118.c b/drivers/staging/comedi/d

Re: Commit fcd8843c40 breaks old compilers

2017-11-18 Thread Trond Myklebust
On Sat, 2017-11-18 at 12:19 -0500, Boris Ostrovsky wrote: > Commit fcd8843c406b46433857ae45e5e9d84b01a7d20b breaks on older > compilers which cannot process initializers for anonymous structures: > > +const nfs4_stateid invalid_stateid = { > + { > + .seqid = cpu_to_be32(0xf

Commit fcd8843c40 breaks old compilers

2017-11-18 Thread Boris Ostrovsky
Commit fcd8843c406b46433857ae45e5e9d84b01a7d20b breaks on older compilers which cannot process initializers for anonymous structures: +const nfs4_stateid invalid_stateid = { + { + .seqid = cpu_to_be32(0xU), + .other = { 0 }, + }, + .type = NFS4

Re: [RFC PATCH 7/7] ASoC: Intel: boards: align/fix SKL/BXT/KBL Kconfigs

2017-11-18 Thread Andy Shevchenko
On Fri, 2017-11-17 at 18:02 -0600, Pierre-Louis Bossart wrote: > No reason why SND_SOC_INTEL_SST should be set here. > Also make sure same dependencies are used everywhere (only last one > has SPI > in addition) Regarding to my comment against previous patch... > config SND_SOC_INTEL_SKL_RT286_M

Re: [RFC PATCH 6/7] ASoC: Intel: boards: align Kconfig configurations for HiFi2

2017-11-18 Thread Andy Shevchenko
On Fri, 2017-11-17 at 18:02 -0600, Pierre-Louis Bossart wrote: > Make sure all the configs are aligned > Also add the missing dependencies on SOC_ACPI stuff used to fix > DAI names based on HID. > > FIXME: not sure why X86_INTEL_LPSS is needed in a machine > driver config, should it be back to X8

Re: [RFC PATCH 2/7] ASoC: Intel: Kconfig: Simplify-clarify ACPI/PCI dependencies

2017-11-18 Thread Shevchenko, Andriy
On Sat, 2017-11-18 at 18:53 +0200, Andy Shevchenko wrote: > On Fri, 2017-11-17 at 18:01 -0600, Pierre-Louis Bossart wrote: > > PCI/ACPI selections should not happen in Kconfig for machine > > drivers, > > move to SOC selections. > > > > Add distinction between PCI and ACPI HiFi2 platforms. > > >

Re: [RFC PATCH 2/7] ASoC: Intel: Kconfig: Simplify-clarify ACPI/PCI dependencies

2017-11-18 Thread Andy Shevchenko
On Fri, 2017-11-17 at 18:01 -0600, Pierre-Louis Bossart wrote: > PCI/ACPI selections should not happen in Kconfig for machine drivers, > move to SOC selections. > > Add distinction between PCI and ACPI HiFi2 platforms. > The PCI-based > platforms may be removed at some point since Medfield is n

Re: [RFC PATCH 1/7] ASoC: Intel: Fix Kconfig

2017-11-18 Thread Takashi Iwai
On Sat, 18 Nov 2017 01:01:56 +0100, Pierre-Louis Bossart wrote: > > +if SND_SOC_INTEL_BAYTRAIL > > config SND_SOC_INTEL_BYT_MAX98090_MACH > tristate "ASoC Audio driver for Intel Baytrail with MAX98090 codec" > + default n default=n is superfluous, can be dropped. > depends on

Re: [PATCH v2] iio: mma8452: replace license description with SPDX specifier

2017-11-18 Thread Philippe Ombredanne
On Sat, Nov 18, 2017 at 4:53 PM, Jonathan Cameron wrote: > On Sat, 18 Nov 2017 10:10:11 +0100 > Martin Kepplinger wrote: > >> This replaces the custom license information text with the appropriate >> SPDX identifier. While the information here stays the same, it is easier >> to read. >> >> Signed

[PATCH] staging: comedi: ni_atmio: fix license warning.

2017-11-18 Thread Matthew Giassa
Resolving license check warning for drivers/staging/comedi. Added the license definitions present in the rest of the module and made sure it's aligned with the license (GPL) in the comments for the affected file (ni_atmio.c). Original warning: WARNING: modpost: missing MODULE_LICENSE() in drivers

Re: [v4,3/3] hwmon: (w83773g) Add documentation

2017-11-18 Thread Guenter Roeck
On Mon, Nov 13, 2017 at 11:27:34AM +0800, Lei YU wrote: > Add documentation for the w83773g driver. > > Signed-off-by: Lei YU Applied to hwmon-next. Thanks, Guenter

Re: [v4,2/3] drivers: hwmon: Add W83773G driver

2017-11-18 Thread Guenter Roeck
On Mon, Nov 13, 2017 at 11:27:33AM +0800, Lei YU wrote: > Nuvoton W83773G is a hardware monitor IC providing one local > temperature and two remote temperature sensors. > > Signed-off-by: Lei YU Applied to hwmon-next. Thanks, Guenter > --- > v2: > - Rewrite the driver using regmap > - Add of

Re: [PATCH v3 3/4] iio: adc: at91-sama5d2_adc: add support for DMA

2017-11-18 Thread Jonathan Cameron
On Wed, 15 Nov 2017 14:56:47 +0200 Eugen Hristev wrote: > Added support for DMA transfers. The implementation uses the user watermark > to decide whether DMA will be used or not. For watermark 1, DMA will not be > used. If watermark is bigger, DMA will be used. > Sysfs attributes are created to i

Re: [PATCH v3 1/4] dt-bindings: iio: at91-sama5d2_adc: add optional dma property

2017-11-18 Thread Jonathan Cameron
On Wed, 15 Nov 2017 09:27:46 -0600 Rob Herring wrote: > On Wed, Nov 15, 2017 at 02:56:45PM +0200, Eugen Hristev wrote: > > Added property for DMA configuration of the device. > > > > Signed-off-by: Eugen Hristev > > --- > > Changes in v3: > > None, but we discussed on the ML about whether we s

Re: A test of the philosophical impact.. Behaviour problems of "Gnu-Zealots" = Illegal Unix Rip.

2017-11-18 Thread Ywe Cærlyn
Den 11/12/2017 11:53, skrev Ywe Cærlyn: Den 11/9/2017 11:55, skrev Ywe Cærlyn: Den 11/6/2017 19:13, skrev Ywe Cærlyn: Den 11/6/2017 11:00, skrev Ywe Cærlyn: Den 11/4/2017 23:53, skrev Ywe Cærlyn: Den 11/3/2017 07:46, skrev Ywe Cærlyn: Den 10/29/2017 17:21, skrev Ywe Cærlyn: Den 10/29/2017 1

Re: [PATCH v2] iio: mma8452: replace license description with SPDX specifier

2017-11-18 Thread Jonathan Cameron
On Sat, 18 Nov 2017 10:10:11 +0100 Martin Kepplinger wrote: > This replaces the custom license information text with the appropriate > SPDX identifier. While the information here stays the same, it is easier > to read. > > Signed-off-by: Martin Kepplinger > Acked-by: Peter Meerwald-Stadler I'

  1   2   3   >