Skip to contentSkip to conversation

tools: nuke unused function

PATCH New Christoph Egger 1 participant 1 message Sep 2, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: nuke unused function

Hi!

Attached patch nukes the unused is_loadable_phdr() function. W/o the 'inline' gcc complains about this.

Signature · 6 lines
---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
tools/libxc/xc_hvm_build.c +0 -6
diff -r 8fc927798476 tools/libxc/xc_hvm_build.c
@@ -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.
  */

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel