Hi Andreas, On 06/05/14 16:51, Andreas Herrmann wrote: > ... to get rid of its function definition from archs that don't > support it. Maybe it makes sense to put this patch before the main mips one so that the function doesn't have to be added for mips in the first place Cheers James > > Signed-off-by: Andreas Herrmann <andreas.herrmann@xxxxxxxxxxxxxxxxxx> > --- > tools/kvm/arm/fdt.c | 7 ------- > tools/kvm/kvm.c | 6 ++++++ > tools/kvm/mips/kvm.c | 6 ------ > tools/kvm/powerpc/kvm.c | 7 ------- > 4 files changed, 6 insertions(+), 20 deletions(-) > > diff --git a/tools/kvm/arm/fdt.c b/tools/kvm/arm/fdt.c > index 30cd75a..186a718 100644 > --- a/tools/kvm/arm/fdt.c > +++ b/tools/kvm/arm/fdt.c > @@ -276,10 +276,3 @@ int load_flat_binary(struct kvm *kvm, int fd_kernel, int fd_initrd, > > return true; > } > - > -bool load_bzimage(struct kvm *kvm, int fd_kernel, int fd_initrd, > - const char *kernel_cmdline) > -{ > - /* To b or not to b? That is the zImage. */ > - return false; > -} > diff --git a/tools/kvm/kvm.c b/tools/kvm/kvm.c > index 278b915..e1b9f6c 100644 > --- a/tools/kvm/kvm.c > +++ b/tools/kvm/kvm.c > @@ -355,6 +355,12 @@ int __attribute__((__weak__)) load_elf_binary(struct kvm *kvm, int fd_kernel, > return false; > } > > +bool __attribute__((__weak__)) load_bzimage(struct kvm *kvm, int fd_kernel, > + int fd_initrd, const char *kernel_cmdline) > +{ > + return false; > +} > + > bool kvm__load_kernel(struct kvm *kvm, const char *kernel_filename, > const char *initrd_filename, const char *kernel_cmdline) > { > diff --git a/tools/kvm/mips/kvm.c b/tools/kvm/mips/kvm.c > index 09192c8..fc0428b 100644 > --- a/tools/kvm/mips/kvm.c > +++ b/tools/kvm/mips/kvm.c > @@ -323,12 +323,6 @@ int load_elf_binary(struct kvm *kvm, int fd_kernel, int fd_initrd, const char *k > return true; > } > > -bool load_bzimage(struct kvm *kvm, int fd_kernel, int fd_initrd, > - const char *kernel_cmdline) > -{ > - return false; > -} > - > void ioport__map_irq(u8 *irq) > { > } > diff --git a/tools/kvm/powerpc/kvm.c b/tools/kvm/powerpc/kvm.c > index c1712cf..2b03a12 100644 > --- a/tools/kvm/powerpc/kvm.c > +++ b/tools/kvm/powerpc/kvm.c > @@ -204,13 +204,6 @@ int load_flat_binary(struct kvm *kvm, int fd_kernel, int fd_initrd, const char * > return true; > } > > -bool load_bzimage(struct kvm *kvm, int fd_kernel, int fd_initrd, > - const char *kernel_cmdline) > -{ > - /* We don't support bzImages. */ > - return false; > -} > - > struct fdt_prop { > void *value; > int size; > -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html