[-mm patch] kernel/fork.c: make signal_cachep static

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 24, 2006 at 03:10:02AM -0800, Andrew Morton wrote:
>...
> Changes since 2.6.16-rc4-mm1:
>...
> +copy_process-cleanup-bad_fork_cleanup_signal.patch
>...
>  More core process/pid/thread updates from Oleg.
>...


signal_cachep can now become static.


Signed-off-by: Adrian Bunk <[email protected]>

---

 include/linux/slab.h |    1 -
 kernel/fork.c        |    2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

--- linux-2.6.16-rc4-mm2-full/include/linux/slab.h.old	2006-02-25 04:48:29.000000000 +0100
+++ linux-2.6.16-rc4-mm2-full/include/linux/slab.h	2006-02-25 04:48:36.000000000 +0100
@@ -182,7 +182,6 @@
 extern kmem_cache_t	*files_cachep;
 extern kmem_cache_t	*filp_cachep;
 extern kmem_cache_t	*fs_cachep;
-extern kmem_cache_t	*signal_cachep;
 extern kmem_cache_t	*sighand_cachep;
 extern kmem_cache_t	*bio_cachep;
 
--- linux-2.6.16-rc4-mm2-full/kernel/fork.c.old	2006-02-25 04:48:43.000000000 +0100
+++ linux-2.6.16-rc4-mm2-full/kernel/fork.c	2006-02-25 04:48:49.000000000 +0100
@@ -84,7 +84,7 @@
 #endif
 
 /* SLAB cache for signal_struct structures (tsk->signal) */
-kmem_cache_t *signal_cachep;
+static kmem_cache_t *signal_cachep;
 
 /* SLAB cache for sighand_struct structures (tsk->sighand) */
 kmem_cache_t *sighand_cachep;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux