lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 17 Nov 2006 21:44:13 -0800 (PST) From: Christoph Lameter <clameter@....com> To: linux-kernel@...r.kernel.org Cc: linux-mm@...ck.org, Manfred Spraul <manfred@...orfullife.com>, Christoph Lameter <clameter@....com>, Pekka Enberg <penberg@...helsinki.fi> Subject: [RFC 6/7] Use an external declaration in exit.c for fs_cachep Use an external declaration in exit.c for fs_cachep. fs_cachep is only used in kernel/exit.c and in kernel/fork.c. It is defined in kernel/fork.c so we need to add an external declaration to kernel/exit.c to be able to avoid the declaration. Signed-off-by: Christoph Lameter <clameter@....com> Index: linux-2.6.19-rc5-mm2/include/linux/slab.h =================================================================== --- linux-2.6.19-rc5-mm2.orig/include/linux/slab.h 2006-11-17 23:04:05.859898302 -0600 +++ linux-2.6.19-rc5-mm2/include/linux/slab.h 2006-11-17 23:04:09.679562142 -0600 @@ -298,7 +298,6 @@ static inline void kmem_set_shrinker(kme /* System wide caches */ extern kmem_cache_t *names_cachep; -extern kmem_cache_t *fs_cachep; #endif /* __KERNEL__ */ Index: linux-2.6.19-rc5-mm2/kernel/exit.c =================================================================== --- linux-2.6.19-rc5-mm2.orig/kernel/exit.c 2006-11-15 16:48:11.485511089 -0600 +++ linux-2.6.19-rc5-mm2/kernel/exit.c 2006-11-17 23:04:09.764530373 -0600 @@ -48,6 +48,8 @@ #include <asm/pgtable.h> #include <asm/mmu_context.h> +extern kmem_cache_t *fs_cachep; + extern void sem_exit (void); static void exit_mm(struct task_struct * tsk); - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists