All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] move ioprio syscalls into syscalls.h
@ 2005-07-05 20:56 Anton Blanchard
  2005-07-05 20:58 ` [PATCH] ppc64: sys_ppc32.c cleanups Anton Blanchard
  2005-07-06  6:02 ` [PATCH] move ioprio syscalls into syscalls.h Jens Axboe
  0 siblings, 2 replies; 5+ messages in thread
From: Anton Blanchard @ 2005-07-05 20:56 UTC (permalink / raw)
  To: akpm; +Cc: axboe, linux-kernel


- Make ioprio syscalls return long, like set/getpriority syscalls.
- Move function prototypes into syscalls.h so we can pick them up in the
  32/64bit compat code.

Signed-off-by: Anton Blanchard <anton@samba.org>

Index: foobar2/fs/ioprio.c
===================================================================
--- foobar2.orig/fs/ioprio.c	2005-07-04 01:09:20.311694190 +1000
+++ foobar2/fs/ioprio.c	2005-07-04 01:14:30.620438688 +1000
@@ -43,7 +43,7 @@
 	return 0;
 }
 
-asmlinkage int sys_ioprio_set(int which, int who, int ioprio)
+asmlinkage long sys_ioprio_set(int which, int who, int ioprio)
 {
 	int class = IOPRIO_PRIO_CLASS(ioprio);
 	int data = IOPRIO_PRIO_DATA(ioprio);
@@ -115,7 +115,7 @@
 	return ret;
 }
 
-asmlinkage int sys_ioprio_get(int which, int who)
+asmlinkage long sys_ioprio_get(int which, int who)
 {
 	struct task_struct *g, *p;
 	struct user_struct *user;
Index: foobar2/include/linux/syscalls.h
===================================================================
--- foobar2.orig/include/linux/syscalls.h	2005-07-04 01:09:20.311694190 +1000
+++ foobar2/include/linux/syscalls.h	2005-07-04 01:14:43.583415901 +1000
@@ -506,4 +506,7 @@
 asmlinkage long sys_keyctl(int cmd, unsigned long arg2, unsigned long arg3,
 			   unsigned long arg4, unsigned long arg5);
 
+asmlinkage long sys_ioprio_set(int which, int who, int ioprio);
+asmlinkage long sys_ioprio_get(int which, int who);
+
 #endif
Index: foobar2/include/linux/ioprio.h
===================================================================
--- foobar2.orig/include/linux/ioprio.h	2005-07-02 15:56:13.000000000 +1000
+++ foobar2/include/linux/ioprio.h	2005-07-04 01:16:44.216312182 +1000
@@ -34,9 +34,6 @@
  */
 #define IOPRIO_BE_NR	(8)
 
-asmlinkage int sys_ioprio_set(int, int, int);
-asmlinkage int sys_ioprio_get(int, int);
-
 enum {
 	IOPRIO_WHO_PROCESS = 1,
 	IOPRIO_WHO_PGRP,

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-07-06  7:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-05 20:56 [PATCH] move ioprio syscalls into syscalls.h Anton Blanchard
2005-07-05 20:58 ` [PATCH] ppc64: sys_ppc32.c cleanups Anton Blanchard
2005-07-05 21:02   ` [PATCH] ppc64: add ioprio syscalls Anton Blanchard
2005-07-05 21:04     ` [PATCH] ppc64: remove duplicate syscall reservation Anton Blanchard
2005-07-06  6:02 ` [PATCH] move ioprio syscalls into syscalls.h Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.