[PATCH 4/9] docs: Use reference to link to rst file

2019-03-07 Thread Tobin C. Harding
Current document includes the path to an RST doc file. Since this is an RST file we can make this a link. Keeps the path as the link title since that what the original author wrote. Use reference to link to rst file. Signed-off-by: Tobin C. Harding --- Documentation/vm/numa.rst | 4 ++-- 1

Re: [PATCH v3 0/7] lib/string: Add strscpy_pad() function

2019-03-07 Thread Tobin C. Harding
On Thu, Mar 07, 2019 at 08:49:34AM +1100, Tobin C. Harding wrote: > On Thu, Mar 07, 2019 at 08:42:19AM +1100, Tobin C. Harding wrote: > > Hi, > > Man, I didn't see the merge window was open, I thought rc8 only came out > on Sunday. > > Sorry, please ignore this. Wi

[RFC 01/15] slub: Create sysfs field /sys/slab//ops

2019-03-07 Thread Tobin C. Harding
: Christoph Lameter Signed-off-by: Tobin C. Harding --- mm/slub.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/mm/slub.c b/mm/slub.c index dc61b6b7..69164aa7cbbf 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -5009,13 +5009,18 @@ static ssize_t cpu_partial_store

[RFC 03/15] tools/vm/slabinfo: Add support for -C and -F options

2019-03-07 Thread Tobin C. Harding
-F lists caches that support object migration. -C lists caches that use a ctor. Add command line options to show caches with a constructor and caches with that are migratable (i.e. have isolate and migrate functions). Co-developed-by: Christoph Lameter Signed-off-by: Tobin C. Harding

[RFC 09/15] slub: Enable slab defragmentation using SMO

2019-03-07 Thread Tobin C. Harding
-by: Tobin C. Harding --- include/linux/slab.h | 1 + mm/slub.c| 266 +++ 2 files changed, 194 insertions(+), 73 deletions(-) diff --git a/include/linux/slab.h b/include/linux/slab.h index 22e87c41b8a4..b9b46bc9937e 100644 --- a/include/linux/sla

[RFC 00/15] mm: Implement Slab Movable Objects (SMO)

2019-03-07 Thread Tobin C. Harding
array.c:1961:13: note: did you mean to dereference the pointer? if (!xa || xa == XA_FREE_MARK) Perhaps you will put me out of my misery Willy and just tell me what its supposed to be. Patch 14 and 15 are particularly early stage (I hacked those :) thanks, Tobin. Tobin C. Harding (15): slu

[RFC 06/15] tools/vm/slabinfo: Add remote node defrag ratio output

2019-03-07 Thread Tobin C. Harding
Add output line for NUMA remote node defrag ratio. Signed-off-by: Tobin C. Harding --- tools/vm/slabinfo.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/vm/slabinfo.c b/tools/vm/slabinfo.c index 6ba8ffb4ea50..9cdccdaca349 100644 --- a/tools/vm/slabinfo.c +++ b/tools/vm

[RFC 04/15] slub: Enable Slab Movable Objects (SMO)

2019-03-07 Thread Tobin C. Harding
: Tobin C. Harding --- mm/slub.c | 85 +++ 1 file changed, 85 insertions(+) diff --git a/mm/slub.c b/mm/slub.c index 0133168d1089..6ce866b420f1 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -4325,6 +4325,91 @@ int __kmem_cache_create(struct kmem_cache *s

[RFC 02/15] slub: Add isolate() and migrate() methods

2019-03-07 Thread Tobin C. Harding
SLAB/SLOB. The API is generic so it could be theoretically implemented for these allocators as well. Co-developed-by: Christoph Lameter Signed-off-by: Tobin C. Harding --- include/linux/slab.h | 69 include/linux/slub_def.h | 3 ++ mm/slab_common.c

[RFC 10/15] tools/testing/slab: Add object migration test module

2019-03-07 Thread Tobin C. Harding
ll : 1 Redzoning : On Used :1120 SlabSiz:8192 Partial: 0 Poisoning : On Loss :7072 Loss : 336 CpuSlab: 0 Tracking : On Lalig:6720 Align : 8 Objects: 20 Tracing : Off Lpadd: 352 Signed-off-by: Tobin

[RFC 12/15] xarray: Implement migration function for objects

2019-03-07 Thread Tobin C. Harding
Implement functions to migrate objects. This is based on initial code by Matthew Wilcox and was modified to work with slab object migration. Co-developed-by: Christoph Lameter Signed-off-by: Tobin C. Harding --- lib/radix-tree.c | 13 + lib/xarray.c | 44

[RFC 14/15] slub: Enable move _all_ objects to node

2019-03-07 Thread Tobin C. Harding
from N1 -> to N2): echo "N1 N2" > move This also enables shrinking slabs on a specific node: echo "N1 N1" > move Signed-off-by: Tobin C. Harding --- mm/Kconfig | 7 ++ mm/slub.c | 249 + 2 files c

[RFC 15/15] slub: Enable balancing slab objects across nodes

2019-03-07 Thread Tobin C. Harding
e triggers balance, no other value accepted. This feature relies on SMO being enable for the cache, this is done with a call to, after the isolate/migrate functions have been defined. kmem_cache_setup_mobility(s, isolate, migrate) Signed-off-by: Tobin C. Harding --- mm/sl

[RFC 07/15] slub: Add defrag_used_ratio field and sysfs support

2019-03-07 Thread Tobin C. Harding
he remaining objects. Co-developed-by: Christoph Lameter Signed-off-by: Tobin C. Harding --- Documentation/ABI/testing/sysfs-kernel-slab | 14 include/linux/slub_def.h| 7 ++ mm/slub.c | 24 + 3 files ch

[RFC 13/15] tools/testing/slab: Add XArray movable objects tests

2019-03-07 Thread Tobin C. Harding
remaining partial slab. Signed-off-by: Tobin C. Harding --- tools/testing/slab/Makefile | 2 +- tools/testing/slab/slub_defrag_xarray.c | 211 2 files changed, 212 insertions(+), 1 deletion(-) create mode 100644 tools/testing/slab/slub_defrag_xarray.c di

[RFC 05/15] slub: Sort slab cache list

2019-03-07 Thread Tobin C. Harding
It is advantageous to have all defragmentable slabs together at the beginning of the list of slabs so that there is no need to scan the complete list. Put defragmentable caches first when adding a slab cache and others last. Co-developed-by: Christoph Lameter Signed-off-by: Tobin C. Harding

[RFC 11/15] tools/testing/slab: Add object migration test suite

2019-03-07 Thread Tobin C. Harding
ling movable objects ... verified movable slabs are shrinkable Removing module slub_defrag ... Signed-off-by: Tobin C. Harding --- tools/testing/slab/slub_defrag.c | 1 + tools/testing/slab/slub_defrag.py | 451 ++ 2 files changed, 452 insertions(+) create mode 10075

[RFC 08/15] tools/vm/slabinfo: Add defrag_used_ratio output

2019-03-07 Thread Tobin C. Harding
Add output for the newly added defrag_used_ratio sysfs knob. Signed-off-by: Tobin C. Harding --- tools/vm/slabinfo.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/vm/slabinfo.c b/tools/vm/slabinfo.c index 9cdccdaca349..8cf3bbd061e2 100644 --- a/tools/vm/slabinfo.c +++ b/tools/vm

Re: [PATCH 8/9] docs: Fix Title underline too short warning

2019-03-07 Thread Tobin C. Harding
On Thu, Mar 07, 2019 at 07:42:03PM -0800, Randy Dunlap wrote: > On 3/7/19 1:11 PM, Tobin C. Harding wrote: > > Sphinx emits a bunch of 'Title underline too short' warnings. We can > > fix these by using the correct length underlines. > > > > Fix Title un

Re: [PATCH 6/9] docs: Use correct list markup character

2019-03-07 Thread Tobin C. Harding
On Thu, Mar 07, 2019 at 07:40:14PM -0800, Randy Dunlap wrote: > On 3/7/19 1:11 PM, Tobin C. Harding wrote: > > Sphinx uses a star not a hyphen for lists. > > > > Use correct list markup character. > > > > Signed-off-by: Tobin C. Harding > > Hi Tobin, >

Re: [PATCH v3 0/7] lib/string: Add strscpy_pad() function

2019-03-07 Thread Tobin C. Harding
On Thu, Mar 07, 2019 at 02:43:57PM -0800, Kees Cook wrote: > On Thu, Mar 7, 2019 at 1:19 PM Tobin C. Harding wrote: > > > > On Thu, Mar 07, 2019 at 08:49:34AM +1100, Tobin C. Harding wrote: > > > On Thu, Mar 07, 2019 at 08:42:19AM +1100, Tobin C. Harding wrote: > &

Re: [PATCH v6 0/4] enable early printing of hashed pointers

2018-06-07 Thread Tobin C. Harding
On Thu, Jun 07, 2018 at 10:00:02AM -0400, Theodore Y. Ts'o wrote: > On Thu, Jun 07, 2018 at 09:31:04AM +1000, Tobin C. Harding wrote: > > > I'm also happy to take the whole patch series through the random tree > > > if everyone else is OK with it. > > > &g

[PATCH v7 0/4] enable early printing of hashed pointers

2018-06-11 Thread Tobin C. Harding
as originally suggested by Kees). - Add command line option to use cryptographically insecure hashing. If debug_early_boot is enabled use hash_long() instead of siphash (as requested by Steve, and solves original problem for Anna-Maria). - Added Acked-by tag from Ted (patch 1 and 2) Tobin C. H

[PATCH v7 1/4] random: Fix whitespace pre random-bytes work

2018-06-11 Thread Tobin C. Harding
There are a couple of whitespace issues around the function get_random_bytes_arch(). In preparation for patching this function let's clean them up. Signed-off-by: Tobin C. Harding Acked-by: Theodore Ts'o --- drivers/char/random.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletion

[PATCH v7 3/4] vsprintf: Use hw RNG for ptr_key

2018-06-11 Thread Tobin C. Harding
Currently we must wait for enough entropy to become available before hashed pointers can be printed. We can remove this wait by using the hw RNG if available. Use hw RNG to get keying material. Cc: Steven Rostedt (VMware) Suggested-by: Kees Cook Signed-off-by: Tobin C. Harding --- lib

[PATCH v7 4/4] vsprintf: Add command line option debug_boot_weak_hash

2018-06-11 Thread Tobin C. Harding
Cc: Steven Rostedt Cc: Randy Dunlap Signed-off-by: Tobin C. Harding --- Documentation/admin-guide/kernel-parameters.txt | 9 + lib/vsprintf.c | 18 ++ 2 files changed, 27 insertions(+) diff --git a/Documentation/admin-guide/kernel-paramet

[PATCH v7 2/4] random: Return nbytes filled from hw RNG

2018-06-11 Thread Tobin C. Harding
bytes_arch(). Only get random bytes from the hw RNG, make function return the number of bytes retrieved from the hw RNG. Signed-off-by: Tobin C. Harding Acked-by: Theodore Ts'o Reviewed-by: Steven Rostedt (VMware) --- drivers/char/random.c | 16 +--- include/linux/random.h |

Re: [PATCH] list_debug: Print unmangled addresses

2018-04-02 Thread Tobin C. Harding
ruption bug, causing this code to execute, the extra address is probably not making the situation any worse. (I am in no way a security expert.) > Signed-off-by: Matthew Wilcox Reviewed-by: Tobin C. Harding > diff --git a/lib/list_debug.c b/lib/list_debug.c > index a34db8d27667..5d5424b51b

Re: [PATCH 3/5] staging: ks7010: Factor out repeated code into function 'ks_wlan_cap()'.

2018-03-04 Thread Tobin C. Harding
On Fri, Mar 02, 2018 at 12:05:03PM +0300, Dan Carpenter wrote: > There are so many rules for kernel developers to deal with. Is it worse > to go over the 80 character limit or align the parameters properly? Is > it OK to start the subject with a lower case letter? I get in trouble > for using th

[PATCH 1/2] checkpatch: add check for tag Co-Developed-by

2018-03-04 Thread Tobin C. Harding
r the new tag. Cc: Greg Kroah-Hartman Reviewed-by: Greg Kroah-Hartman Signed-off-by: Tobin C. Harding --- scripts/checkpatch.pl | 58 +++ 1 file changed, 35 insertions(+), 23 deletions(-) diff --git a/scripts/checkpatch.pl b/scripts/checkpatch.pl

[no subject]

2018-03-04 Thread Tobin C. Harding
are a) duplicative and b) out of sync Also, there has been comment over the use of the second capitalized character 'D'. This patch set attempts to either resolve this issue or bury it for good. May the bike shedding begin :) Joe Perches (1): checkpatch: add check for tag Co-Developed-by Tobi

[PATCH 2/2] docs: add Co-Developed-by docs

2018-03-04 Thread Tobin C. Harding
When Co-Developed-by tag was added, docs were only added to Documention/process/5.Posting.rst and were not added to Documention/process/submitting-patches.rst Add documentation to Documention/process/submitting-patches.rst Signed-off-by: Tobin C. Harding --- The text in this patch is copied

[PATCH v3 3/4] vsprintf: Use hw RNG for ptr_key

2018-05-03 Thread Tobin C. Harding
Currently we must wait for enough entropy to become available before hashed pointers can be printed. We can remove this wait by using the hw RNG if available. Use hw RNG to get keying material. Suggested-by: Kees Cook Signed-off-by: Tobin C. Harding --- lib/vsprintf.c | 19

[PATCH v3 0/4] enable early printing of hashed pointers

2018-05-03 Thread Tobin C. Harding
_long() instead of siphash (as requested by Steve, and solves original problem for Anna-Maria). Tobin C. Harding (4): random: Fix whitespace pre random-bytes work random: Return nbytes filled from hw RNG vsprintf: Use hw RNG for ptr_key vsprintf: Add command line option debug_early_boot

[PATCH v3 1/4] random: Fix whitespace pre random-bytes work

2018-05-03 Thread Tobin C. Harding
There are a couple of whitespace issues around the function get_random_bytes_arch(). In preparation for patching this function let's clean them up. Signed-off-by: Tobin C. Harding Acked-by: Theodore Ts'o --- drivers/char/random.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletion

[PATCH v3 4/4] vsprintf: Add command line option debug_early_boot

2018-05-03 Thread Tobin C. Harding
ned-off-by: Tobin C. Harding --- Documentation/admin-guide/kernel-parameters.txt | 8 lib/vsprintf.c | 18 ++ 2 files changed, 26 insertions(+) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-gu

[PATCH v3 2/4] random: Return nbytes filled from hw RNG

2018-05-03 Thread Tobin C. Harding
bytes_arch(). Only get random bytes from the hw RNG, make function return the number of bytes retrieved from the hw RNG. Signed-off-by: Tobin C. Harding Acked-by: Theodore Ts'o Signed-off-by: Tobin C. Harding --- drivers/char/random.c | 16 +--- include/linux/random.h | 2 +-

Re: [PATCH v3 0/4] enable early printing of hashed pointers

2018-05-03 Thread Tobin C. Harding
On Thu, May 03, 2018 at 10:23:49PM -0400, Theodore Y. Ts'o wrote: > On Fri, May 04, 2018 at 09:07:37AM +1000, Tobin C. Harding wrote: > > Currently if an attempt is made to print a pointer before there is > > enough entropy then '(ptrval)' is printed. This ma

Re: [PATCH ghak81 RFC V1 4/5] audit: use inline function to set audit context

2018-05-08 Thread Tobin C. Harding
On Fri, May 04, 2018 at 04:54:37PM -0400, Richard Guy Briggs wrote: > Recognizing that the audit context is an internal audit value, use an > access function to set the audit context pointer for the task > rather than reaching directly into the task struct to set it. > > Signed-off-by: Richard Guy

Re: [PATCH] isdn: eicon: fix a missing-check bug

2018-05-08 Thread Tobin C. Harding
On Wed, May 09, 2018 at 12:30:18AM -0500, Wenwen Wang wrote: > Hello > > Could you please review this patch? We need a confirmation because we > are working on an approaching deadline. I didn't know 'we' had deadlines :) Tobin

Re: [RESEND] rsi: Remove stack VLA usage

2018-03-14 Thread Tobin C. Harding
On Wed, Mar 14, 2018 at 11:19:53AM +0200, Kalle Valo wrote: > "Tobin C. Harding" writes: > > > Added Konstantin in case he is in charge of administering > > patchwork.kernel.org? > > > > On Tue, Mar 13, 2018 at 07:53:34PM -0700, Kees Cook wrote: >

[PATCH v2] rsi: Remove stack VLA usage

2018-03-14 Thread Tobin C. Harding
ed on initialization (and re-initialization) so this overhead should not degrade performance. [1] https://lkml.org/lkml/2018/3/7/621 Signed-off-by: Tobin C. Harding --- This applies onto tip of wireless-drivers next, commit (28bf8312a983 mwifiex: get_channel from firmware v2: - Use k

Re: [RFC PATCH 1/3] arcnet: com20020: Add memory map of com20020

2018-05-06 Thread Tobin C. Harding
On Sat, May 05, 2018 at 11:34:45PM +0200, Andrea Greco wrote: > From: Andrea Greco Hi Andrea, Here are some (mostly stylistic) suggestions to help you get your driver merged. > Add support for com20022I/com20020, memory mapped chip version. > Support bus: Intel 80xx and Motorola 68xx. > Bus siz

Re: [RFC PATCH 2/3] arcnet: com20020: Fixup missing SLOWARB bit

2018-05-06 Thread Tobin C. Harding
On Sat, May 05, 2018 at 11:37:54PM +0200, Andrea Greco wrote: > From: Andrea Greco > > If com20020 clock is major of 40Mhz SLOWARB bit is requested. > > Signed-off-by: Andrea Greco > --- > drivers/net/arcnet/com20020.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/drivers/net/a

Re: [RFC PATCH 3/3] arcnet: com20020: Add ethtool support

2018-05-06 Thread Tobin C. Harding
On Sat, May 05, 2018 at 11:35:29PM +0200, Andrea Greco wrote: > From: Andrea Greco > > Setup ethtols for export com20020 diag register > > Signed-off-by: Andrea Greco > --- > drivers/net/arcnet/com20020-isa.c| 1 + > drivers/net/arcnet/com20020-membus.c | 1 + > drivers/net/arcnet/com200

Re: [RFC PATCH 1/3] arcnet: com20020: Add memory map of com20020

2018-05-08 Thread Tobin C. Harding
On Tue, May 08, 2018 at 11:36:51AM +0200, Andrea Greco wrote: > On 05/07/2018 04:55 AM, Tobin C. Harding wrote: > >On Sat, May 05, 2018 at 11:34:45PM +0200, Andrea Greco wrote: > >>From: Andrea Greco > > > >Hi Andrea, > > > >Here are some (mostly stylisti

Re: [PATCH v3] module: Fix display of wrong module .text address

2018-04-18 Thread Tobin C. Harding
On Wed, Apr 18, 2018 at 09:14:36AM +0200, Thomas Richter wrote: > Reading file /proc/modules shows the correct address: > [root@s35lp76 ~]# cat /proc/modules | egrep '^qeth_l2' > qeth_l2 94208 1 - Live 0x03ff80401000 > > and reading file /sys/module/qeth_l2/sections/.text > [root@s35lp76 ~]# c

[PATCH 1/4] mm: Fix sparse, use plain integer as NULL pointer

2017-02-01 Thread Tobin C. Harding
From: Tobin C Harding Patch fixes sparse warning: Using plain integer as NULL pointer. Replaces assignment of 0 to pointer with NULL assignment. Signed-off-by: Tobin C Harding --- mm/memory.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mm/memory.c b/mm/memory.c

[PATCH 2/4] mm: Fix checkpatch warnings, whitespace

2017-02-01 Thread Tobin C. Harding
From: Tobin C Harding Patch fixes whitespace checkpatch warnings. Signed-off-by: Tobin C Harding --- mm/memory.c | 15 +++ 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index cc5fa12..3562314 100644 --- a/mm/memory.c +++ b/mm/memory.c

[PATCH 3/4] mm: Fix checkpatch errors, whitespace errors

2017-02-01 Thread Tobin C. Harding
From: Tobin C Harding Patch fixes whitespace checkpatch errors. Signed-off-by: Tobin C Harding --- mm/memory.c | 42 +- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 3562314..35fb8b2 100644 --- a/mm

[PATCH 0/4] mm: trivial sparse and checkpatch fixes

2017-02-01 Thread Tobin C. Harding
From: Tobin C Harding This patchset fixes trivial sparse and checkpatch errors/warnings. The majority of the changes are whitespace only. The only code changes are replace 0 with NULL, and remove extraneous braces around single statement. Patchset aims to only make changes when they objectively

[PATCH 4/4] mm: Fix checkpatch warning, extraneous braces

2017-02-01 Thread Tobin C. Harding
From: Tobin C Harding Patch fixes checkpatch warning on use of braces around a single statement. Signed-off-by: Tobin C Harding --- mm/memory.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index 35fb8b2..654e6f4 100644 --- a/mm/memory.c +++ b

Re: [PATCH] Staging: ks7010 - fixed style block comments

2017-03-21 Thread Tobin C. Harding
On Wed, Mar 22, 2017 at 07:29:50AM +1300, Derek Robson wrote: > On Tue, Mar 21, 2017 at 08:56:25AM +0100, Greg KH wrote: > > On Sun, Mar 19, 2017 at 01:07:17PM +1300, Derek Robson wrote: > > > Fixed style of all block comments across whole driver > > > Found by checkpatch > > > > > > Signed-off-by

Re: [PATCH 1/3] Staging: ks7010: ks_*: Use preferred 'u8' kernel type over 'uint8_t'

2017-03-14 Thread Tobin C. Harding
On Tue, Mar 14, 2017 at 04:12:31PM +0100, Shiva Kerdel wrote: > Hello Tobin, > > I missed the other files because they did not show up using the checkpatch > script. > Next time I will do a recursive search through the files before committing > the changes to avoid this situation. > > Before I

Re: [PATCHv5 4/4] Staging: ks7010: ks_wlan_ioctl.h: Wrap complex macros with parentheses

2017-03-14 Thread Tobin C. Harding
On Tue, Mar 14, 2017 at 07:25:54PM -0700, Matthew Giassa wrote: > Wrapping all complex macros with parentheses to resolve checkpatch > errors. This change, along with the preceding changes in this change > set, resolves all checkpatch warnings and errors for the file. > > Signed-off-by: Matthew Gi

[PATCH 1/2] mmc: core: guard dereference of optional parameter

2017-03-15 Thread Tobin C. Harding
Various functions take as parameter an optional pointer. Pointer should be guarded with non-NULL check before dereferencing. Add non-NULL check before dereference of pointer. Signed-off-by: Tobin C. Harding --- drivers/mmc/core/sdio_io.c | 12 1 file changed, 8 insertions(+), 4

[PATCH 0/2] mmc: core: null pointer dereference bug

2017-03-15 Thread Tobin C. Harding
applied and built on x86_64 and PowerPC Tobin C. Harding (2): mmc: core: guard dereference of optional parameter mmc: core: simplify return code drivers/mmc/core/sdio_io.c | 54 ++ 1 file changed, 21 insertions(+), 33 deletions(-) -- 2.7.4

[PATCH 2/2] mmc: core: simplify return code

2017-03-15 Thread Tobin C. Harding
: Tobin C. Harding --- drivers/mmc/core/sdio_io.c | 42 +- 1 file changed, 13 insertions(+), 29 deletions(-) diff --git a/drivers/mmc/core/sdio_io.c b/drivers/mmc/core/sdio_io.c index 3482314..d40744b 100644 --- a/drivers/mmc/core/sdio_io.c +++ b/drivers/mmc

[PATCH] powerpc: asm: convert directive .llong to .8byte

2017-03-08 Thread Tobin C. Harding
.llong is an undocumented PPC specific directive. The generic equivalent is .quad, but even better (because it's self describing) is .8byte. Convert directives .llong -> .8byte Signed-off-by: Tobin C. Harding --- Fixes: issue #33 (github) Patch is not tested. Has been built on Power8

Re: [regression] 72042a8c7b01 x86/purgatory: Make functions and variables static

2017-03-09 Thread Tobin C. Harding
On Thu, Mar 09, 2017 at 08:11:03PM +0100, Thomas Gleixner wrote: > On Thu, 9 Mar 2017, Mike Galbraith wrote: > > On Thu, 2017-03-09 at 18:50 +0100, Thomas Gleixner wrote: > > > On Thu, 9 Mar 2017, Mike Galbraith wrote: > > > > > > > Greetings, > > > > > > > > I bisected kdump breakage to $subject

Re: [PATCH] powerpc: asm: convert directive .llong to .8byte

2017-03-10 Thread Tobin C. Harding
es .llong -> .8byte > > > > Signed-off-by: Tobin C. Harding > > --- > > > > Fixes: issue #33 (github) > > Thanks for tackling these! > > I have applied your patch to my local tree. I ran `git grep '\.llong'`, > and found: > > tools/

Re: [PATCH] powerpc: asm: convert directive .llong to .8byte

2017-03-10 Thread Tobin C. Harding
> >> .8byte. > >> > >> Convert directives .llong -> .8byte > >> > >> Signed-off-by: Tobin C. Harding > >> --- > >> > >> Fixes: issue #33 (github) > > > > Thanks for tackling these! > > > >

Re: [PATCH 1/3] Staging: ks7010: ks_*: Use preferred 'u8' kernel type over 'uint8_t'

2017-03-11 Thread Tobin C. Harding
On Sun, Mar 12, 2017 at 03:29:59AM +0100, Shiva Kerdel wrote: > Fix prefer kernel type 'u8' over 'uint8_t' checks. > > Signed-off-by: Shiva Kerdel > --- > drivers/staging/ks7010/ks_hostif.c | 4 +- > drivers/staging/ks7010/ks_hostif.h | 114 > +-- > drivers

checkpatch suspected false positive

2017-02-21 Thread Tobin C. Harding
Checkpatch may be giving a false positive of type CONST_STRUCT when parsing files in drivers/staging/comedi/drivers. $ pwd build/kernel/linux-trees/gregKH/staging/ $ cd drivers/staging/comedi/drivers $ checkpatch --terse --show-types *.c | grep CONST_STRUCT addi_apci_3501.c:97: WARNING:CONST_STR

Re: checkpatch suspected false positive

2017-02-21 Thread Tobin C. Harding
On Tue, Feb 21, 2017 at 03:19:22PM -0800, Joe Perches wrote: > On Wed, 2017-02-22 at 10:01 +1100, Tobin C. Harding wrote: > > Checkpatch may be giving a false positive of type CONST_STRUCT when > > parsing files in drivers/staging/comedi/drivers. > > > > $ pwd > >

[PATCH] ncpfs: Remove cast from memory allocation

2017-02-21 Thread Tobin C. Harding
Coccinelle emits WARNING: casting value returned by memory allocation function to (struct ncp_inode_info *) is useless. Remove unnecessary cast. Signed-off-by: Tobin C. Harding --- fs/ncpfs/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ncpfs/inode.c b/fs/ncpfs

[PATCH] fs/9p: Remove cast from memory allocation

2017-02-21 Thread Tobin C. Harding
Coccinelle emits WARNING: casting value returned by memory allocation function to (struct v9fs_inode *) is useless. Remove unnecessary cast. Signed-off-by: Tobin C. Harding --- fs/9p/vfs_inode.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/9p/vfs_inode.c b/fs/9p

[PATCH] proc: Remove cast from memory allocation

2017-02-21 Thread Tobin C. Harding
Coccinelle emits WARNING: casting value returned by memory allocation function to (struct proc_inode *) is useless. Remove unnecessary cast. Signed-off-by: Tobin C. Harding --- fs/proc/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/inode.c b/fs/proc/inode.c

[PATCH] ALSA: emu10k1: Remove cast from memory allocation

2017-02-21 Thread Tobin C. Harding
Coccinelle emits multiple WARNING: casting value returned by memory allocation function to (u_int32_t __user *) is useless. Remove unnecessary cast. Signed-off-by: Tobin C. Harding --- sound/pci/emu10k1/emufx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound

Re: [PATCH] ALSA: emu10k1: Remove cast from memory allocation

2017-02-22 Thread Tobin C. Harding
On Wed, Feb 22, 2017 at 07:59:57AM +0100, Takashi Iwai wrote: > On Wed, 22 Feb 2017 07:47:16 +0100, > Tobin C. Harding wrote: > > > > Coccinelle emits multiple WARNING: casting value returned by memory > > allocation > > function to (u_int32_t __user *) is useles

[PATCH v2] ncpfs: Remove cast from memory allocation

2017-02-22 Thread Tobin C. Harding
Coccinelle emits WARNING: casting value returned by memory allocation function to (struct ncp_inode_info *) is useless. Remove unnecessary cast. Changes since v1: - Fix up typo Signed-off-by: Tobin C. Harding --- Kernel built successfully with patch applied. fs/ncpfs/inode.c | 2 +- 1 file

[PATCH v3] ncpfs: Remove cast from memory allocation

2017-02-22 Thread Tobin C. Harding
Coccinelle emits WARNING: casting value returned by memory allocation function to (struct ncp_inode_info *) is useless. Remove unnecessary cast. Signed-off-by: Tobin C. Harding --- Changes since v2: - Put version amendment comments in correct place within patch email. Changes since v1

Re: [PATCH v3] staging: xgifb: function prototype argument should also have an identifier name

2017-02-22 Thread Tobin C. Harding
Please use the imperative mood in the subject line i.e the short form of git commit log. A couple of example Subjects:: Subject: [PATCH 2/5] ext2: improve scalability of bitmap searching Subject: [PATCH v2 01/27] x86: fix eflags tracking Awesome work on you patches! thanks, Tobin.

[PATCH] greybus: fw-management: Replace strncpy with strlcpy

2017-02-14 Thread Tobin C. Harding
ermination checks with checks for truncated string. Add log message if string is truncated but do not return an error code. Signed-off-by: Tobin C. Harding --- drivers/staging/greybus/fw-management.c | 59 +++-- 1 file changed, 19 insertions(+), 40 deletions(-) diff --git

[PATCH] staging: fbtft: Fix buffer overflow vulnerability

2017-02-14 Thread Tobin C. Harding
Module copies a user supplied string (module parameter) into a buffer using strncpy() and does not check that the buffer is null terminated. Replace call to strncpy() with call to strlcpy() ensuring that the buffer is null terminated. Signed-off-by: Tobin C. Harding --- drivers/staging/fbtft

[PATCH v2 2/3] staging: fbtft: Replace magic number with constant

2017-02-14 Thread Tobin C. Harding
Current call to strncmp() uses a magic number. There is a compile time constant defined for this buffer, included and used already at other sites in the file. Remove magic number. Replace with pre-existing compile time constant. Signed-off-by: Tobin C. Harding --- drivers/staging/fbtft

[PATCH v2 1/3] staging: fbtft: Fix buffer overflow vulnerability

2017-02-14 Thread Tobin C. Harding
Module copies a user supplied string (module parameter) into a buffer using strncpy() and does not check that the buffer is null terminated. Replace call to strncpy() with call to strlcpy() ensuring that the buffer is null terminated. Signed-off-by: Tobin C. Harding --- drivers/staging/fbtft

[PATCH v2 3/3] staging: fbtft: Add check on strlcpy() return value

2017-02-14 Thread Tobin C. Harding
return value from call to strlcpy(). If source string is truncated call pr_warn() to notify user. Signed-off-by: Tobin C. Harding --- drivers/staging/fbtft/fbtft_device.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/staging/fbtft/fbtft_device.c b/drivers

[PATCH v2 0/3] staging: fbtft: Fix buffer overflow vulnerability

2017-02-14 Thread Tobin C. Harding
. Check return value of call to strlcpy() and throw warning if source string is truncated. v1 was a single patch. v2 adds 2 extra patches while retaining the original v1 patch as the first of the series. v2: - Replace magic number - Check return value of call to strlcpy() Tobin C. Harding (3

[PATCH 0/2] net: Replace custom page based bitmap with IDA

2017-02-11 Thread Tobin C. Harding
-append "root=/dev/sda console=ttyS0" --enable-kvm --nographic -m 12G Current implementation #define NDEVICES 3 [ 134.376741] tm: Total milliseconds: 127152 Patched version #define NDEVICES 3 [ 226.960212] tm: Total milliseconds: 220756 #define NDEVICES 35000 [

[PATCH 2/2] net: Replace custom page based bitmap with IDA

2017-02-11 Thread Tobin C. Harding
lacement to the page based bitmap. This has the effect of simplifying the code and removing the upper limit. Signed-off-by: Tobin C. Harding --- net/core/dev.c | 20 ++-- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/net/core/dev.c b/net/core/dev.c index 29101c9.

[PATCH 1/2] include: Fix checkpatch whitespace error and warning

2017-02-11 Thread Tobin C. Harding
This patch fixes two trivial whitespace messages (ERROR/WARNING). Fixes trailing whitespace ERROR and fixes space before tabs WARNING. Signed-off-by: Tobin C. Harding --- include/linux/idr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/idr.h b/include

[PATCH 2/2] arch/x86: Fix sparse warning symbol not declared

2017-02-11 Thread Tobin C. Harding
This patch adds function declaration in order to quiet sparse symbol not declared warning. Signed-off-by: Tobin C. Harding --- Unsure why adding declaration quiets sparse. This may not be the correct solution. Only testing done is building and booting kernel. Since 'purgatory' is c

[PATCH 0/2] arch/x86: Fix sparse warning

2017-02-11 Thread Tobin C. Harding
This series fixes multiple occurences of sparse warning, 'symbol is not declared. Should it be static?'. Initial patch adds 'static' keyword to variable declarations. Second patch declares function in order to clear same warning. Tobin C. Harding (2): arch/x86: Fix spars

[PATCH 1/2] arch/x86: Fix sparse warning symbol not declared

2017-02-11 Thread Tobin C. Harding
This patch adds static declaration to a number of variables. Fixes sparse symbol was not declared warnings. Signed-off-by: Tobin C. Harding --- arch/x86/purgatory/purgatory.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/x86/purgatory/purgatory.c b/arch/x86

[PATCH v2 0/2] x86/purgatory: Fix sparse warnings

2017-02-12 Thread Tobin C. Harding
e C source file defining the function in order to fix the sparse warning. Include the header file in ASM file containing the call site thereby adding documentation of usage. Tobin C. Harding (2): x86/purgatory: Fix sparse warning, symbol not declared x86/purgatory: Fix sparse warning, symbol no

[PATCH v2 1/2] x86/purgatory: Fix sparse warning, symbol not declared

2017-02-12 Thread Tobin C. Harding
Sparse emits several 'symbol not declared' warnings for various functions and variables. Add static keyword to functions and variables which have file scope only. Signed-off-by: Tobin C. Harding --- arch/x86/purgatory/purgatory.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH v2 2/2] x86/purgatory: Fix sparse warning, symbol not declared

2017-02-12 Thread Tobin C. Harding
to fix the sparse warning. Include the header file in ASM file containing the call site thereby adding documentation of usage. Signed-off-by: Tobin C. Harding --- arch/x86/purgatory/purgatory.c| 1 + arch/x86/purgatory/purgatory.h| 7 +++ arch/x86/purgatory/setup-x86_64.S | 3 ++- 3 fil

[PATCH v3 2/2] x86/purgatory: Fix sparse warning, symbol not declared

2017-02-13 Thread Tobin C. Harding
the sparse warning. Include the header file in ASM file to document the usage. Use preprocessor guard to enable C header file to be included in ASM. Signed-off-by: Tobin C. Harding --- arch/x86/purgatory/purgatory.c| 1 + arch/x86/purgatory/purgatory.h| 10 ++ arch/x86/purgatory/se

[PATCH v3 0/2] x86/purgatory: Fix sparse warning, symbol not declared

2017-02-13 Thread Tobin C. Harding
in C file contianing function definition. V3: * Add preprocessor guard. V2: * Add header file. Tobin C. Harding (2): x86/purgatory: Fix sparse warning, symbol not declared x86/purgatory: Fix sparse warning, symbol not declared arch/x86/purgatory/purgatory.c| 11 ++- arch/x86

[PATCH v3 1/2] x86/purgatory: Fix sparse warning, symbol not declared

2017-02-13 Thread Tobin C. Harding
Sparse emits several 'symbol not declared' warnings for various functions and variables. Add static keyword to functions and variables which have file scope only. Remove definition to zero for each variable declared static in accord with kernel standard. Signed-off-by: Tobin

[PATCH v4 2/2] x86/purgatory: Fix sparse warning, symbol not declared

2017-02-19 Thread Tobin C. Harding
to fix the sparse warning. Include the header file in ASM file containing the call site to document the usage. Signed-off-by: Tobin C. Harding --- arch/x86/purgatory/purgatory.c| 1 + arch/x86/purgatory/purgatory.h| 12 arch/x86/purgatory/setup-x86_64.S | 4 ++-- 3 files c

[PATCH v4 1/2] x86/purgatory: Fix sparse warning, symbol not declared

2017-02-19 Thread Tobin C. Harding
Sparse emits several 'symbol not declared' warnings for various functions and variables. Add static keyword to functions and variables which have file scope only. Signed-off-by: Tobin C. Harding --- arch/x86/purgatory/purgatory.c | 10 +- 1 file changed, 5 insertions(+), 5

[PATCH v4 0/2] x86/purgatory: Fix sparse warning, symbol not declared

2017-02-19 Thread Tobin C. Harding
in C file contianing function definition. Changes since v3: - Put preprocessor directives in correct order. Changes since v2: - Add preprocessor guard. Changes since v1: - Add header file. Tobin C. Harding (2): x86/purgatory: Fix sparse warning, symbol not declared x86/purgatory: Fix sparse warni

Re: [PATCHv3 1/4] Encasing macros with complex values (ie: base value plus index) with parentheses.

2017-02-26 Thread Tobin C. Harding
On Sun, Feb 26, 2017 at 06:00:19PM -0800, Matthew Giassa wrote: > --- > drivers/staging/ks7010/ks_wlan_ioctl.h | 64 > +- > 1 file changed, 32 insertions(+), 32 deletions(-) > > diff --git a/drivers/staging/ks7010/ks_wlan_ioctl.h > b/drivers/staging/ks7010/ks_wla

Re: [Outreachy kernel] Re: [PATCH v2] staging: ks7010: remove code in comments.

2017-02-27 Thread Tobin C. Harding
On Mon, Feb 27, 2017 at 04:07:27PM +0100, Julia Lawall wrote: > > > On Mon, 27 Feb 2017, Arushi Singhal wrote: > > > > > > > On Mon, Feb 27, 2017 at 8:18 PM, Greg KH wrote: > > On Sun, Feb 26, 2017 at 09:38:20PM +0530, Arushi Singhal wrote: > > > Commenting Code Is a Bad Idea. > >

[PATCH 3/4] net: Fix checkpatch block comments warnings

2017-02-08 Thread Tobin C. Harding
Fix multiple occurrences of checkpatch warning. WARNING: Block comments use * on subsequent lines. Also make comment blocks more uniform. Signed-off-by: Tobin C. Harding --- net/core/dev.c | 65 +- 1 file changed, 33 insertions(+), 32

[PATCH 2/4] net: Fix checkpatch whitespace errors

2017-02-08 Thread Tobin C. Harding
This patch fixes two trivial whitespace errors. Brace should be on the previous line and trailing statements should be on next line. Signed-off-by: Tobin C. Harding --- net/core/dev.c | 39 --- 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a

[PATCH 4/4] net: Fix checkpatch, Missing a blank line after declarations

2017-02-08 Thread Tobin C. Harding
This patch fixes multiple occurrences of checkpatch WARNING: Missing a blank line after declarations. Signed-off-by: Tobin C. Harding --- net/core/dev.c | 13 + 1 file changed, 13 insertions(+) diff --git a/net/core/dev.c b/net/core/dev.c index 6a076a1..fa63485 100644 --- a/net

[PATCH 1/4] net: Fix checkpatch WARNING: please, no space before tabs

2017-02-08 Thread Tobin C. Harding
This patch fixes multiple occurrences of space before tabs warnings. More lines of code were moved than required to keep kernel-doc comments uniform. Signed-off-by: Tobin C. Harding --- net/core/dev.c | 142 - 1 file changed, 71 insertions

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