Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Nov 2002 13:08:46 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 20978 for review
Message-ID:  <200211112108.gABL8kbL094314@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=20978

Change 20978 by jhb@jhb_laptop on 2002/11/11 13:07:58

	Make witness_list() static.

Affected files ...

.. //depot/projects/smpng/sys/kern/subr_witness.c#63 edit
.. //depot/projects/smpng/sys/sys/lock.h#20 edit

Differences ...

==== //depot/projects/smpng/sys/kern/subr_witness.c#63 (text+ko) ====

@@ -145,6 +145,7 @@
 static void	witness_lock_list_free(struct lock_list_entry *lle);
 static struct	lock_instance *find_instance(struct lock_list_entry *lock_list,
 					     struct lock_object *lock);
+static int	witness_list(struct thread *td);
 static int	witness_list_lock(struct lock_instance *instance);
 #if defined(DDB)
 static void	witness_display_list(void(*prnt)(const char *fmt, ...),
@@ -1399,7 +1400,7 @@
 /*
  * Calling this on td != curthread is bad unless we are in ddb.
  */
-int
+static int
 witness_list(struct thread *td)
 {
 	int nheld;

==== //depot/projects/smpng/sys/sys/lock.h#20 (text+ko) ====

@@ -205,7 +205,6 @@
 void	witness_save(struct lock_object *, const char **, int *);
 void	witness_restore(struct lock_object *, const char *, int);
 int	witness_list_locks(struct lock_list_entry **);
-int	witness_list(struct thread *);
 int	witness_sleep(int, struct lock_object *, const char *, int);
 void	witness_assert(struct lock_object *, int, const char *, int);
 int	witness_line(struct lock_object *);

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211112108.gABL8kbL094314>