diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/spu.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/include/asm-powerpc/spu.h b/include/asm-powerpc/spu.h index 5bde3980bf49..383ecfdf7eb0 100644 --- a/include/asm-powerpc/spu.h +++ b/include/asm-powerpc/spu.h | |||
@@ -238,14 +238,14 @@ extern long spu_sys_callback(struct spu_syscall_block *s); | |||
238 | 238 | ||
239 | /* syscalls implemented in spufs */ | 239 | /* syscalls implemented in spufs */ |
240 | struct file; | 240 | struct file; |
241 | extern struct spufs_calls { | 241 | struct spufs_calls { |
242 | asmlinkage long (*create_thread)(const char __user *name, | 242 | asmlinkage long (*create_thread)(const char __user *name, |
243 | unsigned int flags, mode_t mode, | 243 | unsigned int flags, mode_t mode, |
244 | struct file *neighbor); | 244 | struct file *neighbor); |
245 | asmlinkage long (*spu_run)(struct file *filp, __u32 __user *unpc, | 245 | asmlinkage long (*spu_run)(struct file *filp, __u32 __user *unpc, |
246 | __u32 __user *ustatus); | 246 | __u32 __user *ustatus); |
247 | struct module *owner; | 247 | struct module *owner; |
248 | } spufs_calls; | 248 | }; |
249 | 249 | ||
250 | /* coredump calls implemented in spufs */ | 250 | /* coredump calls implemented in spufs */ |
251 | struct spu_coredump_calls { | 251 | struct spu_coredump_calls { |
@@ -274,18 +274,8 @@ struct spu_coredump_calls { | |||
274 | #define SPU_CREATE_FLAG_ALL 0x003f /* mask of all valid flags */ | 274 | #define SPU_CREATE_FLAG_ALL 0x003f /* mask of all valid flags */ |
275 | 275 | ||
276 | 276 | ||
277 | #ifdef CONFIG_SPU_FS_MODULE | ||
278 | int register_spu_syscalls(struct spufs_calls *calls); | 277 | int register_spu_syscalls(struct spufs_calls *calls); |
279 | void unregister_spu_syscalls(struct spufs_calls *calls); | 278 | void unregister_spu_syscalls(struct spufs_calls *calls); |
280 | #else | ||
281 | static inline int register_spu_syscalls(struct spufs_calls *calls) | ||
282 | { | ||
283 | return 0; | ||
284 | } | ||
285 | static inline void unregister_spu_syscalls(struct spufs_calls *calls) | ||
286 | { | ||
287 | } | ||
288 | #endif /* MODULE */ | ||
289 | 279 | ||
290 | int register_arch_coredump_calls(struct spu_coredump_calls *calls); | 280 | int register_arch_coredump_calls(struct spu_coredump_calls *calls); |
291 | void unregister_arch_coredump_calls(struct spu_coredump_calls *calls); | 281 | void unregister_arch_coredump_calls(struct spu_coredump_calls *calls); |