[PATCH] byteorder: silence warning by use the proper type

2018-01-24 Thread rodrigosiqueira
This patch fixes the GCC warning: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < len; i++) ^ Signed-off-by: Rodrigo Siqueira --- include/linux/byteorder/generic.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[PATCH] staging: ade7759: Fix open parenthesis alignment

2018-02-10 Thread rodrigosiqueira
This patch fixes the CHECKs reported by checkpatch.pl for "alignment should match open parenthesis" Signed-off-by: rodrigosiqueira --- drivers/staging/iio/meter/ade7759.c | 80 ++--- 1 file changed, 38 insertions(+), 42 deletions(-) diff --git a/drive

[PATCH] staging: iio/meter: add name to function definition arguments

2018-02-16 Thread rodrigosiqueira
This patch fixes the checkpatch.pl warning: drivers/staging/iio/meter/ade7854.h:157: WARNING: function definition argument 'struct device *' should also have an identifier name... Signed-off-by: Rodrigo Siqueira --- drivers/staging/iio/meter/ade7854.h | 28 ++-- 1 file c

[PATCH] iio: apply coding-style into ms5611_probe function

2018-02-16 Thread rodrigosiqueira
This patch fixes the checkpatch.pl warning and error: iio/pressure/ms5611.h:66: ERROR: code indent should use tabs where possible iio/pressure/ms5611.h:66: WARNING: please, no spaces at the start of a line iio/pressure/ms5611.h:66: ERROR: "foo* bar" should be "foo *bar" Signed-off-by: Rodrigo Siq

[PATCH v2] iio:pressure:ms5611: Fix coding style in probe function

2018-02-16 Thread rodrigosiqueira
This patch fixes the checkpatch.pl warning and error: iio/pressure/ms5611.h:66: ERROR: code indent should use tabs where possible iio/pressure/ms5611.h:66: WARNING: please, no spaces at the start of a line iio/pressure/ms5611.h:66: ERROR: "foo* bar" should be "foo *bar" Signed-off-by: Rodrigo Siq

[PATCH v2] staging:iio:meter: Add name to function definition arguments

2018-02-19 Thread rodrigosiqueira
This patch fixes the checkpatch.pl warning: drivers/staging/iio/meter/ade7854.h:157: WARNING: function definition argument 'struct device *' should also have an identifier name... This commit adds arguments names to the signature declared in the ade7854_state struct. For consistency reason, It al

[PATCH] Scheduler: Removed first parameter from prepare_lock_switch

2017-12-05 Thread rodrigosiqueira
The first parameter of prepare_lock_switch (kernel/sched/sched.h) is not used anymore. Commit c55f5158f removed the code that use the first parameter and function prepare_lock_switch is only used in prepare_task_switch (kernel/sched/core.c) I tested it in a virtual machine running Debian x86_64 wi

[PATCH] x86: Remove unused parameter of prepare_switch_to

2017-12-15 Thread rodrigosiqueira
Commit e37e43a497d5 ("x86/mm/64: Enable vmapped stacks (CONFIG_HAVE_ARCH_VMAP_STACK=y)") added prepare_switch_to with one extra parameter which is not used by the function, remove it. Signed-off-by: Rodrigo Siqueira --- arch/x86/include/asm/switch_to.h | 5 ++--- 1 file changed, 2 insertions(+),

[PATCH v2] Adjustments: lock/unlock task in context_switch

2017-12-15 Thread rodrigosiqueira
Function prepare_lock_switch have an unused parameter, and also the function name was not descriptive. To improve the readability and remove the extra parameter, the following changes were made: * Moved prepare_lock_switch from kernel/sched/sched.h to kernel/sched/core.c, renamed it to acquire_l

[tip:sched/core] sched/core: Rework and clarify prepare_lock_switch()

2018-01-10 Thread tip-bot for rodrigosiqueira
Commit-ID: 31cb1bc0dc94882a588930f4d007b570c481fd17 Gitweb: https://git.kernel.org/tip/31cb1bc0dc94882a588930f4d007b570c481fd17 Author: rodrigosiqueira AuthorDate: Fri, 15 Dec 2017 12:06:03 -0200 Committer: Ingo Molnar CommitDate: Wed, 10 Jan 2018 11:30:27 +0100 sched/core: Rework and

[tip:x86/urgent] x86: Remove unused parameter of prepare_switch_to

2017-12-27 Thread tip-bot for rodrigosiqueira
Commit-ID: 7ac139eaa6bbdb07c547b6916a808eab3897e0e3 Gitweb: https://git.kernel.org/tip/7ac139eaa6bbdb07c547b6916a808eab3897e0e3 Author: rodrigosiqueira AuthorDate: Fri, 15 Dec 2017 11:15:33 -0200 Committer: Thomas Gleixner CommitDate: Wed, 27 Dec 2017 20:37:41 +0100 x86: Remove unused