From mboxrd@z Thu Jan 1 00:00:00 1970 From: Prerna Saxena Subject: [PATCH 1/3] export tdb_hash() Date: Tue, 8 Jun 2010 12:31:38 +0530 Message-ID: <20100608123138.353f46f3@zephyr> References: <20100608122803.6a684a5e@zephyr> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Anthony Liguori , Stefan Hajnoczi , kvm@vger.kernel.org, Kiszka , Jan@us.ibm.com, maneesh@linux.vnet.ibm.com, ananth@linux.vnet.ibm.com To: qemu-devel@nongnu.org Return-path: Received: from e28smtp02.in.ibm.com ([122.248.162.2]:44767 "EHLO e28smtp02.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753833Ab0FHHBs (ORCPT ); Tue, 8 Jun 2010 03:01:48 -0400 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by e28smtp02.in.ibm.com (8.14.4/8.13.1) with ESMTP id o5871kTY001514 for ; Tue, 8 Jun 2010 12:31:46 +0530 Received: from d28av03.in.ibm.com (d28av03.in.ibm.com [9.184.220.65]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o5871fYo2973708 for ; Tue, 8 Jun 2010 12:31:41 +0530 Received: from d28av03.in.ibm.com (loopback [127.0.0.1]) by d28av03.in.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id o5871eQS015922 for ; Tue, 8 Jun 2010 17:01:41 +1000 In-Reply-To: <20100608122803.6a684a5e@zephyr> Sender: kvm-owner@vger.kernel.org List-ID: This exports tdb_hash() for use by tracing framework. Signed-off-by: Prerna Saxena --- qdict.c | 2 +- qdict.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/qdict.c b/qdict.c index 175bc17..5261872 100644 --- a/qdict.c +++ b/qdict.c @@ -56,7 +56,7 @@ QDict *qobject_to_qdict(const QObject *obj) * tdb_hash(): based on the hash agorithm from gdbm, via tdb * (from module-init-tools) */ -static unsigned int tdb_hash(const char *name) +unsigned int tdb_hash(const char *name) { unsigned value; /* Used to compute the hash value. */ unsigned i; /* Used to cycle through random values. */ diff --git a/qdict.h b/qdict.h index 5e5902c..d221c18 100644 --- a/qdict.h +++ b/qdict.h @@ -59,4 +59,6 @@ int64_t qdict_get_try_int(const QDict *qdict, const char *key, int64_t err_value); const char *qdict_get_try_str(const QDict *qdict, const char *key); +/* Export tdb_hash() for use by trace framework */ +unsigned int tdb_hash(const char *name); #endif /* QDICT_H */ -- 1.6.2.5 -- Prerna Saxena Linux Technology Centre, IBM Systems and Technology Lab, Bangalore, India