[PATCH 17/17] applying-patches.rst: Update the information there

2016-09-14 Thread Mauro Carvalho Chehab
This document is old: it is from Kernel v2.6.12 days. Update it to the current status, and add a reference for the linux-next tree. Signed-off-by: Mauro Carvalho Chehab --- .../development-process/applying-patches.rst | 255 + 1 file changed, 110 insertions(+), 145

[PATCH 06/17] SubmitChecklist: convert it to ReST markup

2016-09-14 Thread Mauro Carvalho Chehab
- use ``foo`` to markup inline literal stuff, effectively making it to be presented as a monospaced font when parsed by Sphinx; - the markup below the title should have the same length as the title; - Fix the list markups, from "1:" to "1)"; - Split item 2 into a separate list for the build

[PATCH net-next 1/4] rxrpc: Create an address for sendmsg() to bind unbound socket with [ver #2]

2016-09-14 Thread David Howells
Create an address for sendmsg() to bind unbound socket with rather than using a completely blank address otherwise the transport socket creation will fail because it will try to use address family 0. We use the address family specified in the protocol argument when the AF_RXRPC socket was created

[PATCH 14/17] stable_api_nonsense.rst: fix emphasis on Sphinx

2016-09-14 Thread Mauro Carvalho Chehab
Unfortunately, Sphinx doesn't have a way to use underlines. So, let's replace _any_ by **any**. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/stable_api_nonsense.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 04/17] Changes.rst: add minimal requirements for documentation build

2016-09-14 Thread Mauro Carvalho Chehab
As discussed at linux-doc ML, the best is to keep all documents backward compatible with Sphinx version 1.2, as it is the latest version found on some distros like Debian. All books currently support it. Please notice that, while it mentions the eventual need of XeLaTex and texlive to build pdf

[PATCH 12/17] SubmittingPatches.rst: enrich the Sphinx output

2016-09-14 Thread Mauro Carvalho Chehab
Do a few changes to make the output look better: - use bullets on trivial patches list; - use monotonic font for tools name; - use :manpage:`foo` for man pages; - don't put all references to maintainer*html at the same line. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH] cpufreq: CPPC: Avoid overflow when calculating desired_perf

2016-09-14 Thread Hoan Tran
This patch fixes overflow issue when calculating the desired_perf. Signed-off-by: Hoan Tran --- drivers/cpufreq/cppc_cpufreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index

[PATCH 00/17] Improve documentation for the development-process

2016-09-14 Thread Mauro Carvalho Chehab
This patch series is a followup to be applied after the: [PATCH v3 00/21] Create a book for Kernel development patch series. It addresses some issues I noticed after re-reading the html docs after the conversion of those files to ReST. It also converts two extra documents to ReST:

[PATCH 14/17] stable_api_nonsense.rst: fix emphasis on Sphinx

2016-09-14 Thread Mauro Carvalho Chehab
Unfortunately, Sphinx doesn't have a way to use underlines. So, let's replace _any_ by **any**. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/stable_api_nonsense.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 04/17] Changes.rst: add minimal requirements for documentation build

2016-09-14 Thread Mauro Carvalho Chehab
As discussed at linux-doc ML, the best is to keep all documents backward compatible with Sphinx version 1.2, as it is the latest version found on some distros like Debian. All books currently support it. Please notice that, while it mentions the eventual need of XeLaTex and texlive to build pdf

[PATCH 12/17] SubmittingPatches.rst: enrich the Sphinx output

2016-09-14 Thread Mauro Carvalho Chehab
Do a few changes to make the output look better: - use bullets on trivial patches list; - use monotonic font for tools name; - use :manpage:`foo` for man pages; - don't put all references to maintainer*html at the same line. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH] cpufreq: CPPC: Avoid overflow when calculating desired_perf

2016-09-14 Thread Hoan Tran
This patch fixes overflow issue when calculating the desired_perf. Signed-off-by: Hoan Tran --- drivers/cpufreq/cppc_cpufreq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/cppc_cpufreq.c b/drivers/cpufreq/cppc_cpufreq.c index 894e465..3e0961e 100644 ---

[PATCH 00/17] Improve documentation for the development-process

2016-09-14 Thread Mauro Carvalho Chehab
This patch series is a followup to be applied after the: [PATCH v3 00/21] Create a book for Kernel development patch series. It addresses some issues I noticed after re-reading the html docs after the conversion of those files to ReST. It also converts two extra documents to ReST:

[PATCH net-next 1/4] rxrpc: Create an address for sendmsg() to bind unbound socket with [ver #2]

2016-09-14 Thread David Howells
Create an address for sendmsg() to bind unbound socket with rather than using a completely blank address otherwise the transport socket creation will fail because it will try to use address family 0. We use the address family specified in the protocol argument when the AF_RXRPC socket was created

[PATCH net-next 2/4] rxrpc: Don't specify protocol to when creating transport socket [ver #2]

2016-09-14 Thread David Howells
Pass 0 as the protocol argument when creating the transport socket rather than IPPROTO_UDP. Signed-off-by: David Howells --- net/rxrpc/local_object.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rxrpc/local_object.c

[PATCH 03/17] HOWTO.rst: adjust external link references

2016-09-14 Thread Mauro Carvalho Chehab
- A few link references were missing http:// - Several sites are now redirecting to https protocol. On such cases, just use the https URL. NOTE: all URLs were checked and they're pointing to the right places. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH net-next 2/4] rxrpc: Don't specify protocol to when creating transport socket [ver #2]

2016-09-14 Thread David Howells
Pass 0 as the protocol argument when creating the transport socket rather than IPPROTO_UDP. Signed-off-by: David Howells --- net/rxrpc/local_object.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net/rxrpc/local_object.c b/net/rxrpc/local_object.c index

[PATCH 03/17] HOWTO.rst: adjust external link references

2016-09-14 Thread Mauro Carvalho Chehab
- A few link references were missing http:// - Several sites are now redirecting to https protocol. On such cases, just use the https URL. NOTE: all URLs were checked and they're pointing to the right places. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 05/17] SubmitChecklist: update kernel-doc task

2016-09-14 Thread Mauro Carvalho Chehab
Task 11 (kernel-doc) still mentions usage of make manpages, but this won't work if the API is documented via Sphinx. So, update it to use either htmldocs or pdfdocs, with are the documentation targets that work for all. While here, add ReST reference to the kernel documentation book.

[PATCH net-next 4/4] rxrpc: Add IPv6 support [ver #2]

2016-09-14 Thread David Howells
Add IPv6 support to AF_RXRPC. With this, AF_RXRPC sockets can be created: service = socket(AF_RXRPC, SOCK_DGRAM, PF_INET6); instead of: service = socket(AF_RXRPC, SOCK_DGRAM, PF_INET); The AFS filesystem doesn't support IPv6 at the moment, though, since that requires upgrades

[PATCH 11/17] SubmittingPatches.rst: Add some cross-references

2016-09-14 Thread Mauro Carvalho Chehab
This file mentions some other documents already converted to ReST format. Add cross-references for them. Signed-off-by: Mauro Carvalho Chehab --- .../development-process/SubmitChecklist.rst| 2 ++ .../development-process/SubmittingPatches.rst | 24

[PATCH 16/17] stable_kernel_rules.rst: Add cross-references to other ReST files

2016-09-14 Thread Mauro Carvalho Chehab
Add two references for files that were already converted to ReST. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/stable_kernel_rules.rst | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH 05/17] SubmitChecklist: update kernel-doc task

2016-09-14 Thread Mauro Carvalho Chehab
Task 11 (kernel-doc) still mentions usage of make manpages, but this won't work if the API is documented via Sphinx. So, update it to use either htmldocs or pdfdocs, with are the documentation targets that work for all. While here, add ReST reference to the kernel documentation book.

[PATCH net-next 4/4] rxrpc: Add IPv6 support [ver #2]

2016-09-14 Thread David Howells
Add IPv6 support to AF_RXRPC. With this, AF_RXRPC sockets can be created: service = socket(AF_RXRPC, SOCK_DGRAM, PF_INET6); instead of: service = socket(AF_RXRPC, SOCK_DGRAM, PF_INET); The AFS filesystem doesn't support IPv6 at the moment, though, since that requires upgrades

[PATCH 11/17] SubmittingPatches.rst: Add some cross-references

2016-09-14 Thread Mauro Carvalho Chehab
This file mentions some other documents already converted to ReST format. Add cross-references for them. Signed-off-by: Mauro Carvalho Chehab --- .../development-process/SubmitChecklist.rst| 2 ++ .../development-process/SubmittingPatches.rst | 24 ++

[PATCH 16/17] stable_kernel_rules.rst: Add cross-references to other ReST files

2016-09-14 Thread Mauro Carvalho Chehab
Add two references for files that were already converted to ReST. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/stable_kernel_rules.rst | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git

[PATCH 09/17] email-clients.txt: convert it to ReST markup

2016-09-14 Thread Mauro Carvalho Chehab
As this file is mentioned at the development-process/ book, let's convert it to ReST markup. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/5.Posting.rst| 2 +- .../development-process/SubmittingPatches.rst | 2 +-

[PATCH 10/17] email-clients.txt: add it to the development-process book

2016-09-14 Thread Mauro Carvalho Chehab
This file is mentioned inside SubmittingPatches, and it is related to the patch submission process. So, move it to the right book, making Sphinx build it. Signed-off-by: Mauro Carvalho Chehab --- .../{email-clients.txt => development-process/email-clients.rst}

[PATCH 02/17] HOWTO.rst: improve some markups to make it visually better

2016-09-14 Thread Mauro Carvalho Chehab
Do a series of minor improvements at the ReST output format: - Instead of using the quote blocks (::) for quotes, use italics. That looks nicer on epub (and html) output, as no scroll bar will be added. Also, it will adjust line breaks on the text automatically. - Add a missing reference to

[PATCH net-next 0/4] rxrpc: Support IPv6 [ver #2]

2016-09-14 Thread David Howells
Here is a set of patches that add IPv6 support. They need to be applied on top of the just-posted miscellaneous fix patches. They are: (1) Make autobinding of an unconnected socket work when sendmsg() is called to initiate a client call. (2) Don't specify the protocol when creating the

[PATCH 13/17] SubmittingDrivers.rst: add a cross reference to CodingStyle

2016-09-14 Thread Mauro Carvalho Chehab
Instead of mentioning CodingStyle as a file, use a reference. While here, do a minor update, pointing that the same rules for Kernel 2.6 apply up to the recent versions too. Signed-off-by: Mauro Carvalho Chehab ---

[PATCH 15/17] ManagementStyle.rst: avoid emphasis where not desired

2016-09-14 Thread Mauro Carvalho Chehab
On Spinx, anything like: foo bar will output **foo** in bold. We don't want that on this text. So, add an extra line. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/ManagementStyle.rst | 2 ++ 1 file changed, 2 insertions(+) diff

[PATCH net-next 3/4] rxrpc: Use rxrpc_extract_addr_from_skb() rather than doing this manually [ver #2]

2016-09-14 Thread David Howells
There are two places that want to transmit a packet in response to one just received and manually pick the address to reply to out of the sk_buff. Make them use rxrpc_extract_addr_from_skb() instead so that IPv6 is handled automatically. Signed-off-by: David Howells ---

[PATCH 10/17] email-clients.txt: add it to the development-process book

2016-09-14 Thread Mauro Carvalho Chehab
This file is mentioned inside SubmittingPatches, and it is related to the patch submission process. So, move it to the right book, making Sphinx build it. Signed-off-by: Mauro Carvalho Chehab --- .../{email-clients.txt => development-process/email-clients.rst} | 0

[PATCH 02/17] HOWTO.rst: improve some markups to make it visually better

2016-09-14 Thread Mauro Carvalho Chehab
Do a series of minor improvements at the ReST output format: - Instead of using the quote blocks (::) for quotes, use italics. That looks nicer on epub (and html) output, as no scroll bar will be added. Also, it will adjust line breaks on the text automatically. - Add a missing reference to

[PATCH net-next 0/4] rxrpc: Support IPv6 [ver #2]

2016-09-14 Thread David Howells
Here is a set of patches that add IPv6 support. They need to be applied on top of the just-posted miscellaneous fix patches. They are: (1) Make autobinding of an unconnected socket work when sendmsg() is called to initiate a client call. (2) Don't specify the protocol when creating the

[PATCH 13/17] SubmittingDrivers.rst: add a cross reference to CodingStyle

2016-09-14 Thread Mauro Carvalho Chehab
Instead of mentioning CodingStyle as a file, use a reference. While here, do a minor update, pointing that the same rules for Kernel 2.6 apply up to the recent versions too. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/SubmittingDrivers.rst | 7 --- 1 file

[PATCH 15/17] ManagementStyle.rst: avoid emphasis where not desired

2016-09-14 Thread Mauro Carvalho Chehab
On Spinx, anything like: foo bar will output **foo** in bold. We don't want that on this text. So, add an extra line. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/ManagementStyle.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH net-next 3/4] rxrpc: Use rxrpc_extract_addr_from_skb() rather than doing this manually [ver #2]

2016-09-14 Thread David Howells
There are two places that want to transmit a packet in response to one just received and manually pick the address to reply to out of the sk_buff. Make them use rxrpc_extract_addr_from_skb() instead so that IPv6 is handled automatically. Signed-off-by: David Howells --- net/rxrpc/local_event.c

[PATCH 09/17] email-clients.txt: convert it to ReST markup

2016-09-14 Thread Mauro Carvalho Chehab
As this file is mentioned at the development-process/ book, let's convert it to ReST markup. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/5.Posting.rst| 2 +- .../development-process/SubmittingPatches.rst | 2 +- Documentation/email-clients.txt

[PATCH 01/17] HOWTO.rst: update information about generating documentation

2016-09-14 Thread Mauro Carvalho Chehab
The description there are pre-Sphinx. Update it to cover the new way. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/HOWTO.rst | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git

[PATCH 01/17] HOWTO.rst: update information about generating documentation

2016-09-14 Thread Mauro Carvalho Chehab
The description there are pre-Sphinx. Update it to cover the new way. Signed-off-by: Mauro Carvalho Chehab --- Documentation/development-process/HOWTO.rst | 28 ++-- 1 file changed, 22 insertions(+), 6 deletions(-) diff --git

Re: [RFC v3 07/22] landlock: Handle file comparisons

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 23:06, Alexei Starovoitov wrote: > On Wed, Sep 14, 2016 at 09:24:00AM +0200, Mickaël Salaün wrote: >> Add eBPF functions to compare file system access with a Landlock file >> system handle: >> * bpf_landlock_cmp_fs_prop_with_struct_file(prop, map, map_op, file) >> This function

Re: [RFC v3 07/22] landlock: Handle file comparisons

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 23:06, Alexei Starovoitov wrote: > On Wed, Sep 14, 2016 at 09:24:00AM +0200, Mickaël Salaün wrote: >> Add eBPF functions to compare file system access with a Landlock file >> system handle: >> * bpf_landlock_cmp_fs_prop_with_struct_file(prop, map, map_op, file) >> This function

Re: [PATCH] usb: use of_usb_get_dr_mode_by_phy() inline helper without USB

2016-09-14 Thread Arnd Bergmann
On Wednesday, September 14, 2016 3:51:01 PM CEST Arnd Bergmann wrote: > We have had two new PHY drivers call of_usb_get_dr_mode_by_phy() > recently without having a dependency on CONFIG_USB_COMMON, resulting > in a link error: > > ERROR: "of_usb_get_dr_mode_by_phy" [drivers/phy/phy-meson-usb2.ko]

Re: [PATCH] usb: use of_usb_get_dr_mode_by_phy() inline helper without USB

2016-09-14 Thread Arnd Bergmann
On Wednesday, September 14, 2016 3:51:01 PM CEST Arnd Bergmann wrote: > We have had two new PHY drivers call of_usb_get_dr_mode_by_phy() > recently without having a dependency on CONFIG_USB_COMMON, resulting > in a link error: > > ERROR: "of_usb_get_dr_mode_by_phy" [drivers/phy/phy-meson-usb2.ko]

Re: [PATCH] sparse: Track the boundaries of memory sections for accurate checks

2016-09-14 Thread Dan Williams
On Wed, Sep 14, 2016 at 3:11 PM, Raslan, KarimAllah wrote: > > Ahmed, Karim Allah > karah...@amazon.de > > > >> On Sep 15, 2016, at 12:05 AM, Dan Williams wrote: >> >> On Wed, Sep 14, 2016 at 2:40 PM, Raslan, KarimAllah >>

Re: [PATCH] sparse: Track the boundaries of memory sections for accurate checks

2016-09-14 Thread Dan Williams
On Wed, Sep 14, 2016 at 3:11 PM, Raslan, KarimAllah wrote: > > Ahmed, Karim Allah > karah...@amazon.de > > > >> On Sep 15, 2016, at 12:05 AM, Dan Williams wrote: >> >> On Wed, Sep 14, 2016 at 2:40 PM, Raslan, KarimAllah >> wrote: >>> >>> >>> On 6/20/16, 10:23 AM, "Michal Hocko" wrote: >>> >>>

Re: [PATCH v3 1/2] rtc-cmos: Clear ACPI-driven alarms upon resume

2016-09-14 Thread kbuild test robot
Hi Gabriele, [auto build test WARNING on abelloni/rtc-next] [also build test WARNING on v4.8-rc6 next-20160914] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenie

Re: [PATCH v3 1/2] rtc-cmos: Clear ACPI-driven alarms upon resume

2016-09-14 Thread kbuild test robot
Hi Gabriele, [auto build test WARNING on abelloni/rtc-next] [also build test WARNING on v4.8-rc6 next-20160914] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenie

Re: [RFC v3 21/22] bpf,landlock: Add optional skb pointer in the Landlock context

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 23:20, Alexei Starovoitov wrote: > On Wed, Sep 14, 2016 at 09:24:14AM +0200, Mickaël Salaün wrote: >> This is a proof of concept to expose optional values that could depend >> of the process access rights. >> >> There is two dedicated flags: LANDLOCK_FLAG_ACCESS_SKB_READ and >>

Re: [RFC v3 21/22] bpf,landlock: Add optional skb pointer in the Landlock context

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 23:20, Alexei Starovoitov wrote: > On Wed, Sep 14, 2016 at 09:24:14AM +0200, Mickaël Salaün wrote: >> This is a proof of concept to expose optional values that could depend >> of the process access rights. >> >> There is two dedicated flags: LANDLOCK_FLAG_ACCESS_SKB_READ and >>

Re: [RFC v3 07/22] landlock: Handle file comparisons

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 21:07, Jann Horn wrote: > On Wed, Sep 14, 2016 at 09:24:00AM +0200, Mickaël Salaün wrote: >> Add eBPF functions to compare file system access with a Landlock file >> system handle: >> * bpf_landlock_cmp_fs_prop_with_struct_file(prop, map, map_op, file) >> This function allows to

Re: [RFC v3 07/22] landlock: Handle file comparisons

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 21:07, Jann Horn wrote: > On Wed, Sep 14, 2016 at 09:24:00AM +0200, Mickaël Salaün wrote: >> Add eBPF functions to compare file system access with a Landlock file >> system handle: >> * bpf_landlock_cmp_fs_prop_with_struct_file(prop, map, map_op, file) >> This function allows to

Re: [PATCH v2) posix-timers: make it configurable

2016-09-14 Thread kbuild test robot
Hi Nicolas, [auto build test ERROR on linus/master] [also build test ERROR on v4.8-rc6 next-20160914] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to rec

Re: [RFC v3 11/22] seccomp,landlock: Handle Landlock hooks per process hierarchy

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 20:43, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 12:24 AM, Mickaël Salaün wrote: >> A Landlock program will be triggered according to its subtype/origin >> bitfield. The LANDLOCK_FLAG_ORIGIN_SECCOMP value will trigger the >> Landlock program when a seccomp

Re: [PATCH v2) posix-timers: make it configurable

2016-09-14 Thread kbuild test robot
Hi Nicolas, [auto build test ERROR on linus/master] [also build test ERROR on v4.8-rc6 next-20160914] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to rec

Re: [RFC v3 11/22] seccomp,landlock: Handle Landlock hooks per process hierarchy

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 20:43, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 12:24 AM, Mickaël Salaün wrote: >> A Landlock program will be triggered according to its subtype/origin >> bitfield. The LANDLOCK_FLAG_ORIGIN_SECCOMP value will trigger the >> Landlock program when a seccomp filter will return

Re: [RESEND][PATCH v2 1/3] syscalls,x86 Expose arch_prctl on x86-32.

2016-09-14 Thread Dmitry Safonov
2016-09-15 1:08 GMT+03:00 Kyle Huey : > On Wed, Sep 14, 2016 at 2:59 PM, Dmitry Safonov <0x7f454...@gmail.com> wrote: >> 2016-09-15 0:08 GMT+03:00 Kyle Huey : >>> Signed-off-by: Kyle Huey >>> --- >>> arch/x86/entry/syscalls/syscall_32.tbl

Re: [RESEND][PATCH v2 1/3] syscalls,x86 Expose arch_prctl on x86-32.

2016-09-14 Thread Dmitry Safonov
2016-09-15 1:08 GMT+03:00 Kyle Huey : > On Wed, Sep 14, 2016 at 2:59 PM, Dmitry Safonov <0x7f454...@gmail.com> wrote: >> 2016-09-15 0:08 GMT+03:00 Kyle Huey : >>> Signed-off-by: Kyle Huey >>> --- >>> arch/x86/entry/syscalls/syscall_32.tbl | 1 + >>> arch/x86/kernel/process.c | 80

[PATCH] fs/aio.c: eliminate redundant loads in put_aio_ring_file

2016-09-14 Thread Rasmus Villemoes
Using a local variable we can prevent gcc from reloading aio_ring_file->f_inode->i_mapping twice, eliminating 2x2 dependent loads. Signed-off-by: Rasmus Villemoes --- fs/aio.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/aio.c

[PATCH] fs/aio.c: eliminate redundant loads in put_aio_ring_file

2016-09-14 Thread Rasmus Villemoes
Using a local variable we can prevent gcc from reloading aio_ring_file->f_inode->i_mapping twice, eliminating 2x2 dependent loads. Signed-off-by: Rasmus Villemoes --- fs/aio.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/aio.c b/fs/aio.c index

Re: [PATCH] random: Fix kernel panic due to system_wq use before init

2016-09-14 Thread Tejun Heo
Hello, On Wed, Sep 14, 2016 at 03:55:51PM -0400, Tejun Heo wrote: > We've used keventd_up() for this purpose and it hasn't been big enough > an issue as workqueue usages during earlyboot are very rare (only five > users right now). But, yeah, it's getting used a more and more and > there's no

Re: [PATCH] random: Fix kernel panic due to system_wq use before init

2016-09-14 Thread Tejun Heo
Hello, On Wed, Sep 14, 2016 at 03:55:51PM -0400, Tejun Heo wrote: > We've used keventd_up() for this purpose and it hasn't been big enough > an issue as workqueue usages during earlyboot are very rare (only five > users right now). But, yeah, it's getting used a more and more and > there's no

Re: [PATCH v2 1/3] syscalls,x86 Expose arch_prctl on x86-32.

2016-09-14 Thread kbuild test robot
Hi Kyle, [auto build test WARNING on linus/master] [also build test WARNING on v4.8-rc6] [cannot apply to tip/x86/core next-20160914] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --b

Re: [PATCH v2 1/3] syscalls,x86 Expose arch_prctl on x86-32.

2016-09-14 Thread kbuild test robot
Hi Kyle, [auto build test WARNING on linus/master] [also build test WARNING on v4.8-rc6] [cannot apply to tip/x86/core next-20160914] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --b

Re: [PATCH 4.4 000/192] 4.4.21-stable review

2016-09-14 Thread Ben Hutchings
On Mon, 2016-09-12 at 18:58 +0200, Greg Kroah-Hartman wrote: > Many thanks for the majority of these patches to Sasha Levin, who dug > them out of Canonical's 4.4 kernel tree. I have no idea why they never > sent them in for inclusion on their own :( > > This is the start of the stable review

Re: [PATCH 4.4 000/192] 4.4.21-stable review

2016-09-14 Thread Ben Hutchings
On Mon, 2016-09-12 at 18:58 +0200, Greg Kroah-Hartman wrote: > Many thanks for the majority of these patches to Sasha Levin, who dug > them out of Canonical's 4.4 kernel tree. I have no idea why they never > sent them in for inclusion on their own :( > > This is the start of the stable review

Re: [GIT PULL] ARM: at91: drivers for 4.9

2016-09-14 Thread Arnd Bergmann
On Wednesday, September 14, 2016 10:40:54 AM CEST Alexandre Belloni wrote: > Drivers for 4.9: > - Coccinelle fixes for atmel-ebi and atmel-sdramc > Pulled into next/drivers, thanks! Arnd

Re: [GIT PULL] ARM: at91: drivers for 4.9

2016-09-14 Thread Arnd Bergmann
On Wednesday, September 14, 2016 10:40:54 AM CEST Alexandre Belloni wrote: > Drivers for 4.9: > - Coccinelle fixes for atmel-ebi and atmel-sdramc > Pulled into next/drivers, thanks! Arnd

Re: [PATCH 3/3] mm: memcontrol: consolidate cgroup socket tracking

2016-09-14 Thread Andrew Morton
On Thu, 15 Sep 2016 13:34:24 +0800 kbuild test robot <l...@intel.com> wrote: > Hi Johannes, > > [auto build test ERROR on net/master] > [also build test ERROR on v4.8-rc6 next-20160914] > [if your patch is applied to the wrong git tree, please drop us a note to >

Re: [PATCH 11/19] watchdog: st_wdt: Remove support for obsolete platforms

2016-09-14 Thread Guenter Roeck
On Wed, Sep 14, 2016 at 02:27:49PM +0100, Peter Griffin wrote: > STiH415/6 SoC support is being removed from the kernel. > This patch updates the watchdog driver to remove references > to these obsolete platforms. > > Signed-off-by: Peter Griffin > Cc:

Re: [PATCH 11/19] watchdog: st_wdt: Remove support for obsolete platforms

2016-09-14 Thread Guenter Roeck
On Wed, Sep 14, 2016 at 02:27:49PM +0100, Peter Griffin wrote: > STiH415/6 SoC support is being removed from the kernel. > This patch updates the watchdog driver to remove references > to these obsolete platforms. > > Signed-off-by: Peter Griffin > Cc: > Cc: > Cc: Reviewed-by: Guenter Roeck

Re: [PATCH 3/3] mm: memcontrol: consolidate cgroup socket tracking

2016-09-14 Thread Andrew Morton
On Thu, 15 Sep 2016 13:34:24 +0800 kbuild test robot wrote: > Hi Johannes, > > [auto build test ERROR on net/master] > [also build test ERROR on v4.8-rc6 next-20160914] > [if your patch is applied to the wrong git tree, please drop us a note to > help improve the system] >

Re: [PATCH v2) posix-timers: make it configurable

2016-09-14 Thread Josh Triplett
On Wed, Sep 14, 2016 at 05:09:53PM -0400, Nicolas Pitre wrote: > On Wed, 14 Sep 2016, Josh Triplett wrote: > > > On Wed, Sep 14, 2016 at 04:46:54PM -0400, Nicolas Pitre wrote: > > > Many embedded systems typically don't need them. This removes about > > > 22KB from the kernel binary size on ARM

Re: [PATCH v2) posix-timers: make it configurable

2016-09-14 Thread Josh Triplett
On Wed, Sep 14, 2016 at 05:09:53PM -0400, Nicolas Pitre wrote: > On Wed, 14 Sep 2016, Josh Triplett wrote: > > > On Wed, Sep 14, 2016 at 04:46:54PM -0400, Nicolas Pitre wrote: > > > Many embedded systems typically don't need them. This removes about > > > 22KB from the kernel binary size on ARM

Re: [RFC v3 19/22] landlock: Add interrupted origin

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 20:29, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 12:24 AM, Mickaël Salaün wrote: >> This third origin of hook call should cover all possible trigger paths >> (e.g. page fault). Landlock eBPF programs can then take decisions >> accordingly. >> >>

Re: [RFC v3 19/22] landlock: Add interrupted origin

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 20:29, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 12:24 AM, Mickaël Salaün wrote: >> This third origin of hook call should cover all possible trigger paths >> (e.g. page fault). Landlock eBPF programs can then take decisions >> accordingly. >> >> Signed-off-by: Mickaël Salaün

Re: [PATCH 10/19] watchdog: bindings: Remove obsolete platforms from dt doc.

2016-09-14 Thread Guenter Roeck
On Wed, Sep 14, 2016 at 02:27:48PM +0100, Peter Griffin wrote: > STiH415/6 SoC support is being removed from the kernel > so update the dt bding document to reflect this. > > Signed-off-by: Peter Griffin > Cc: > Cc: > Cc:

[PATCH] fs/internal.h: add const to ns_dentry_operations declaration

2016-09-14 Thread Rasmus Villemoes
The actual definition in fs/nsfs.c is already const. Signed-off-by: Rasmus Villemoes --- Maybe fs/nsfs.c (and fs/buffer.c) should grow includes of internal.h. I think they are the only two providing stuff declared there but not including it. fs/internal.h | 2 +- 1

[PATCH] fs/internal.h: add const to ns_dentry_operations declaration

2016-09-14 Thread Rasmus Villemoes
The actual definition in fs/nsfs.c is already const. Signed-off-by: Rasmus Villemoes --- Maybe fs/nsfs.c (and fs/buffer.c) should grow includes of internal.h. I think they are the only two providing stuff declared there but not including it. fs/internal.h | 2 +- 1 file changed, 1

Re: [PATCH 10/19] watchdog: bindings: Remove obsolete platforms from dt doc.

2016-09-14 Thread Guenter Roeck
On Wed, Sep 14, 2016 at 02:27:48PM +0100, Peter Griffin wrote: > STiH415/6 SoC support is being removed from the kernel > so update the dt bding document to reflect this. > > Signed-off-by: Peter Griffin > Cc: > Cc: > Cc: > Cc: Reviewed-by: Guenter Roeck > --- >

Re: [PATCH] random: Fix kernel panic due to system_wq use before init

2016-09-14 Thread Waiman Long
On 09/14/2016 05:06 PM, Linus Torvalds wrote: On Wed, Sep 14, 2016 at 12:34 PM, Waiman Long wrote: I can try, but the 16-socket system that I have at the moment takes a long time (more than an hour) for one shutdown-reboot cycle. It may not be really more interrupts in

Re: [PATCH] random: Fix kernel panic due to system_wq use before init

2016-09-14 Thread Waiman Long
On 09/14/2016 05:06 PM, Linus Torvalds wrote: On Wed, Sep 14, 2016 at 12:34 PM, Waiman Long wrote: I can try, but the 16-socket system that I have at the moment takes a long time (more than an hour) for one shutdown-reboot cycle. It may not be really more interrupts in 4.8, it may be that the

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 20:27, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 12:24 AM, Mickaël Salaün wrote: >> Add a new flag CGRP_NO_NEW_PRIVS for each cgroup. This flag is initially >> set for all cgroup except the root. The flag is clear when a new process >> without the

Re: [RFC v3 18/22] cgroup,landlock: Add CGRP_NO_NEW_PRIVS to handle unprivileged hooks

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 20:27, Andy Lutomirski wrote: > On Wed, Sep 14, 2016 at 12:24 AM, Mickaël Salaün wrote: >> Add a new flag CGRP_NO_NEW_PRIVS for each cgroup. This flag is initially >> set for all cgroup except the root. The flag is clear when a new process >> without the no_new_privs flags is

Re: [PATCH] sparse: Track the boundaries of memory sections for accurate checks

2016-09-14 Thread Raslan, KarimAllah
Ahmed, Karim Allah karah...@amazon.de > On Sep 15, 2016, at 12:05 AM, Dan Williams wrote: > > On Wed, Sep 14, 2016 at 2:40 PM, Raslan, KarimAllah > wrote: >> >> >> On 6/20/16, 10:23 AM, "Michal Hocko" wrote: >> >>On

Re: [PATCH] sparse: Track the boundaries of memory sections for accurate checks

2016-09-14 Thread Raslan, KarimAllah
Ahmed, Karim Allah karah...@amazon.de > On Sep 15, 2016, at 12:05 AM, Dan Williams wrote: > > On Wed, Sep 14, 2016 at 2:40 PM, Raslan, KarimAllah > wrote: >> >> >> On 6/20/16, 10:23 AM, "Michal Hocko" wrote: >> >>On Sat 18-06-16 12:11:19, KarimAllah Ahmed wrote: >>> When sparse

Re: [RESEND][PATCH v2 1/3] syscalls,x86 Expose arch_prctl on x86-32.

2016-09-14 Thread Kyle Huey
On Wed, Sep 14, 2016 at 2:59 PM, Dmitry Safonov <0x7f454...@gmail.com> wrote: > 2016-09-15 0:08 GMT+03:00 Kyle Huey : >> Signed-off-by: Kyle Huey >> --- >> arch/x86/entry/syscalls/syscall_32.tbl | 1 + >> arch/x86/kernel/process.c | 80 >>

Re: [PATCH v2] arm64: defconfig: enable common modules for power management

2016-09-14 Thread Arnd Bergmann
On Thursday, September 8, 2016 11:20:35 AM CEST Will Deacon wrote: > Hi Arnd, > > On Thu, Sep 01, 2016 at 09:33:38AM +0200, Arnd Bergmann wrote: > > On Thursday, September 1, 2016 12:51:09 PM CEST Leo Yan wrote: > > > Enable common modules for power management; one is to enable > > > CPUFREQ_DT

Re: [RESEND][PATCH v2 1/3] syscalls,x86 Expose arch_prctl on x86-32.

2016-09-14 Thread Kyle Huey
On Wed, Sep 14, 2016 at 2:59 PM, Dmitry Safonov <0x7f454...@gmail.com> wrote: > 2016-09-15 0:08 GMT+03:00 Kyle Huey : >> Signed-off-by: Kyle Huey >> --- >> arch/x86/entry/syscalls/syscall_32.tbl | 1 + >> arch/x86/kernel/process.c | 80 >> ++ >>

Re: [PATCH v2] arm64: defconfig: enable common modules for power management

2016-09-14 Thread Arnd Bergmann
On Thursday, September 8, 2016 11:20:35 AM CEST Will Deacon wrote: > Hi Arnd, > > On Thu, Sep 01, 2016 at 09:33:38AM +0200, Arnd Bergmann wrote: > > On Thursday, September 1, 2016 12:51:09 PM CEST Leo Yan wrote: > > > Enable common modules for power management; one is to enable > > > CPUFREQ_DT

Re: [RFC v3 17/22] cgroup: Add access check for cgroup_get_from_fd()

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 09:24, Mickaël Salaün wrote: > Add security access check for cgroup backed FD. The "cgroup.procs" file > of the corresponding cgroup must be readable to identify the cgroup, and > writable to prove that the current process can manage this cgroup (e.g. > through delegation). This is

Re: [RFC v3 17/22] cgroup: Add access check for cgroup_get_from_fd()

2016-09-14 Thread Mickaël Salaün
On 14/09/2016 09:24, Mickaël Salaün wrote: > Add security access check for cgroup backed FD. The "cgroup.procs" file > of the corresponding cgroup must be readable to identify the cgroup, and > writable to prove that the current process can manage this cgroup (e.g. > through delegation). This is

Re: [PATCH] sparse: Track the boundaries of memory sections for accurate checks

2016-09-14 Thread Dan Williams
On Wed, Sep 14, 2016 at 2:40 PM, Raslan, KarimAllah wrote: > > > On 6/20/16, 10:23 AM, "Michal Hocko" wrote: > > On Sat 18-06-16 12:11:19, KarimAllah Ahmed wrote: > > When sparse memory model is used an array of memory sections is created > to >

Re: [PATCH] sparse: Track the boundaries of memory sections for accurate checks

2016-09-14 Thread Dan Williams
On Wed, Sep 14, 2016 at 2:40 PM, Raslan, KarimAllah wrote: > > > On 6/20/16, 10:23 AM, "Michal Hocko" wrote: > > On Sat 18-06-16 12:11:19, KarimAllah Ahmed wrote: > > When sparse memory model is used an array of memory sections is created > to > > track each block of contiguous

Re: [PATCH v2 2/3] x86 Test and expose CPUID faulting capabilities in /proc/cpuinfo

2016-09-14 Thread Kyle Huey
On Wed, Sep 14, 2016 at 2:35 PM, Dave Hansen wrote: > On 09/14/2016 02:01 PM, Kyle Huey wrote: >> Xen advertises the underlying support for CPUID faulting but not does pass >> through writes to the relevant MSR, nor does it virtualize it, so it does >> not actually

Re: [PATCH v2 2/3] x86 Test and expose CPUID faulting capabilities in /proc/cpuinfo

2016-09-14 Thread Kyle Huey
On Wed, Sep 14, 2016 at 2:35 PM, Dave Hansen wrote: > On 09/14/2016 02:01 PM, Kyle Huey wrote: >> Xen advertises the underlying support for CPUID faulting but not does pass >> through writes to the relevant MSR, nor does it virtualize it, so it does >> not actually work. For now mask off the

[PATCH] mm/shmem.c: constify anon_ops

2016-09-14 Thread Rasmus Villemoes
Every other dentry_operations instance is const, and this one might as well be. Signed-off-by: Rasmus Villemoes --- mm/shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/shmem.c b/mm/shmem.c index fd8b2b5741b1..693ffdc5899a 100644 ---

[PATCH] mm/shmem.c: constify anon_ops

2016-09-14 Thread Rasmus Villemoes
Every other dentry_operations instance is const, and this one might as well be. Signed-off-by: Rasmus Villemoes --- mm/shmem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/shmem.c b/mm/shmem.c index fd8b2b5741b1..693ffdc5899a 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@

<    1   2   3   4   5   6   7   8   9   10   >