Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use the same style for initialization of pool_alloc...
details: https://anonhg.NetBSD.org/src/rev/56c630a5e407
branches: trunk
changeset: 773253:56c630a5e407
user: he <he%NetBSD.org@localhost>
date: Sun Jan 29 20:20:18 2012 +0000
description:
Use the same style for initialization of pool_allocator_kmem under
POOL_SUBPAGE as all the other poll_allocator structs. Fixes build
problem for acorn26.
diffstat:
sys/kern/subr_pool.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r e736721c5cdb -r 56c630a5e407 sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c Sun Jan 29 20:16:16 2012 +0000
+++ b/sys/kern/subr_pool.c Sun Jan 29 20:20:18 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_pool.c,v 1.192 2012/01/28 00:00:06 rmind Exp $ */
+/* $NetBSD: subr_pool.c,v 1.193 2012/01/29 20:20:18 he Exp $ */
/*-
* Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008, 2010
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.192 2012/01/28 00:00:06 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.193 2012/01/29 20:20:18 he Exp $");
#include "opt_ddb.h"
#include "opt_pool.h"
@@ -2752,7 +2752,9 @@
void pool_subpage_free(struct pool *, void *);
struct pool_allocator pool_allocator_kmem = {
- pool_subpage_alloc, pool_subpage_free, POOL_SUBPAGE,
+ .pa_alloc = pool_subpage_alloc,
+ .pa_free = pool_subpage_free,
+ .pa_pagesz = POOL_SUBPAGE
};
void *pool_subpage_alloc_nointr(struct pool *, int);
Home |
Main Index |
Thread Index |
Old Index