* [PATCH 0/3] Minor updates for PS3
@ 2017-08-07 20:09 Geoff Levand
2017-08-07 20:09 ` [PATCH 3/3] powerpc/ps3: Refresh ps3_defconfig Geoff Levand
` (3 more replies)
0 siblings, 4 replies; 10+ messages in thread
From: Geoff Levand @ 2017-08-07 20:09 UTC (permalink / raw)
To: Michael Ellerman
Cc: Benjamin Herrenschmidt, linuxppc-dev, Jim Paris, Jens Axboe,
Markus Elfring
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
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/3] block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init()
2017-08-07 20:09 [PATCH 0/3] Minor updates for PS3 Geoff Levand
2017-08-07 20:09 ` [PATCH 3/3] powerpc/ps3: Refresh ps3_defconfig Geoff Levand
2017-08-07 20:09 ` [PATCH 2/3] block/ps3vram: Check return of ps3vram_cache_init Geoff Levand
@ 2017-08-07 20:09 ` Geoff Levand
2017-08-18 12:51 ` [1/3] " Michael Ellerman
2017-08-08 10:16 ` [PATCH 0/3] Minor updates for PS3 Michael Ellerman
3 siblings, 1 reply; 10+ messages in thread
From: Geoff Levand @ 2017-08-07 20:09 UTC (permalink / raw)
To: Michael Ellerman
Cc: Benjamin Herrenschmidt, linuxppc-dev, Jim Paris, Jens Axboe,
Markus Elfring
From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
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
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/3] powerpc/ps3: Refresh ps3_defconfig
2017-08-07 20:09 [PATCH 0/3] Minor updates for PS3 Geoff Levand
@ 2017-08-07 20:09 ` Geoff Levand
2017-08-07 20:09 ` [PATCH 2/3] block/ps3vram: Check return of ps3vram_cache_init Geoff Levand
` (2 subsequent siblings)
3 siblings, 0 replies; 10+ messages in thread
From: Geoff Levand @ 2017-08-07 20:09 UTC (permalink / raw)
To: Michael Ellerman; +Cc: Benjamin Herrenschmidt, linuxppc-dev
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
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/3] block/ps3vram: Check return of ps3vram_cache_init
2017-08-07 20:09 [PATCH 0/3] Minor updates for PS3 Geoff Levand
2017-08-07 20:09 ` [PATCH 3/3] powerpc/ps3: Refresh ps3_defconfig Geoff Levand
@ 2017-08-07 20:09 ` Geoff Levand
2017-08-08 12:46 ` SF Markus Elfring
2017-08-18 12:51 ` [2/3] " Michael Ellerman
2017-08-07 20:09 ` [PATCH 1/3] block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init() Geoff Levand
2017-08-08 10:16 ` [PATCH 0/3] Minor updates for PS3 Michael Ellerman
3 siblings, 2 replies; 10+ messages in thread
From: Geoff Levand @ 2017-08-07 20:09 UTC (permalink / raw)
To: Michael Ellerman
Cc: Benjamin Herrenschmidt, linuxppc-dev, Jim Paris, Jens Axboe,
Markus Elfring
Cc: Markus Elfring <elfring@users.sourceforge.net>
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
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [PATCH 0/3] Minor updates for PS3
2017-08-07 20:09 [PATCH 0/3] Minor updates for PS3 Geoff Levand
` (2 preceding siblings ...)
2017-08-07 20:09 ` [PATCH 1/3] block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init() Geoff Levand
@ 2017-08-08 10:16 ` Michael Ellerman
2017-08-08 14:25 ` Jens Axboe
3 siblings, 1 reply; 10+ messages in thread
From: Michael Ellerman @ 2017-08-08 10:16 UTC (permalink / raw)
To: Jens Axboe
Cc: Benjamin Herrenschmidt, linuxppc-dev, Jim Paris, Markus Elfring,
Geoff Levand
Geoff Levand <geoff@infradead.org> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: block/ps3vram: Check return of ps3vram_cache_init
2017-08-07 20:09 ` [PATCH 2/3] block/ps3vram: Check return of ps3vram_cache_init Geoff Levand
@ 2017-08-08 12:46 ` SF Markus Elfring
2017-08-18 12:51 ` [2/3] " Michael Ellerman
1 sibling, 0 replies; 10+ messages in thread
From: SF Markus Elfring @ 2017-08-08 12:46 UTC (permalink / raw)
To: Geoff Levand, linuxppc-dev
Cc: Benjamin Herrenschmidt, Jens Axboe, Jim Paris, Michael Ellerman
> @@ -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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/3] Minor updates for PS3
2017-08-08 10:16 ` [PATCH 0/3] Minor updates for PS3 Michael Ellerman
@ 2017-08-08 14:25 ` Jens Axboe
2017-08-09 6:16 ` Michael Ellerman
0 siblings, 1 reply; 10+ messages in thread
From: Jens Axboe @ 2017-08-08 14:25 UTC (permalink / raw)
To: Michael Ellerman
Cc: Benjamin Herrenschmidt, linuxppc-dev, Jim Paris, Markus Elfring,
Geoff Levand
On 08/08/2017 04:16 AM, Michael Ellerman wrote:
> Geoff Levand <geoff@infradead.org> 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?
Up to you, I'm fine either way.
--
Jens Axboe
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/3] Minor updates for PS3
2017-08-08 14:25 ` Jens Axboe
@ 2017-08-09 6:16 ` Michael Ellerman
0 siblings, 0 replies; 10+ messages in thread
From: Michael Ellerman @ 2017-08-09 6:16 UTC (permalink / raw)
To: Jens Axboe
Cc: Benjamin Herrenschmidt, linuxppc-dev, Jim Paris, Markus Elfring,
Geoff Levand
Jens Axboe <axboe@kernel.dk> writes:
> On 08/08/2017 04:16 AM, Michael Ellerman wrote:
>> Geoff Levand <geoff@infradead.org> 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?
>
> Up to you, I'm fine either way.
OK I'll grab them.
cheers
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [1/3] block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init()
2017-08-07 20:09 ` [PATCH 1/3] block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init() Geoff Levand
@ 2017-08-18 12:51 ` Michael Ellerman
0 siblings, 0 replies; 10+ messages in thread
From: Michael Ellerman @ 2017-08-18 12:51 UTC (permalink / raw)
To: Geoff Levand; +Cc: Jens Axboe, linuxppc-dev, Markus Elfring, Jim Paris
On Mon, 2017-08-07 at 20:09:20 UTC, Geoff Levand wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
>
> 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 <elfring@users.sourceforge.net>
> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [2/3] block/ps3vram: Check return of ps3vram_cache_init
2017-08-07 20:09 ` [PATCH 2/3] block/ps3vram: Check return of ps3vram_cache_init Geoff Levand
2017-08-08 12:46 ` SF Markus Elfring
@ 2017-08-18 12:51 ` Michael Ellerman
1 sibling, 0 replies; 10+ messages in thread
From: Michael Ellerman @ 2017-08-18 12:51 UTC (permalink / raw)
To: Geoff Levand; +Cc: Jens Axboe, linuxppc-dev, Markus Elfring, Jim Paris
On Mon, 2017-08-07 at 20:09:20 UTC, Geoff Levand wrote:
> Cc: Markus Elfring <elfring@users.sourceforge.net>
> 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
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2017-08-18 12:51 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-07 20:09 [PATCH 0/3] Minor updates for PS3 Geoff Levand
2017-08-07 20:09 ` [PATCH 3/3] powerpc/ps3: Refresh ps3_defconfig Geoff Levand
2017-08-07 20:09 ` [PATCH 2/3] block/ps3vram: Check return of ps3vram_cache_init Geoff Levand
2017-08-08 12:46 ` SF Markus Elfring
2017-08-18 12:51 ` [2/3] " Michael Ellerman
2017-08-07 20:09 ` [PATCH 1/3] block/ps3vram: Delete an error message for a failed memory allocation in ps3vram_cache_init() Geoff Levand
2017-08-18 12:51 ` [1/3] " Michael Ellerman
2017-08-08 10:16 ` [PATCH 0/3] Minor updates for PS3 Michael Ellerman
2017-08-08 14:25 ` Jens Axboe
2017-08-09 6:16 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).