[PATCH 1/2] staging: fbtft: fbtft-core: Use '%zu' to print 'size_t' format

2015-02-19 Thread Fabio Estevam
When building for ARM64 the following build warning is seen: drivers/staging/fbtft/fbtft-core.c:1004:4: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' [-Wformat=] Use '%zu' to print 'size_t' format. Signed-off-by: Fabio Estevam --- drivers/staging/fbtft/

[PATCH 2/2] staging: fbtft: fbtft-io: Use '%zu' to print 'size_t' format

2015-02-19 Thread Fabio Estevam
When building for ARM64 the following build warnings are seen: drivers/staging/fbtft/fbtft-io.c: In function 'fbtft_write_spi_emulate_9': drivers/staging/fbtft/fbtft-io.c:63:4: warning: format '%d' expects argument of type 'int', but argument 4 has type 'size_t' [-Wformat=] drivers/staging/fbtft

[PATCH 1/1] staging: unisys: Remove unnecessary OOM message

2015-02-19 Thread Quentin Lambert
This patch reduces the kernel size by removing error messages that duplicate the normal OOM message. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr) @@ identifier f,print,l; expression e; constant char[] c; @@ e = \(kzalloc\|kmalloc\|

Re: [PATCH v8 2/4] fpga manager: add sysfs interface document

2015-02-19 Thread Michal Simek
On 02/17/2015 08:17 PM, Pavel Machek wrote: > On Tue 2015-02-17 11:07:53, Rob Landley wrote: >> >> >> On 02/15/2015 04:40 PM, Pavel Machek wrote: >>> On Wed 2015-01-21 13:27:00, Jason Gunthorpe wrote: On Wed, Jan 21, 2015 at 06:33:12PM +0200, Pantelis Antoniou wrote: My point is that the

[PATCH 0/2] Drivers: hv: hv_balloon: avoid OOM killer on the ballooning path

2015-02-19 Thread Vitaly Kuznetsov
In some cases host asks us to overballoon and this triggers OOM killer which eventually kills everyone. The easiest way to get into such situation is to avoid onlining memory-hotplugged blocks. Address the issue twice: - Report offline pages as used to the host so it won't ask us to overballoon; -

[PATCH 2/2] Drivers: hv: hv_balloon: refuse to balloon below the floor

2015-02-19 Thread Vitaly Kuznetsov
When host asks us to balloon up we need to be sure we're not committing suicide by overballooning. Use already existent 'floor' metric as our lowest possible value for free ram. Signed-off-by: Vitaly Kuznetsov --- drivers/hv/hv_balloon.c | 11 +++ 1 file changed, 11 insertions(+) diff -

[PATCH 1/2] Drivers: hv: hv_balloon: report offline pages as being used

2015-02-19 Thread Vitaly Kuznetsov
When hot-added memory pages are not brought online or when some memory blocks are sent offline the subsequent ballooning process kills the guest with OOM killer. This happens as we don't report these pages as neither used nor free and apparently host algorythm considers them as being unused. Keep t

[PATCH 2/5] unisys: use simpler kthread_ API

2015-02-19 Thread Benjamin Romer
From: Devendra Naga The code does the checks on should_stop variable in the kernel threads. The uisthread_stop function sets the should_stop and calls KILL (eventually kill_pid) to stop the thread. The checking of should_stop variable can be replaced to a call to kthread_should_stop function and

[PATCH 0/5] staging: unisys: kthread fixes (resubmission)

2015-02-19 Thread Benjamin Romer
This set contains Devendra's patches for fixing s-Par's drivers so they use the kthread API. This patch set has been tested on s-Par and works correctly. Devendra Naga (5): unisys: replace kthread_create and wake_up_process with kthread_run unisys: use simpler kthread_ API unisys: use kthre

[PATCH 1/5] unisys: replace kthread_create and wake_up_process with kthread_run

2015-02-19 Thread Benjamin Romer
From: Devendra Naga kthread_run calls kthread_create and if the thread is created it then calls wake_up_process on the corresponding returned task struct. So the code can be simplified by calling just kthread_run. Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga Signed-off-by: Benj

[PATCH 5/5] unisys: remove the thread variable and API

2015-02-19 Thread Benjamin Romer
From: Devendra Naga remove the should_stop variable and KILL API as they are no longer required Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga Signed-off-by: Benjamin Romer --- drivers/staging/unisys/include/uisthread.h | 1 - drivers/staging/unisys/uislib/uisthread.c | 2 --

[PATCH 4/5] unisys: use kthread_should_stop API in the lib thread

2015-02-19 Thread Benjamin Romer
From: Devendra Naga convert the users of should_stop into using kthread_should_stop API. Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga Signed-off-by: Benjamin Romer --- drivers/staging/unisys/uislib/uislib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 3/5] unisys: use kthread_should_stop in the thread

2015-02-19 Thread Benjamin Romer
From: Devendra Naga convert the users of should_stop variable into kthread_should_stop() API. Cc: Ken Cox Cc: Benjamin Romer Signed-off-by: Devendra Naga Signed-off-by: Benjamin Romer --- drivers/staging/unisys/virthba/virthba.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif

Gong Xi Fa Cai Bonus

2015-02-19 Thread Telekom Malaysia Berhad
Telekom Malaysia Berhad G.03B, Ground Floor, Kompleks Antarabangsa, Jln Sultan Ismail, Off Jalan Ampang 50250 Kuala Lumpur Malaysia. NOTIS RASMI HADIAH TELEKOM MALAYSIA Pihak Telekom Malaysia @Program Kemenangan yang telah diadakan pada 9th Februari 2015 di mana alamat email anda yang disertakan

[PATCH 3/4] Staging: rtl9182u: r819xU_firmware: Replaced C99 comments with C89

2015-02-19 Thread Tolga Ceylan
Replaced C99 comments with C89. Signed-off-by: Tolga Ceylan --- drivers/staging/rtl8192u/r819xU_firmware.c | 33 +++--- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/drivers/staging/rtl8192u/r819xU_firmware.c b/drivers/staging/rtl8192u/r819xU_firmware.c

[PATCH 2/4] Staging: rtl8192u: r819xU_firmware: removed commented out assert

2015-02-19 Thread Tolga Ceylan
Removed an assert that was commented out. The comment provides no documentation value as rt_status is properly handled. Signed-off-by: Tolga Ceylan --- drivers/staging/rtl8192u/r819xU_firmware.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/rtl8192u/r819xU_firmware.c b/dr

[PATCH 1/4] Staging: rtl8192u: r819xU_firmware: removed commented out variable

2015-02-19 Thread Tolga Ceylan
Removed commented out variable Signed-off-by: Tolga Ceylan --- drivers/staging/rtl8192u/r819xU_firmware.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/rtl8192u/r819xU_firmware.c b/drivers/staging/rtl8192u/r819xU_firmware.c index c230be2..9d0067e 100644 --- a/drivers/stagin

[PATCH 4/4] Staging: rtl8192u: r819xU_firmware: added space after comma

2015-02-19 Thread Tolga Ceylan
Resolved space required after that ',' errors reported by checkpatch. Signed-off-by: Tolga Ceylan --- drivers/staging/rtl8192u/r819xU_firmware.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/drivers/staging/rtl8192u/r819xU_firmware.c b/drivers/staging/rt

Re: [PATCH 4/4] Staging: rtl8192u: r819xU_firmware: added space after comma

2015-02-19 Thread Joe Perches
On Thu, 2015-02-19 at 21:54 -0800, Tolga Ceylan wrote: > Resolved space required after that ',' errors reported by checkpatch. trivia: > diff --git a/drivers/staging/rtl8192u/r819xU_firmware.c > b/drivers/staging/rtl8192u/r819xU_firmware.c [] > @@ -66,7 +66,7 @@ static bool fw_download_code(stru