summaryrefslogtreecommitdiff
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-03-06 08:48:11 -0800
committerJaroslav Kysela <perex@suse.cz>2004-03-06 08:48:11 -0800
commit20e39386f528478e1da126050db7ec739d760c1b (patch)
treee0b44fa5365f9a6b38619b00755c7b369acba75f /kernel/exit.c
parent38ace63203dddd7a039c530c4f34e4591168ed0f (diff)
[PATCH] fastcall / regparm fixes
From: Gerd Knorr <kraxel@suse.de> Current gcc's error out if a function's declaration and definition disagree about the register passing convention. The patch adds a new `fastcall' declatation primitive, and uses that in all the FASTCALL functions which we could find. A number of inconsistencies were fixed up along the way.
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index bbde654c70a7..d4d6d707c6d6 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -386,7 +386,7 @@ static inline void close_files(struct files_struct * files)
}
}
-void put_files_struct(struct files_struct *files)
+void fastcall put_files_struct(struct files_struct *files)
{
if (atomic_dec_and_test(&files->count)) {
close_files(files);
@@ -810,7 +810,7 @@ asmlinkage long sys_exit(int error_code)
do_exit((error_code&0xff)<<8);
}
-task_t *next_thread(task_t *p)
+task_t fastcall *next_thread(task_t *p)
{
struct pid_link *link = p->pids + PIDTYPE_TGID;
struct list_head *tmp, *head = &link->pidptr->task_list;