From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Egger Subject: [PATCH][TOOLS] xenperf: cleanup Date: Tue, 15 Jul 2008 15:36:07 +0200 Message-ID: <200807151536.07620.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_HfKfI0y+nHdDtbA" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_HfKfI0y+nHdDtbA Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, Attached patch makes xenperf's functions static which have no prototypes. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_HfKfI0y+nHdDtbA Content-Type: text/x-diff; charset="us-ascii"; name="tools_xenperf.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="tools_xenperf.diff" diff -r bd6d194199e5 tools/misc/xenperf.c --- a/tools/misc/xenperf.c Tue Jul 15 14:04:02 2008 +0100 +++ b/tools/misc/xenperf.c Tue Jul 15 15:22:00 2008 +0200 @@ -68,7 +68,7 @@ const char *hypercall_name_table[64] = }; #undef X -int lock_pages(void *addr, size_t len) +static int lock_pages(void *addr, size_t len) { int e = 0; #ifndef __sun__ @@ -77,7 +77,7 @@ int lock_pages(void *addr, size_t len) return (e); } -void unlock_pages(void *addr, size_t len) +static void unlock_pages(void *addr, size_t len) { #ifndef __sun__ munlock(addr, len); --Boundary-00=_HfKfI0y+nHdDtbA Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_HfKfI0y+nHdDtbA--