qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Hannes Reinecke <hare@suse.de>
To: Gerhard Wiesinger <lists@wiesinger.com>
Cc: Alexander Graf <agraf@suse.de>,
	qemu-devel@nongnu.org, Andreas Faerber <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH][v11] megasas: LSI Megaraid SAS HBA emulation
Date: Fri, 17 Feb 2012 15:15:06 +0100	[thread overview]
Message-ID: <4F3E60EA.4080801@suse.de> (raw)
In-Reply-To: <alpine.LFD.2.02.1202171459570.16501@bbs.intern>

On 02/17/2012 03:03 PM, Gerhard Wiesinger wrote:
> Hello Hannes,
> 
> Reason for my problems of non working megasas is that megasas.o was
> no compiled:
> 
> Details:
> Makefile.objs
> #hw-obj-$(CONFIG_MEGASAS_SCSI_PCI) += megasas.o
> # OK:
> hw-obj-y += megasas.o
> 
> Although:
> ./default-configs/pci.mak:CONFIG_MEGASAS_SCSI_PCI=y
> 
> Did also a new configure run.
> 
> Any ideas?
> 
> Errors with the patch:
> /root/download/qemu/git/qemu-kvm/hw/megasas.c: In function
> .megasas_init_firmware.:
> /root/download/qemu/git/qemu-kvm/hw/megasas.c:568:14: error:
> variable .reply_queue_tail. set but not used
> [-Werror=unused-but-set-variable]
> /root/download/qemu/git/qemu-kvm/hw/megasas.c:565:28: error:
> variable .iq_pl. set but not used [-Werror=unused-but-set-variable]
> /root/download/qemu/git/qemu-kvm/hw/megasas.c: In function
> .megasas_dcmd_ld_get_list.:
> /root/download/qemu/git/qemu-kvm/hw/megasas.c:995:32: error:
> variable .max_ld_disks. set but not used
> [-Werror=unused-but-set-variable]
> /root/download/qemu/git/qemu-kvm/hw/megasas.c: In function
> .megasas_handle_dcmd.:
> /root/download/qemu/git/qemu-kvm/hw/megasas.c:1203:17: error:
> variable .size. set but not used [-Werror=unused-but-set-variable]
> /root/download/qemu/git/qemu-kvm/hw/megasas.c: In function
> .megasas_xfer_complete.:
> /root/download/qemu/git/qemu-kvm/hw/megasas.c:1386:14: error:
> variable .bytes_left. set but not used
> [-Werror=unused-but-set-variable]
> /root/download/qemu/git/qemu-kvm/hw/megasas.c: In function
> .megasas_handle_frame.:
> /root/download/qemu/git/qemu-kvm/hw/megasas.c:1490:13: error:
> variable .frame_cmd. set but not used [-Werror=unused-but-set-variable]
> /root/download/qemu/git/qemu-kvm/hw/megasas.c: At top level:
> /root/download/qemu/git/qemu-kvm/hw/megasas.c:1872:1: error: data
> definition has no type or storage class [-Werror]
> /root/download/qemu/git/qemu-kvm/hw/megasas.c:1872:1: error: type
> defaults to .int. in declaration of .type_init. [-Werror=implicit-int]
> /root/download/qemu/git/qemu-kvm/hw/megasas.c:1872:1: error:
> parameter names (without types) in function declaration [-Werror]
> /root/download/qemu/git/qemu-kvm/hw/megasas.c:1867:13: error:
> .megaraid1078_register_types. defined but not used
> [-Werror=unused-function]
> cc1: all warnings being treated as errors
> 
> gcc --version
> gcc (GCC) 4.6.2 20111027 (Red Hat 4.6.2-1)
> 
> Please submit a new patch which removes unused variables, etc.
> 

As already mentioned, this patch is against qemu.git, not qemu-kvm.git.
The latter doesn't (yet) have the infrastructure changes, so
obviously it won't compile there.

For the unused variables I'll be updating the patch.

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      zSeries & Storage
hare@suse.de			      +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: J. Hawn, J. Guild, F. Imendörffer, HRB 16746 (AG Nürnberg)

  reply	other threads:[~2012-02-17 14:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-17  8:31 [Qemu-devel] [PATCH][v11] megasas: LSI Megaraid SAS HBA emulation Hannes Reinecke
2012-02-17 14:03 ` Gerhard Wiesinger
2012-02-17 14:15   ` Hannes Reinecke [this message]
2012-02-17 17:11     ` Gerhard Wiesinger
2012-02-18 10:11       ` Avi Kivity
2012-02-18 11:15         ` Gerhard Wiesinger
2012-02-18 11:53           ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F3E60EA.4080801@suse.de \
    --to=hare@suse.de \
    --cc=afaerber@suse.de \
    --cc=agraf@suse.de \
    --cc=lists@wiesinger.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).