summaryrefslogtreecommitdiff
path: root/libpager/pager-create.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-04-28 19:46:10 +0000
committerRoland McGrath <roland@gnu.org>1996-04-28 19:46:10 +0000
commit328500869ca823e16d4b09a718547e9e57b77bc6 (patch)
tree8a30384b349d6ecb45ddbbad88a96c0a68af8dee /libpager/pager-create.c
parentdb04fb4260b06f074f59801064fbf9e787f52f7b (diff)
(pager_create): Add link warning.
Diffstat (limited to 'libpager/pager-create.c')
-rw-r--r--libpager/pager-create.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/libpager/pager-create.c b/libpager/pager-create.c
index 64d480cc..f4bdb8bf 100644
--- a/libpager/pager-create.c
+++ b/libpager/pager-create.c
@@ -19,15 +19,15 @@
/* Create and return a new pager with user info UPI. */
struct pager *
-pager_create (struct user_pager_info *upi,
+pager_create (struct user_pager_info *upi,
struct port_bucket *bucket,
boolean_t may_cache,
memory_object_copy_strategy_t copy_strategy)
{
struct pager *p;
-
+
p = ports_allocate_port (bucket, sizeof (struct pager), _pager_class);
-
+
p->upi = upi;
p->pager_state = NOTINIT;
mutex_init (&p->interlock);
@@ -48,7 +48,10 @@ pager_create (struct user_pager_info *upi,
return p;
}
-
+#include "linkwarn.h"
+link_warning (pager_create, "lousy interface can't return errno")
+
+
/* This causes the function to be run at startup by compiler magic. */
static void create_class (void) __attribute__ ((constructor));
@@ -59,4 +62,4 @@ create_class ()
(void) &create_class; /* Avoid warning */
}
-
+