Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Theodore Ts'o
On Tue, May 14, 2019 at 05:26:47PM -0700, Frank Rowand wrote: > On 5/11/19 10:33 AM, Theodore Ts'o wrote: > > On Fri, May 10, 2019 at 02:12:40PM -0700, Frank Rowand wrote: > >> However, the reply is incorrect. Kselftest in-kernel tests (which > >> is the context here) can be configured as built in

Re: [PATCH v3 0/2] ftpm: a firmware based TPM driver

2019-05-14 Thread Sumit Garg
On Wed, 15 May 2019 at 01:00, Sasha Levin wrote: > > On Wed, May 08, 2019 at 03:44:36PM +0300, Jarkko Sakkinen wrote: > >On Tue, May 07, 2019 at 01:40:20PM -0400, Sasha Levin wrote: > >> On Mon, Apr 15, 2019 at 11:56:34AM -0400, Sasha Levin wrote: > >> > From: "Sasha Levin (Microsoft)" > >> > > >

[PATCH v4 3/9] docs: filesystems: vfs: Use 72 character column width

2019-05-14 Thread Tobin C. Harding
In preparation for conversion to RST format use the kernels favoured documentation column width. If we are going to do this we might as well do it thoroughly. Just do the paragraphs (not the indented stuff), the rest will be done during indentation fix up patch. This patch is whitespace only, no

[PATCH v4 6/9] docs: filesystems: vfs: Use SPDX identifier

2019-05-14 Thread Tobin C. Harding
Currently the licence is indicated via a custom string. We have SPDX license identifiers now for this task. Use SPDX license identifier matching current license string. Tested-by: Randy Dunlap Signed-off-by: Tobin C. Harding --- Documentation/filesystems/vfs.txt | 4 ++-- 1 file changed, 2 in

[PATCH v4 7/9] docs: filesystems: vfs: Fix pre-amble indentation

2019-05-14 Thread Tobin C. Harding
Currently file pre-amble contains custom indentation. RST is not going to like this, lets left-align the text. Put the copyright notices in a list in preparation for converting document to RST. Tested-by: Randy Dunlap Signed-off-by: Tobin C. Harding --- Documentation/filesystems/vfs.txt | 8 +

[PATCH v4 5/9] docs: filesystems: vfs: Use correct initial heading

2019-05-14 Thread Tobin C. Harding
Kernel RST has a preferred heading adornment scheme. Currently all the heading adornments follow this scheme except the document heading. Use correct heading adornment for initial heading. Tested-by: Randy Dunlap Signed-off-by: Tobin C. Harding --- Documentation/filesystems/vfs.txt | 5 +++--

[PATCH v4 9/9] docs: filesystems: vfs: Convert vfs.txt to RST

2019-05-14 Thread Tobin C. Harding
vfs.txt is currently stale. If we convert it to RST this is a good first step in the process of getting the VFS documentation up to date. This patch does the following (all as a single patch so as not to introduce any new SPHINX build warnings) - Use '.. code-block:: c' for C code blocks and in

[PATCH v4 2/9] docs: filesystems: vfs: Use uniform space after period.

2019-05-14 Thread Tobin C. Harding
Currently sometimes document has a single space after a period and sometimes it has double. Whichever we use it should be uniform. Use double space after period, be uniform. Tested-by: Randy Dunlap Signed-off-by: Tobin C. Harding --- Documentation/filesystems/vfs.txt | 246 +++

[PATCH v4 4/9] docs: filesystems: vfs: Use uniform spacing around headings

2019-05-14 Thread Tobin C. Harding
Currently spacing before and after headings is non-uniform. Use two blank lines before a heading and one after the heading. Use uniform spacing around headings. Tested-by: Randy Dunlap Signed-off-by: Tobin C. Harding --- Documentation/filesystems/vfs.txt | 9 + 1 file changed, 9 inser

[PATCH v4 8/9] docs: filesystems: vfs: Convert spaces to tabs

2019-05-14 Thread Tobin C. Harding
There are bunch of places with 8 spaces, in preparation for correctly indenting all code snippets (during conversion to RST) change these to use tabspaces. This patch is whitespace only. Convert instances of 8 consecutive spaces to a single tabspace. Signed-off-by: Tobin C. Harding --- Documen

[PATCH v4 1/9] docs: filesystems: vfs: Remove space before tab

2019-05-14 Thread Tobin C. Harding
Currently the file has a bunch of spaces before tabspaces. This is a nuisance when patching the file because they show up whenever we touch these lines. Let's just fix them all now in preparation for doing the RST conversion. Remove spaces before tabspaces. Tested-by: Randy Dunlap Signed-off-b

[PATCH v4 0/9] docs: Convert VFS doc to RST

2019-05-14 Thread Tobin C. Harding
Hi Jon, Here is an updated version of the VFS doc conversion. This series in no way represents a final point for the VFS documentation rather it is a small step towards getting VFS docs updated. This series does not update the content of vfs.txt, only does formatting. Testing: the following pro

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Frank Rowand
On 5/11/19 10:33 AM, Theodore Ts'o wrote: > On Fri, May 10, 2019 at 02:12:40PM -0700, Frank Rowand wrote: >> However, the reply is incorrect. Kselftest in-kernel tests (which >> is the context here) can be configured as built in instead of as >> a module, and built in a UML kernel. The UML kernel

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Logan Gunthorpe
On 2019-05-14 6:14 p.m., Frank Rowand wrote: > The high level issue is to provide reviewers with enough context to be > able to evaluate the patch series. That is probably not very obvious > at this point in the thread. At this point I was responding to Logan's > response to me that I should b

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Frank Rowand
On 5/14/19 1:38 AM, Brendan Higgins wrote: > On Fri, May 10, 2019 at 03:13:40PM -0700, Frank Rowand wrote: >> On 5/10/19 9:17 AM, Logan Gunthorpe wrote: >>> >>> >>> On 2019-05-09 11:18 p.m., Frank Rowand wrote: >>> YES, kselftest has in-kernel tests. (Excuse the shouting...) >>> >>> Cool. Fro

Re: [LTP] [EXT] Re: [PATCH v9 00/24] ILP32 for ARM64

2019-05-14 Thread Yury Norov
On Tue, May 14, 2019 at 12:43:11PM +0200, Cyril Hrubis wrote: > Hi! > > > There is a problem with the stack size accounting during execve when > > > there is no stack limit: > > > > > > $ ulimit -s > > > 8192 > > > $ ./hello.ilp32 > > > Hello World! > > > $ ulimit -s unlimited > > > $ ./hello.ilp3

Re: [PATCH v4 16/18] MAINTAINERS: add entry for KUnit the unit testing framework

2019-05-14 Thread Brendan Higgins
On Tue, May 14, 2019 at 03:17:09PM -0700, Brendan Higgins wrote: > Add myself as maintainer of KUnit, the Linux kernel's unit testing > framework. > > Signed-off-by: Brendan Higgins > Reviewed-by: Greg Kroah-Hartman > Reviewed-by: Logan Gunthorpe > --- > MAINTAINERS | 11 +++ > 1 file

Re: [PATCH v3 15/18] Documentation: kunit: add documentation for KUnit

2019-05-14 Thread Brendan Higgins
On Tue, May 14, 2019 at 12:16:23PM -0600, Jonathan Corbet wrote: > On Tue, 14 May 2019 11:08:10 -0700 > Brendan Higgins wrote: > > > > Naturally, though, I have one request: I'd rather not see this at the top > > > level, which is more than crowded enough as it is. Can this material > > > please

Re: [LTP] [EXT] Re: [PATCH v9 00/24] ILP32 for ARM64

2019-05-14 Thread Yury Norov
On Tue, May 14, 2019 at 12:43:11PM +0200, Cyril Hrubis wrote: > Hi! > > > There is a problem with the stack size accounting during execve when > > > there is no stack limit: > > > > > > $ ulimit -s > > > 8192 > > > $ ./hello.ilp32 > > > Hello World! > > > $ ulimit -s unlimited > > > $ ./hello.ilp3

[PATCH 1/2] dt-bindings: hwmon: Add DT bindings for TI ads1000/ads1100 ADCs

2019-05-14 Thread Serge Semin
Add dt-binding documentation for the Texas Instruments ads1000/ads1100 ADCs driver. Signed-off-by: Serge Semin --- .../devicetree/bindings/hwmon/ads1000.txt | 61 Documentation/hwmon/ads1000.rst | 72 +++ 2 files changed, 133 insertions(+) crea

[PATCH v4 13/18] kunit: tool: add Python wrappers for running KUnit tests

2019-05-14 Thread Brendan Higgins
From: Felix Guo The ultimate goal is to create minimal isolated test binaries; in the meantime we are using UML to provide the infrastructure to run tests, so define an abstract way to configure and run tests that allow us to change the context in which tests are built without affecting the user.

[PATCH v4 15/18] Documentation: kunit: add documentation for KUnit

2019-05-14 Thread Brendan Higgins
Add documentation for KUnit, the Linux kernel unit testing framework. - Add intro and usage guide for KUnit - Add API reference Signed-off-by: Felix Guo Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- Documentation/dev-tools/index.rst

[PATCH v4 16/18] MAINTAINERS: add entry for KUnit the unit testing framework

2019-05-14 Thread Brendan Higgins
Add myself as maintainer of KUnit, the Linux kernel's unit testing framework. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 2c2fce72e69

[PATCH v4 14/18] kunit: defconfig: add defconfigs for building KUnit tests

2019-05-14 Thread Brendan Higgins
Add defconfig for UML and a fragment that can be used to configure other architectures for building KUnit tests. Add option to kunit_tool to use a defconfig to create the kunitconfig. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- arch/um/config

[PATCH v4 18/18] MAINTAINERS: add proc sysctl KUnit test to PROC SYSCTL section

2019-05-14 Thread Brendan Higgins
Add entry for the new proc sysctl KUnit test to the PROC SYSCTL section. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 8a91887c8d541..2e539647589fd

[PATCH v4 10/18] kunit: test: add tests for kunit test abort

2019-05-14 Thread Brendan Higgins
Add KUnit tests for the KUnit test abort mechanism (see preceding commit). Add tests both for general try catch mechanism as well as non-architecture specific mechanism. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- kunit/Makefile| 3 +-

[PATCH v4 17/18] kernel/sysctl-test: Add null pointer test for sysctl.c:proc_dointvec()

2019-05-14 Thread Brendan Higgins
From: Iurii Zaikin KUnit tests for initialized data behavior of proc_dointvec that is explicitly checked in the code. Includes basic parsing tests including int min/max overflow. Signed-off-by: Iurii Zaikin Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunt

[PATCH v4 09/18] kunit: test: add support for test abort

2019-05-14 Thread Brendan Higgins
Add support for aborting/bailing out of test cases, which is needed for implementing assertions. An assertion is like an expectation, but bails out of the test case early if the assertion is not met. The idea with assertions is that you use them to state all the preconditions for your test. Logica

[PATCH v4 11/18] kunit: test: add the concept of assertions

2019-05-14 Thread Brendan Higgins
Add support for assertions which are like expectations except the test terminates if the assertion is not satisfied. The idea with assertions is that you use them to state all the preconditions for your test. Logically speaking, these are the premises of the test case, so if a premise isn't true,

[PATCH v4 07/18] kunit: test: add initial tests

2019-05-14 Thread Brendan Higgins
Add a test for string stream along with a simpler example. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- kunit/Kconfig | 25 ++- kunit/Makefile | 4 ++ kunit/example-test.c | 88 ++

[PATCH v4 04/18] kunit: test: add kunit_stream a std::stream like logger

2019-05-14 Thread Brendan Higgins
A lot of the expectation and assertion infrastructure prints out fairly complicated test failure messages, so add a C++ style log library for for logging test results. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- include/kunit/kunit-stream.h |

[PATCH v4 06/18] kbuild: enable building KUnit

2019-05-14 Thread Brendan Higgins
KUnit is a new unit testing framework for the kernel and when used is built into the kernel as a part of it. Add KUnit to the root Kconfig and Makefile to allow it to be actually built. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- Kconfig | 2

[PATCH v4 12/18] kunit: test: add tests for KUnit managed resources

2019-05-14 Thread Brendan Higgins
From: Avinash Kondareddy Add unit tests for KUnit managed resources. KUnit managed resources (struct kunit_resource) are resources that are automatically cleaned up at the end of a KUnit test, similar to the concept of devm_* managed resources. Signed-off-by: Avinash Kondareddy Signed-off-by: B

[PATCH v4 08/18] objtool: add kunit_try_catch_throw to the noreturn list

2019-05-14 Thread Brendan Higgins
Fix the following warning seen on GCC 7.3: kunit/test-test.o: warning: objtool: kunit_test_unsuccessful_try() falls through to next function kunit_test_catch() kunit_try_catch_throw is a function added in the following patch in this series; it allows KUnit, a unit testing framework for the kern

[PATCH v4 05/18] kunit: test: add the concept of expectations

2019-05-14 Thread Brendan Higgins
Add support for expectations, which allow properties to be specified and then verified in tests. Signed-off-by: Brendan Higgins Reviewed-by: Greg Kroah-Hartman Reviewed-by: Logan Gunthorpe --- include/kunit/test.h | 518 +++ kunit/test.c | 66 ++

[PATCH v4 03/18] kunit: test: add string_stream a std::stream like string builder

2019-05-14 Thread Brendan Higgins
A number of test features need to do pretty complicated string printing where it may not be possible to rely on a single preallocated string with parameters. So provide a library for constructing the string as you go similar to C++'s std::string. Signed-off-by: Brendan Higgins Reviewed-by: Greg

[PATCH v4 02/18] kunit: test: add test resource management API

2019-05-14 Thread Brendan Higgins
Create a common API for test managed resources like memory and test objects. A lot of times a test will want to set up infrastructure to be used in test cases; this could be anything from just wanting to allocate some memory to setting up a driver stack; this defines facilities for creating "test r

[PATCH v4 01/18] kunit: test: add KUnit test runner core

2019-05-14 Thread Brendan Higgins
Add core facilities for defining unit tests; this provides a common way to define test cases, functions that execute code which is under test and determine whether the code under test behaves as expected; this also provides a way to group together related test cases in test suites (here we call the

[PATCH v4 00/18] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Brendan Higgins
## TLDR A quick follow up to yesterday's revision. I got some feedback that I wanted to incorporate before anyone else read the update. For this reason, I will leave a TLDR of the biggest changes since v2. Biggest things to look out for (since v2): - KUnit core now outputs results in TAP14. - He

Re: [PATCH] doc/rcu: Correct field_count field naming in examples

2019-05-14 Thread Paul E. McKenney
On Sun, May 12, 2019 at 11:43:05PM -0400, Joel Fernandes wrote: > On Wed, May 08, 2019 at 11:16:38AM -0700, Paul E. McKenney wrote: > [snip] > > > The other example could be dentry look up which uses seqlocks for the > > > RCU-walk case? But that could be too complex. This is also something I > >

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Brendan Higgins
On Fri, May 10, 2019 at 02:52:59PM -0700, Frank Rowand wrote: Sorry, I forgot to get back to this thread. > On 5/9/19 3:20 PM, Logan Gunthorpe wrote: > > > > > > On 2019-05-09 3:42 p.m., Theodore Ts'o wrote: > >> On Thu, May 09, 2019 at 11:12:12AM -0700, Frank Rowand wrote: > >>> > >>>     "My

Re: [PATCH v3 0/2] ftpm: a firmware based TPM driver

2019-05-14 Thread Sasha Levin
On Wed, May 08, 2019 at 03:44:36PM +0300, Jarkko Sakkinen wrote: On Tue, May 07, 2019 at 01:40:20PM -0400, Sasha Levin wrote: On Mon, Apr 15, 2019 at 11:56:34AM -0400, Sasha Levin wrote: > From: "Sasha Levin (Microsoft)" > > Changes since v2: > > - Drop the devicetree bindings patch (we don't a

Re: [PATCH v2] doc: kernel-parameters.txt: fix documentation of nmi_watchdog parameter

2019-05-14 Thread Steven Rostedt
On Sun, 12 May 2019 11:35:27 +0800 Zhenzhong Duan wrote: > The default behavior of hardlockup depends on the config of > CONFIG_BOOTPARAM_HARDLOCKUP_PANIC. > > Fix the description of nmi_watchdog to make it clear. > > Signed-off-by: Zhenzhong Duan > Reviewed-by: Joel Fernandes (Google) > Cc:

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Brendan Higgins
On Tue, May 14, 2019 at 02:05:05PM +0200, Daniel Vetter wrote: > On Tue, May 14, 2019 at 8:04 AM Brendan Higgins > wrote: > > > > On Mon, May 13, 2019 at 04:44:51PM +0200, Daniel Vetter wrote: > > > On Sat, May 11, 2019 at 01:33:44PM -0400, Theodore Ts'o wrote: > > > > On Fri, May 10, 2019 at 02:1

Re: [PATCH v3 15/18] Documentation: kunit: add documentation for KUnit

2019-05-14 Thread Jonathan Corbet
On Tue, 14 May 2019 11:08:10 -0700 Brendan Higgins wrote: > > Naturally, though, I have one request: I'd rather not see this at the top > > level, which is more than crowded enough as it is. Can this material > > please go into the development tools book, alongside the kselftest > > documentatio

Re: [PATCH v3 08/18] objtool: add kunit_try_catch_throw to the noreturn list

2019-05-14 Thread Brendan Higgins
On Tue, May 14, 2019 at 10:46:55AM +0200, Peter Zijlstra wrote: > On Tue, May 14, 2019 at 01:12:23AM -0700, Brendan Higgins wrote: > > On Tue, May 14, 2019 at 08:56:43AM +0200, Peter Zijlstra wrote: > > > On Mon, May 13, 2019 at 10:42:42PM -0700, Brendan Higgins wrote: > > > > This fixes the follow

Re: [PATCH v3 15/18] Documentation: kunit: add documentation for KUnit

2019-05-14 Thread Brendan Higgins
On Tue, May 14, 2019 at 07:34:22AM -0600, Jonathan Corbet wrote: > On Mon, 13 May 2019 22:42:49 -0700 > Brendan Higgins wrote: > > > Add documentation for KUnit, the Linux kernel unit testing framework. > > - Add intro and usage guide for KUnit > > - Add API reference > > > > Signed-off-by: Feli

[PATCH] thermal: make thermal_cooling_device_register accepts const string

2019-05-14 Thread Wei Wang
Change the argument similarly to thermal_zone_device_register. This will help register names get from of_property_read_string during probe. Signed-off-by: Wei Wang --- Documentation/thermal/sysfs-api.txt | 7 --- drivers/thermal/thermal_core.c | 6 +++--- include/linux/thermal.h

[PATCH] Documentation: kdump: fix minor typo

2019-05-14 Thread Cengiz Can
kdump.txt had a minor typo. Signed-off-by: Cengiz Can --- Documentation/kdump/kdump.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/kdump/kdump.txt b/Documentation/kdump/kdump.txt index 51814450a7f8..3162eeb8c262 100644 --- a/Documentation/kdump/kdump.txt ++

[PATCH v6 03/12] Documentation: PCI: convert PCIEBUS-HOWTO.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{PCIEBUS-HOWTO.

[PATCH v6 08/12] Documentation: PCI: convert pcieaer-howto.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{pcieaer-howto.

[PATCH v6 09/12] Documentation: PCI: convert endpoint/pci-endpoint.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 10 ++ .../{pci-endpoint.t

[PATCH v6 11/12] Documentation: PCI: convert endpoint/pci-test-function.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 1 + ...est-function.txt

[PATCH v6 05/12] Documentation: PCI: convert MSI-HOWTO.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- v2: o drop numbering. o simplify author list --- Documentation/PCI/ind

[PATCH v6 06/12] Documentation: PCI: convert acpi-info.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Cc: Mauro Carvalho Chehab --- .../PCI/{acpi-info.txt => acpi-info.rst} | 15 ++- Documentati

[PATCH v6 10/12] Documentation: PCI: convert endpoint/pci-endpoint-cfs.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 1 + ...-endpoint-cfs.txt

[PATCH v6 12/12] Documentation: PCI: convert endpoint/pci-test-howto.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/endpoint/index.rst | 1 + ...{pci-test-howto.t

[PATCH v6 00/12] Include linux PCI docs into Sphinx TOC tree

2019-05-14 Thread Changbin Du
Hi all, The kernel now uses Sphinx to generate intelligent and beautiful documentation from reStructuredText files. I converted most of the Linux PCI docs to rst format in this serias. For you to preview, please visit below url: http://www.bytemem.com:8080/kernel-doc/PCI/index.html Thank you! v

[PATCH v6 02/12] Documentation: PCI: convert pci.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. The description about struct pci_driver and struct pci_device_id are moved into in-source comments. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: M

[PATCH v6 01/12] Documentation: add Linux PCI to Sphinx TOC tree

2019-05-14 Thread Changbin Du
Add a index.rst for PCI subsystem. More docs will be added later. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas --- Documentation/PCI/index.rst | 9 + Documentation/index.rst | 1 + 2 files changed, 10 insertions(+) create mode 100644 Documentation/PCI/index.rst diff --git a/

[PATCH v6 07/12] Documentation: PCI: convert pci-error-recovery.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + ...or-recovery.txt

[PATCH v6 04/12] Documentation: PCI: convert pci-iov-howto.txt to reST

2019-05-14 Thread Changbin Du
This converts the plain text documentation to reStructuredText format and add it to Sphinx TOC tree. No essential content change. Signed-off-by: Changbin Du Acked-by: Bjorn Helgaas Reviewed-by: Mauro Carvalho Chehab --- Documentation/PCI/index.rst | 1 + .../{pci-iov-howto.

Re: [PATCH v5 11/12] Documentation: PCI: convert endpoint/pci-test-function.txt to reST

2019-05-14 Thread Changbin Du
On Mon, May 13, 2019 at 12:04:23PM -0300, Mauro Carvalho Chehab wrote: > Em Mon, 13 May 2019 22:19:59 +0800 > Changbin Du escreveu: > > > This converts the plain text documentation to reStructuredText format and > > add it to Sphinx TOC tree. No essential content change. > > > > Signed-off-by: C

Re: [PATCH v5 09/12] Documentation: PCI: convert endpoint/pci-endpoint.txt to reST

2019-05-14 Thread Changbin Du
On Mon, May 13, 2019 at 12:01:54PM -0300, Mauro Carvalho Chehab wrote: > Em Mon, 13 May 2019 22:19:57 +0800 > Changbin Du escreveu: > > > This converts the plain text documentation to reStructuredText format and > > add it to Sphinx TOC tree. No essential content change. > > > > Signed-off-by: C

Re: [PATCH 3/3] LICENSES: Rename other to deprecated

2019-05-14 Thread Borislav Petkov
On Tue, May 14, 2019 at 03:49:43PM +0200, Christoph Hellwig wrote: > On Tue, May 14, 2019 at 12:26:32PM +0200, Borislav Petkov wrote: > > This breaks scripts/spdxcheck.py, it needs below hunk. Also, should > > "dual" be added to license_dirs too? > > Yes. In fact two people already submitted patc

Re: [PATCH 3/3] LICENSES: Rename other to deprecated

2019-05-14 Thread Christoph Hellwig
On Tue, May 14, 2019 at 12:26:32PM +0200, Borislav Petkov wrote: > This breaks scripts/spdxcheck.py, it needs below hunk. Also, should > "dual" be added to license_dirs too? Yes. In fact two people already submitted patches for that before you, just waiting for them to get picked up.

Re: [PATCH v3 15/18] Documentation: kunit: add documentation for KUnit

2019-05-14 Thread Jonathan Corbet
On Mon, 13 May 2019 22:42:49 -0700 Brendan Higgins wrote: > Add documentation for KUnit, the Linux kernel unit testing framework. > - Add intro and usage guide for KUnit > - Add API reference > > Signed-off-by: Felix Guo > Signed-off-by: Brendan Higgins > Reviewed-by: Greg Kroah-Hartman > Rev

Re: [PATCH v10 09/12] ima: Implement support for module-style appended signatures

2019-05-14 Thread Mimi Zohar
Hi Thiago, On Thu, 2019-04-18 at 00:51 -0300, Thiago Jung Bauermann wrote: > > @@ -326,6 +356,10 @@ int ima_appraise_measurement(enum ima_hooks func, > case INTEGRITY_UNKNOWN: > break; > case INTEGRITY_NOXATTRS:/* No EVM protected xattrs. */ > +

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Daniel Vetter
On Tue, May 14, 2019 at 8:04 AM Brendan Higgins wrote: > > On Mon, May 13, 2019 at 04:44:51PM +0200, Daniel Vetter wrote: > > On Sat, May 11, 2019 at 01:33:44PM -0400, Theodore Ts'o wrote: > > > On Fri, May 10, 2019 at 02:12:40PM -0700, Frank Rowand wrote: > > > > However, the reply is incorrect.

Re: [LTP] [EXT] Re: [PATCH v9 00/24] ILP32 for ARM64

2019-05-14 Thread Cyril Hrubis
Hi! > > There is a problem with the stack size accounting during execve when > > there is no stack limit: > > > > $ ulimit -s > > 8192 > > $ ./hello.ilp32 > > Hello World! > > $ ulimit -s unlimited > > $ ./hello.ilp32 > > Segmentation fault > > $ strace ./hello.ilp32 > > execve("./hello.ilp32",

Re: [PATCH 3/3] LICENSES: Rename other to deprecated

2019-05-14 Thread Borislav Petkov
On Tue, Apr 30, 2019 at 06:51:30AM -0400, Christoph Hellwig wrote: > Make it clear in the directory name that these are not intended for new > code. > > Signed-off-by: Christoph Hellwig > --- > Documentation/process/license-rules.rst | 8 > LICENSES/{other => deprecated}/GPL-1.0

Re: [PATCH v3 08/18] objtool: add kunit_try_catch_throw to the noreturn list

2019-05-14 Thread Peter Zijlstra
On Tue, May 14, 2019 at 01:12:23AM -0700, Brendan Higgins wrote: > On Tue, May 14, 2019 at 08:56:43AM +0200, Peter Zijlstra wrote: > > On Mon, May 13, 2019 at 10:42:42PM -0700, Brendan Higgins wrote: > > > This fixes the following warning seen on GCC 7.3: > > > kunit/test-test.o: warning: objtool

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Brendan Higgins
On Fri, May 10, 2019 at 03:13:40PM -0700, Frank Rowand wrote: > On 5/10/19 9:17 AM, Logan Gunthorpe wrote: > > > > > > On 2019-05-09 11:18 p.m., Frank Rowand wrote: > > > >> YES, kselftest has in-kernel tests. (Excuse the shouting...) > > > > Cool. From my cursory look, in my opinion, these wo

[PATCH] docs: reorder memory-hotplug documentation

2019-05-14 Thread Mike Rapoport
The "Locking Internals" section of the memory-hotplug documentation is duplicated in admin-guide and core-api. Drop the admin-guide copy as locking internals does not belong there. While on it, move the "Future Work" section to the core-api part. Signed-off-by: Mike Rapoport --- Documentation/a

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Brendan Higgins
On Wed, May 08, 2019 at 05:58:49PM -0700, Frank Rowand wrote: > Hi Ted, > > On 5/7/19 10:22 AM, Theodore Ts'o wrote: > > On Tue, May 07, 2019 at 10:01:19AM +0200, Greg KH wrote: > Not very helpful to cut the text here, plus not explicitly indicating that > text was cut (yes, I know the ">>>" will

Re: [PATCH v3 08/18] objtool: add kunit_try_catch_throw to the noreturn list

2019-05-14 Thread Brendan Higgins
On Tue, May 14, 2019 at 08:56:43AM +0200, Peter Zijlstra wrote: > On Mon, May 13, 2019 at 10:42:42PM -0700, Brendan Higgins wrote: > > This fixes the following warning seen on GCC 7.3: > > kunit/test-test.o: warning: objtool: kunit_test_unsuccessful_try() falls > > through to next function kunit

Re: [PATCH v2 00/17] kunit: introduce KUnit, the Linux kernel unit testing framework

2019-05-14 Thread Brendan Higgins
On Sat, May 11, 2019 at 08:43:23AM +0200, Knut Omang wrote: > On Fri, 2019-05-10 at 14:59 -0700, Frank Rowand wrote: > > On 5/10/19 3:23 AM, Brendan Higgins wrote: > > >> On Fri, May 10, 2019 at 7:49 AM Knut Omang wrote: > > >>> > > >>> On Thu, 2019-05-09 at 22:18 -0700, Frank Rowand wrote: > > >>

Re: [PATCH v2] doc: kernel-parameters.txt: fix documentation of nmi_watchdog parameter

2019-05-14 Thread Ingo Molnar
* Zhenzhong Duan wrote: > The default behavior of hardlockup depends on the config of > CONFIG_BOOTPARAM_HARDLOCKUP_PANIC. > > Fix the description of nmi_watchdog to make it clear. > > Signed-off-by: Zhenzhong Duan > Reviewed-by: Joel Fernandes (Google) > Cc: Steven Rostedt > --- > v2: fi