[2.6 patch] kernel/exit.c: make exit_mm static

From: Adrian Bunk (bunk_at_stusta.de)
Date: 03/27/05

  • Next message: Adrian Bunk: "[2.6 patch] unexport idle_cpu"
    Date:	Sun, 27 Mar 2005 16:34:58 +0200
    To: Andrew Morton <akpm@osdl.org>
    
    

    This patch makes a needlessly global function static.

    Signed-off-by: Adrian Bunk <bunk@stusta.de>

    ---
    This patch was already sent on:
    - 3 Mar 2005
     include/linux/sched.h |    1 -
     kernel/exit.c         |    4 +++-
     2 files changed, 3 insertions(+), 2 deletions(-)
    --- linux-2.6.11-rc5-mm1-full/include/linux/sched.h.old	2005-03-03 14:52:53.000000000 +0100
    +++ linux-2.6.11-rc5-mm1-full/include/linux/sched.h	2005-03-03 14:55:02.000000000 +0100
    @@ -1030,7 +1030,6 @@
     extern void flush_thread(void);
     extern void exit_thread(void);
     
    -extern void exit_mm(struct task_struct *);
     extern void exit_files(struct task_struct *);
     extern void exit_signal(struct task_struct *);
     extern void __exit_signal(struct task_struct *);
    --- linux-2.6.11-rc5-mm1-full/kernel/exit.c.old	2005-03-03 14:53:48.000000000 +0100
    +++ linux-2.6.11-rc5-mm1-full/kernel/exit.c	2005-03-03 14:55:28.000000000 +0100
    @@ -39,6 +39,8 @@
     
     int getrusage(struct task_struct *, int, struct rusage __user *);
     
    +static void exit_mm(struct task_struct * tsk);
    +
     static void __unhash_process(struct task_struct *p)
     {
     	nr_threads--;
    @@ -475,7 +477,7 @@
      * Turn us into a lazy TLB process if we
      * aren't already..
      */
    -void exit_mm(struct task_struct * tsk)
    +static void exit_mm(struct task_struct * tsk)
     {
     	struct mm_struct *mm = tsk->mm;
     
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: Adrian Bunk: "[2.6 patch] unexport idle_cpu"

    Relevant Pages

    • [2.6 patch] remove ACPI S4bios support
      ... This patch was sent by Pavel Machek on: ... static struct pm_ops acpi_pm_ops; ... extern void do_suspend_lowlevel; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] page->flags corruption fix
      ... do with the race condition in question anyways. ... So I would suggest to cook a patch for this orthogonal optimization ... extern void FASTCALL); ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH][help?] Radeonfb acpi resume
      ... I've been forward porting this patch for a while now and need ... +extern void do_vgapost_lowlevel; ... _setbad: jmp setbad ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] Remove syscall declarations from linux/key.h
      ... they're not really necessary - only entry.S should be calling them. ... extern void key_fsuid_changed(struct task_struct *tsk); ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • [PATCH] Clean up MAX_NR_NODES/NUMNODES/etc. [1/5]
      ... > but that patch is utterly useless now. ... extern void get_memcfg_from_srat; ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)