All of lore.kernel.org
 help / color / mirror / Atom feed
From: Oleksandr <olekstysh@gmail.com>
To: Julien Grall <julien.grall.oss@gmail.com>,
	Stefano Stabellini <sstabellini@kernel.org>
Cc: xen-devel <xen-devel@lists.xenproject.org>,
	famzheng@amazon.com, Doug Goldstein <cardoe@cardoe.com>,
	Wei Liu <wl@xen.org>, Bertrand Marquis <Bertrand.Marquis@arm.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>
Subject: Re: [PATCH V5 00/22] IOREQ feature (+ virtio-mmio) on Arm
Date: Tue, 26 Jan 2021 02:14:22 +0200	[thread overview]
Message-ID: <a277d66a-0bb4-22ea-badb-c3f415a5d09f@gmail.com> (raw)
In-Reply-To: <CAJ=z9a2YpESuHGfZXoRTGj5mxhwar37Na3eYkX90QffYKf1r1Q@mail.gmail.com>


On 26.01.21 01:20, Julien Grall wrote:

Hi Julien, Stefano

> On Mon, 25 Jan 2021 at 20:56, Stefano Stabellini <sstabellini@kernel.org> wrote:
>> Julien,
> Hi,
>
>> This seems to be an arm randconfig failure:
>>
>> https://gitlab.com/xen-project/patchew/xen/-/pipelines/246632953
>> https://gitlab.com/xen-project/patchew/xen/-/jobs/985455044
> Thanks! The error is:
>
> #'target_mem_ref' not supported by expression#'memory.c: In function
> 'do_memory_op':
> memory.c:1210:18: error:  may be used uninitialized in this function
> [-Werror=maybe-uninitialized]
>   1210 |             rc = set_foreign_p2m_entry(currd, d, gfn_list[i],
>        |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>   1211 |                                        _mfn(mfn_list[i]));
>        |                                        ~~~~~~~~~~~~~~~~~~
>
> I found a few references online of the error message, but it is not
> clear what it means. From a quick look at Oleksandr's branch, I also
> can't spot anything unitialized. Any ideas?
It seems that error happens if *both* CONFIG_GRANT_TABLE and 
CONFIG_IOREQ_SERVER are disabled. Looks like that mfn_list is 
initialized either in acquire_grant_table() or in acquire_ioreq_server().
If these options disabled then corresponding helpers are just stubs, so 
indeed that mfn_list gets uninitialized. But, I am not sure why gcc 
complains about it as set_foreign_p2m_entry() is *not* going to be 
called in that case???



-- 
Regards,

Oleksandr Tyshchenko



  reply	other threads:[~2021-01-26  0:15 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <161160798888.13183.15031685460985886988@c667a6b167f6>
2021-01-25 20:56 ` [PATCH V5 00/22] IOREQ feature (+ virtio-mmio) on Arm Stefano Stabellini
2021-01-25 23:20   ` Julien Grall
2021-01-26  0:14     ` Oleksandr [this message]
2021-01-27 10:13       ` Oleksandr
2021-01-27 10:51         ` Jan Beulich
2021-01-27 11:15           ` Oleksandr
2021-01-27 11:22             ` Jan Beulich
2021-01-27 11:29               ` Oleksandr
2021-01-27 15:29           ` Julien Grall
2021-01-27 15:46             ` Jan Beulich
2021-01-25 19:08 Oleksandr Tyshchenko
2021-01-27 16:43 ` Julien Grall
2021-01-27 16:50   ` Oleksandr
2021-01-27 17:33     ` Julien Grall
2021-01-27 17:37       ` Oleksandr
2021-01-27 17:42         ` Julien Grall
2021-01-27 17:45           ` Oleksandr
2021-01-28 14:37             ` Oleksandr
2021-01-28 15:14               ` Julien Grall
2021-01-28 17:55                 ` Oleksandr
2021-01-28 16:11 ` Julien Grall
2021-01-28 17:24   ` Stefano Stabellini
2021-01-28 17:44     ` Julien Grall
2021-01-28 18:10       ` Andrew Cooper
2021-01-28 18:16         ` Julien Grall
2021-01-28 18:21           ` Julien Grall
2021-01-28 20:10           ` Andrew Cooper
2021-01-28 21:19             ` Julien Grall
2021-01-28 19:44         ` Oleksandr
2021-01-29  1:15           ` Oleksandr

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=a277d66a-0bb4-22ea-badb-c3f415a5d09f@gmail.com \
    --to=olekstysh@gmail.com \
    --cc=Bertrand.Marquis@arm.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=cardoe@cardoe.com \
    --cc=famzheng@amazon.com \
    --cc=julien.grall.oss@gmail.com \
    --cc=sstabellini@kernel.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.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 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.