Source-Changes-HG archive

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

[src/trunk]: src/sys/rump Get rid of the rump__init() macro. it was never us...



details:   https://anonhg.NetBSD.org/src/rev/222bc40aa212
branches:  trunk
changeset: 786362:222bc40aa212
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Apr 27 15:13:11 2013 +0000

description:
Get rid of the rump__init() macro.  it was never useful and just makes
debugging less obvious.

diffstat:

 sys/rump/include/rump/rump.h     |  11 ++---------
 sys/rump/librump/rumpkern/rump.c |  14 +++++---------
 2 files changed, 7 insertions(+), 18 deletions(-)

diffs (81 lines):

diff -r 128596553827 -r 222bc40aa212 sys/rump/include/rump/rump.h
--- a/sys/rump/include/rump/rump.h      Sat Apr 27 15:01:21 2013 +0000
+++ b/sys/rump/include/rump/rump.h      Sat Apr 27 15:13:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.h,v 1.55 2012/11/21 17:41:27 pooka Exp $  */
+/*     $NetBSD: rump.h,v 1.56 2013/04/27 15:13:11 pooka Exp $  */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -91,13 +91,6 @@
        RUMP_ETFS_DIR_SUBDIRS   /* dir + subdirectories (recursive) */
 };
 
-/*
- * Something like rump capabilities would be nicer, but let's
- * do this for a start.
- */
-#define RUMP_VERSION                   01
-#define rump_init()                    rump__init(RUMP_VERSION)
-
 /* um, what's the point ?-) */
 #ifdef _BEGIN_DECLS
 _BEGIN_DECLS
@@ -113,7 +106,7 @@
 void   rump_printevcnts(void);
 
 int    rump_daemonize_begin(void);
-int    rump__init(int);
+int    rump_init(void);
 int    rump_init_server(const char *);
 int    rump_daemonize_done(int);
 #define RUMP_DAEMONIZE_SUCCESS 0
diff -r 128596553827 -r 222bc40aa212 sys/rump/librump/rumpkern/rump.c
--- a/sys/rump/librump/rumpkern/rump.c  Sat Apr 27 15:01:21 2013 +0000
+++ b/sys/rump/librump/rumpkern/rump.c  Sat Apr 27 15:13:11 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rump.c,v 1.258 2013/04/27 14:59:09 pooka Exp $ */
+/*     $NetBSD: rump.c,v 1.259 2013/04/27 15:13:11 pooka Exp $ */
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.258 2013/04/27 14:59:09 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rump.c,v 1.259 2013/04/27 15:13:11 pooka Exp $");
 
 #include <sys/systm.h>
 #define ELFSIZE ARCH_ELFSIZE
@@ -229,7 +229,7 @@
 }
 
 int
-rump__init(int rump_version)
+rump_init(void)
 {
        char buf[256];
        struct timespec ts;
@@ -281,12 +281,6 @@
        initmsgbuf(rump_msgbuf, sizeof(rump_msgbuf));
        aprint_verbose("%s%s", copyright, version);
 
-       if (rump_version != RUMP_VERSION) {
-               printf("rump version mismatch, %d vs. %d\n",
-                   rump_version, RUMP_VERSION);
-               return EPROGMISMATCH;
-       }
-
        rump_intr_init(numcpu);
        rump_tsleep_init();
 
@@ -534,6 +528,8 @@
 
        return 0;
 }
+/* historic compat */
+__strong_alias(rump__init,rump_init);
 
 int
 rump_init_server(const char *url)



Home | Main Index | Thread Index | Old Index