* [Patch] Add necessary #includes to asm-powerpc/spu.h
@ 2006-12-08 17:10 Maynard Johnson
2006-12-08 17:54 ` Arnd Bergmann
0 siblings, 1 reply; 2+ messages in thread
From: Maynard Johnson @ 2006-12-08 17:10 UTC (permalink / raw)
To: cbe-oss-dev, linux-kernel, linuxppc-dev
[-- Attachment #1: Type: text/plain, Size: 1 bytes --]
[-- Attachment #2: spu-h-includes.patch --]
[-- Type: text/x-diff, Size: 857 bytes --]
Subject: Add necessary #includes to asm-powerpc/spu.h.
From: Maynard Johnson <maynardj@us.ibm.com>
This patch adds a couple of #includes to asm-powerpc/spu.h to
prevent compilation warnings that can occur when spu.h is
included from a source file where fs.h and notifier.h have
not been included already.
Signed-off-by: Maynard Johnson <mpjohn@us.ibm.com>
Index: linux-2.6.19-rc6-arnd1+patches/include/asm-powerpc/spu.h
===================================================================
--- linux-2.6.19-rc6-arnd1+patches.orig/include/asm-powerpc/spu.h 2006-12-04 10:56:17.406636032 -0600
+++ linux-2.6.19-rc6-arnd1+patches/include/asm-powerpc/spu.h 2006-12-08 10:38:10.069679312 -0600
@@ -24,6 +24,8 @@
#define _SPU_H
#ifdef __KERNEL__
+#include <linux/fs.h>
+#include <linux/notifier.h>
#include <linux/workqueue.h>
#include <linux/sysdev.h>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Patch] Add necessary #includes to asm-powerpc/spu.h
2006-12-08 17:10 [Patch] Add necessary #includes to asm-powerpc/spu.h Maynard Johnson
@ 2006-12-08 17:54 ` Arnd Bergmann
0 siblings, 0 replies; 2+ messages in thread
From: Arnd Bergmann @ 2006-12-08 17:54 UTC (permalink / raw)
To: cbe-oss-dev; +Cc: linuxppc-dev, linux-kernel
On Friday 08 December 2006 18:10, Maynard Johnson wrote:
> #define _SPU_H
> #ifdef __KERNEL__
>
> +#include <linux/fs.h>
> +#include <linux/notifier.h>
> #include <linux/workqueue.h>
> #include <linux/sysdev.h>
>
Thanks for pointing this out. I'm fixing this in a different way though,
with by adding forward-declarations of the structures to spu.h in order
to avoid making the include hierarchy worse. I'll submit that in a clean
patch along with my next batch of fixes.
Arnd <><
--- a/include/asm-powerpc/spu.h
+++ b/include/asm-powerpc/spu.h
@@ -161,6 +161,7 @@ struct spu_syscall_block {
extern long spu_sys_callback(struct spu_syscall_block *s);
/* syscalls implemented in spufs */
+struct file;
extern struct spufs_calls {
asmlinkage long (*create_thread)(const char __user *name,
unsigned int flags, mode_t mode);
@@ -232,6 +233,7 @@ void spu_remove_sysdev_attr_group(struct
* to object-id spufs file from user space and the notifer
* function can assume that spu->ctx is valid.
*/
+struct notifier_block;
int spu_switch_event_register(struct notifier_block * n);
int spu_switch_event_unregister(struct notifier_block * n);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-12-08 17:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-08 17:10 [Patch] Add necessary #includes to asm-powerpc/spu.h Maynard Johnson
2006-12-08 17:54 ` Arnd Bergmann
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).