[Cbe-oss-dev] [PATCH] enable SPU coredump for kernel-builtin spufs

Akinobu Mita mita at fixstars.com
Tue Mar 13 17:08:17 EST 2007


SPU coredump code cannot be called when spufs is built is built
into kernel.

Cc: Arnd Bergmann <arnd at arndb.de>
Signed-off-by: Akinobu Mita <mita at fixstars.com>

Index: 2.6-git-ps3/arch/powerpc/platforms/cell/spu_coredump.c
===================================================================
--- 2.6-git-ps3.orig/arch/powerpc/platforms/cell/spu_coredump.c
+++ 2.6-git-ps3/arch/powerpc/platforms/cell/spu_coredump.c
@@ -36,7 +36,7 @@ int arch_notes_size(void)
 
 	ret = -ENOSYS;
 	mutex_lock(&spu_coredump_mutex);
-	if (owner && try_module_get(owner)) {
+	if (try_module_get(owner)) {
 		ret = spu_coredump_calls.arch_notes_size();
 		module_put(owner);
 	}
@@ -49,7 +49,7 @@ void arch_write_notes(struct file *file)
 	struct module *owner = spu_coredump_calls.owner;
 
 	mutex_lock(&spu_coredump_mutex);
-	if (owner && try_module_get(owner)) {
+	if (try_module_get(owner)) {
 		spu_coredump_calls.arch_write_notes(file);
 		module_put(owner);
 	}



More information about the cbe-oss-dev mailing list