From: Christoph Egger Subject: [PATCH] tools: nuke unused function Date: Wed, 2 Sep 2009 16:56:45 +0200 Message-ID: <200909021656.45915.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_teonKEdSgctAKjf" 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=_teonKEdSgctAKjf Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi! Attached patch nukes the unused is_loadable_phdr() function. W/o the 'inline' gcc complains about this. Signed-off-by: Christoph Egger -- ---to satisfy European Law for business letters: Advanced Micro Devices GmbH Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen Geschaeftsfuehrer: Andrew Bowd, Thomas M. McCoy, Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632 --Boundary-00=_teonKEdSgctAKjf Content-Type: text/x-diff; charset="iso 8859-15"; name="xen_tools_libxc.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen_tools_libxc.diff" diff -r 8fc927798476 tools/libxc/xc_hvm_build.c --- a/tools/libxc/xc_hvm_build.c Tue Sep 01 11:36:51 2009 +0100 +++ b/tools/libxc/xc_hvm_build.c Wed Sep 02 16:52:00 2009 +0200 @@ -342,12 +342,6 @@ static int xc_hvm_build_internal(int xc_ return setup_guest(xc_handle, domid, memsize, target, image, image_size); } -static inline int is_loadable_phdr(Elf32_Phdr *phdr) -{ - return ((phdr->p_type == PT_LOAD) && - ((phdr->p_flags & (PF_W|PF_X)) != 0)); -} - /* xc_hvm_build: * Create a domain for a virtualized Linux, using files/filenames. */ --Boundary-00=_teonKEdSgctAKjf 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=_teonKEdSgctAKjf--