[PATCH 0/3] Minor updates for PS3

STALE3298d

10 messages, 5 authors, 2017-08-18 · open the first message on its own page

[PATCH 0/3] Minor updates for PS3

From: Geoff Levand <geoff@infradead.org>
Date: 2017-08-07 20:09:27

Hi Michael,

A few very minor updates for PS3.  Please apply.

-Geoff

The following changes since commit aae4e7a8bc44722fe70d58920a36916b1043195e:

  Linux 4.13-rc4 (2017-08-06 18:44:49 -0700)

are available in the git repository at:

  git://git.kernel.org/pub/scm/linux/kernel/git/geoff/ps3-linux.git for-merge-powerpc

for you to fetch changes up to 1c2ef56f08fcfcf74aa281c33363197f8c01e5ab:

  powerpc/ps3: Refresh ps3_defconfig (2017-08-07 12:49:07 -0700)

----------------------------------------------------------------
Geoff Levand (2):
      block/ps3vram: Check return of ps3vram_cache_init
      powerpc/ps3: Refresh ps3_defconfig

Markus Elfring (1):
      block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init()

 arch/powerpc/configs/ps3_defconfig |  2 --
 drivers/block/ps3vram.c            | 10 ++++++----
 2 files changed, 6 insertions(+), 6 deletions(-)
-- 
2.11.0

[PATCH 1/3] block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init()

From: Geoff Levand <geoff@infradead.org>
Date: 2017-08-07 20:09:28

From: Markus Elfring <redacted>

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf

Signed-off-by: Markus Elfring <redacted>
Cc: Jim Paris <jim@jtan.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 drivers/block/ps3vram.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/block/ps3vram.c b/drivers/block/ps3vram.c
index e0e81cacd781..ba97d037279e 100644
--- a/drivers/block/ps3vram.c
+++ b/drivers/block/ps3vram.c
@@ -409,10 +409,8 @@ static int ps3vram_cache_init(struct ps3_system_bus_device *dev)
 	priv->cache.page_size = CACHE_PAGE_SIZE;
 	priv->cache.tags = kzalloc(sizeof(struct ps3vram_tag) *
 				   CACHE_PAGE_COUNT, GFP_KERNEL);
-	if (priv->cache.tags == NULL) {
-		dev_err(&dev->core, "Could not allocate cache tags\n");
+	if (!priv->cache.tags)
 		return -ENOMEM;
-	}
 
 	dev_info(&dev->core, "Created ram cache: %d entries, %d KiB each\n",
 		CACHE_PAGE_COUNT, CACHE_PAGE_SIZE / 1024);
-- 
2.11.0

[PATCH 3/3] powerpc/ps3: Refresh ps3_defconfig

From: Geoff Levand <geoff@infradead.org>
Date: 2017-08-07 20:09:32

Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 arch/powerpc/configs/ps3_defconfig | 2 --
 1 file changed, 2 deletions(-)
diff --git a/arch/powerpc/configs/ps3_defconfig b/arch/powerpc/configs/ps3_defconfig
index ee0ec5a682fc..378382683180 100644
--- a/arch/powerpc/configs/ps3_defconfig
+++ b/arch/powerpc/configs/ps3_defconfig
@@ -5,7 +5,6 @@ CONFIG_SMP=y
 CONFIG_NR_CPUS=2
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
-CONFIG_FHANDLE=y
 CONFIG_HIGH_RES_TIMERS=y
 CONFIG_BLK_DEV_INITRD=y
 CONFIG_CC_OPTIMIZE_FOR_SIZE=y
@@ -94,7 +93,6 @@ CONFIG_USB_USBNET=m
 # CONFIG_USB_NET_CDC_SUBSET is not set
 # CONFIG_USB_NET_ZAURUS is not set
 CONFIG_INPUT_FF_MEMLESS=m
-# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
 CONFIG_INPUT_JOYDEV=m
 CONFIG_INPUT_EVDEV=m
 # CONFIG_INPUT_KEYBOARD is not set
-- 
2.11.0

[PATCH 2/3] block/ps3vram: Check return of ps3vram_cache_init

From: Geoff Levand <geoff@infradead.org>
Date: 2017-08-07 20:09:32

Cc: Markus Elfring <redacted>
Cc: Jim Paris <jim@jtan.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Geoff Levand <geoff@infradead.org>
---
 drivers/block/ps3vram.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/drivers/block/ps3vram.c b/drivers/block/ps3vram.c
index ba97d037279e..6a55959cbf78 100644
--- a/drivers/block/ps3vram.c
+++ b/drivers/block/ps3vram.c
@@ -741,7 +741,11 @@ static int ps3vram_probe(struct ps3_system_bus_device *dev)
 		goto out_unmap_reports;
 	}
 
-	ps3vram_cache_init(dev);
+	error = ps3vram_cache_init(dev);
+	if (error < 0) {
+		goto out_unmap_reports;
+	}
+
 	ps3vram_proc_init(dev);
 
 	queue = blk_alloc_queue(GFP_KERNEL);
-- 
2.11.0

Re: [PATCH 0/3] Minor updates for PS3

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-08-08 10:16:19

Geoff Levand [off-list ref] writes:
Hi Michael,

A few very minor updates for PS3.  Please apply.
Jens do you want to take the block ones, or should I just take the lot?

cheers

Re: block/ps3vram: Check return of ps3vram_cache_init

From: SF Markus Elfring <hidden>
Date: 2017-08-08 12:53:23

quoted hunk
@@ -741,7 +741,11 @@ static int ps3vram_probe(struct ps3_system_bus_device *dev)
 		goto out_unmap_reports;
 	}
 
-	ps3vram_cache_init(dev);
+	error = ps3vram_cache_init(dev);
+	if (error < 0) {
+		goto out_unmap_reports;
+	}
+
 	ps3vram_proc_init(dev);
 
 	queue = blk_alloc_queue(GFP_KERNEL);
I pointed a few development concerns out.
https://patchwork.ozlabs.org/patch/798575/

Will the commit subject “block/ps3vram: Check return value of ps3vram_cache_init()”
be more appropriate?

Regards,
Markus

Re: [PATCH 0/3] Minor updates for PS3

From: Jens Axboe <axboe@kernel.dk>
Date: 2017-08-08 14:26:02

On 08/08/2017 04:16 AM, Michael Ellerman wrote:
Geoff Levand [off-list ref] writes:
quoted
Hi Michael,

A few very minor updates for PS3.  Please apply.
Jens do you want to take the block ones, or should I just take the lot?
Up to you, I'm fine either way.

-- 
Jens Axboe

Re: [PATCH 0/3] Minor updates for PS3

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-08-09 06:16:23

Jens Axboe [off-list ref] writes:
On 08/08/2017 04:16 AM, Michael Ellerman wrote:
quoted
Geoff Levand [off-list ref] writes:
quoted
Hi Michael,

A few very minor updates for PS3.  Please apply.
Jens do you want to take the block ones, or should I just take the lot?
Up to you, I'm fine either way.
OK I'll grab them.

cheers

Re: [1/3] block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init()

From: Michael Ellerman <hidden>
Date: 2017-08-18 12:51:02

On Mon, 2017-08-07 at 20:09:20 UTC, Geoff Levand wrote:
From: Markus Elfring <redacted>

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.

Link: http://events.linuxfoundation.org/sites/events/files/slides/LCJ16-Refactor_Strings-WSang_0.pdf

Signed-off-by: Markus Elfring <redacted>
Cc: Jim Paris <jim@jtan.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/fd1335e048a961ef63f7da1a0c8f39

cheers

Re: [2/3] block/ps3vram: Check return of ps3vram_cache_init

From: Michael Ellerman <hidden>
Date: 2017-08-18 12:51:03

On Mon, 2017-08-07 at 20:09:20 UTC, Geoff Levand wrote:
Cc: Markus Elfring <redacted>
Cc: Jim Paris <jim@jtan.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Geoff Levand <geoff@infradead.org>
Applied to powerpc next, thanks.

https://git.kernel.org/powerpc/c/00e7c259e9c44f414ead5fc9bb3c45

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help