All of lore.kernel.org
 help / color / mirror / Atom feed
From: Auger Eric <eric.auger@redhat.com>
To: kbuild test robot <lkp@intel.com>
Cc: kbuild-all@01.org, eric.auger.pro@gmail.com,
	linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
	kvmarm@lists.cs.columbia.edu, marc.zyngier@arm.com,
	christoffer.dall@arm.com, peter.maydell@linaro.org,
	andre.przywara@arm.com, drjones@redhat.com, wei@redhat.com
Subject: Re: [PATCH v7 08/13] KVM: arm/arm64: Remove kvm_vgic_vcpu_early_init
Date: Tue, 22 May 2018 14:22:15 +0200	[thread overview]
Message-ID: <b03bedea-5eac-ef9b-7e6f-d200509d8535@redhat.com> (raw)
In-Reply-To: <201805221850.wnnX64nq%fengguang.wu@intel.com>

Hi,

On 05/22/2018 02:10 PM, kbuild test robot wrote:
> Hi Eric,
> 
> Thank you for the patch! Perhaps something to improve:
> 
> [auto build test WARNING on kvmarm/next]
> [also build test WARNING on v4.17-rc6 next-20180517]
> [if your patch is applied to the wrong git tree, please drop us a note to help improve the system]
> 
> url:    https://github.com/0day-ci/linux/commits/Eric-Auger/KVM-arm-arm64-Allow-multiple-GICv3-redistributor-regions/20180522-004717
> base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git next
> config: arm-axm55xx_defconfig (attached as .config)
> compiler: arm-linux-gnueabi-gcc (Debian 7.2.0-11) 7.2.0
> reproduce:
>         wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
>         chmod +x ~/bin/make.cross
>         # save the attached .config to linux build tree
>         make.cross ARCH=arm 
> 
> Note: it may well be a FALSE warning. FWIW you are at least aware of it now.
> http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings
> 
> All warnings (new ones prefixed by >>):
> 
>    arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-init.c: In function 'kvm_vgic_vcpu_init':
>>> arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-init.c:199:9: warning: 'ret' may be used uninitialized in this function [-Wmaybe-uninitialized]
>      int i, ret;

Fixed in v8, sent this morning. Sorry for the inconvenience.

Thanks

Eric
>             ^~~
> 
> vim +/ret +199 arch/arm/kvm/../../../virt/kvm/arm/vgic/vgic-init.c
> 
>    185	
>    186	/**
>    187	 * kvm_vgic_vcpu_init() - Initialize static VGIC VCPU data
>    188	 * structures and register VCPU-specific KVM iodevs
>    189	 *
>    190	 * @vcpu: pointer to the VCPU being created and initialized
>    191	 *
>    192	 * Only do initialization, but do not actually enable the
>    193	 * VGIC CPU interface
>    194	 */
>    195	int kvm_vgic_vcpu_init(struct kvm_vcpu *vcpu)
>    196	{
>    197		struct vgic_cpu *vgic_cpu = &vcpu->arch.vgic_cpu;
>    198		struct vgic_dist *dist = &vcpu->kvm->arch.vgic;
>  > 199		int i, ret;
>    200	
>    201		INIT_LIST_HEAD(&vgic_cpu->ap_list_head);
>    202		spin_lock_init(&vgic_cpu->ap_list_lock);
>    203	
>    204		/*
>    205		 * Enable and configure all SGIs to be edge-triggered and
>    206		 * configure all PPIs as level-triggered.
>    207		 */
>    208		for (i = 0; i < VGIC_NR_PRIVATE_IRQS; i++) {
>    209			struct vgic_irq *irq = &vgic_cpu->private_irqs[i];
>    210	
>    211			INIT_LIST_HEAD(&irq->ap_list);
>    212			spin_lock_init(&irq->irq_lock);
>    213			irq->intid = i;
>    214			irq->vcpu = NULL;
>    215			irq->target_vcpu = vcpu;
>    216			irq->targets = 1U << vcpu->vcpu_id;
>    217			kref_init(&irq->refcount);
>    218			if (vgic_irq_is_sgi(i)) {
>    219				/* SGIs */
>    220				irq->enabled = 1;
>    221				irq->config = VGIC_CONFIG_EDGE;
>    222			} else {
>    223				/* PPIs */
>    224				irq->config = VGIC_CONFIG_LEVEL;
>    225			}
>    226		}
>    227	
>    228		if (!irqchip_in_kernel(vcpu->kvm))
>    229			return 0;
>    230	
>    231		/*
>    232		 * If we are creating a VCPU with a GICv3 we must also register the
>    233		 * KVM io device for the redistributor that belongs to this VCPU.
>    234		 */
>    235		if (dist->vgic_model == KVM_DEV_TYPE_ARM_VGIC_V3) {
>    236			mutex_lock(&vcpu->kvm->lock);
>    237			ret = vgic_register_redist_iodev(vcpu);
>    238			mutex_unlock(&vcpu->kvm->lock);
>    239		}
>    240		return ret;
>    241	}
>    242	
> 
> ---
> 0-DAY kernel test infrastructure                Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
> 

  reply	other threads:[~2018-05-22 12:22 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-20 21:22 [PATCH v7 00/13] KVM: arm/arm64: Allow multiple GICv3 redistributor regions Eric Auger
2018-05-20 21:22 ` [PATCH v7 01/13] KVM: arm/arm64: Set dist->spis to NULL after kfree Eric Auger
2018-05-20 21:22   ` Eric Auger
2018-05-20 21:22 ` [PATCH v7 02/13] KVM: arm/arm64: Document KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION Eric Auger
2018-05-20 21:22 ` [PATCH v7 03/13] KVM: arm/arm64: Replace the single rdist region by a list Eric Auger
2018-05-20 21:22   ` Eric Auger
2018-05-20 21:22 ` [PATCH v7 04/13] KVM: arm/arm64: Helper to locate free rdist index Eric Auger
2018-05-20 21:22 ` [PATCH v7 05/13] KVM: arm/arm64: Revisit Redistributor TYPER last bit computation Eric Auger
2018-05-20 21:22 ` [PATCH v7 06/13] KVM: arm/arm64: Adapt vgic_v3_check_base to multiple rdist regions Eric Auger
2018-05-20 21:22 ` [PATCH v7 07/13] KVM: arm/arm64: Helper to register a new redistributor region Eric Auger
2018-05-20 21:22 ` [PATCH v7 08/13] KVM: arm/arm64: Remove kvm_vgic_vcpu_early_init Eric Auger
2018-05-21 20:21   ` kbuild test robot
2018-05-21 20:21     ` kbuild test robot
2018-05-22 12:10   ` kbuild test robot
2018-05-22 12:10     ` kbuild test robot
2018-05-22 12:22     ` Auger Eric [this message]
2018-05-20 21:22 ` [PATCH v7 09/13] KVM: arm/arm64: Check vcpu redist base before registering an iodev Eric Auger
2018-05-20 21:22 ` [PATCH v7 10/13] KVM: arm/arm64: Check all vcpu redistributors are set on map_resources Eric Auger
2018-05-20 21:22 ` [PATCH v7 11/13] KVM: arm/arm64: Add KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION Eric Auger
2018-05-20 21:22 ` [PATCH v7 12/13] KVM: arm/arm64: Implement KVM_VGIC_V3_ADDR_TYPE_REDIST_REGION Eric Auger
2018-05-20 21:22 ` [PATCH v7 13/13] KVM: arm/arm64: Bump VGIC_V3_MAX_CPUS to 512 Eric Auger

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=b03bedea-5eac-ef9b-7e6f-d200509d8535@redhat.com \
    --to=eric.auger@redhat.com \
    --cc=andre.przywara@arm.com \
    --cc=christoffer.dall@arm.com \
    --cc=drjones@redhat.com \
    --cc=eric.auger.pro@gmail.com \
    --cc=kbuild-all@01.org \
    --cc=kvm@vger.kernel.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lkp@intel.com \
    --cc=marc.zyngier@arm.com \
    --cc=peter.maydell@linaro.org \
    --cc=wei@redhat.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.