From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: Richard Henderson <rth@twiddle.net>
Cc: "qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
"Emilio G. Cota" <cota@braap.org>,
"Pranith Kumar" <bobby.prani@gmail.com>,
"Alex Bennée" <alex.bennee@linaro.org>,
"David Gibson" <david@gibson.dropbear.id.au>,
"Geert Martin Ijewski" <gm.ijewski@web.de>
Subject: Re: [Qemu-devel] [PATCH] util/cacheinfo: add missing include
Date: Tue, 11 Jul 2017 00:27:25 -0300 [thread overview]
Message-ID: <CAAdtpL6dNsEtutF3Tj0s1X-ZYepMWfLYNsAUMsgcA=BTvdLDiw@mail.gmail.com> (raw)
In-Reply-To: <12cda13a-cdba-c480-6f6c-67811135a8a1@twiddle.net>
Hi Richard,
On Mon, Jul 10, 2017 at 11:38 PM, Richard Henderson <rth@twiddle.net> wrote:
> On 07/10/2017 03:55 PM, Philippe Mathieu-Daudé wrote:
>>
>> This include was forgotten when splitting cacheinfo.c out of
>> tcg/ppc/tcg-target.inc.c (see commit b255b2c8).
>>
>> While compiling on powerpc:
>>
>> CC util/cacheinfo.o
>> qemu/util/cacheinfo.c: In function 'arch_cache_info':
>> qemu/util/cacheinfo.c:137:33: error: 'AT_ICACHEBSIZE' undeclared
>> (first use in this function)
>> *isize = qemu_getauxval(AT_ICACHEBSIZE);
>> ^
>> qemu/util/cacheinfo.c:137:33: note: each undeclared identifier is
>> reported only once for each function it appears in
>> qemu/util/cacheinfo.c:140:33: error: 'AT_DCACHEBSIZE' undeclared
>> (first use in this function)
>> *dsize = qemu_getauxval(AT_DCACHEBSIZE);
>> ^
>> qemu/rules.mak:66: recipe for target 'util/cacheinfo.o' failed
>> make: *** [util/cacheinfo.o] Error 1
>
>
> For the record, what is the os version?
> Because this doesn't happen here for Centos7.
Oops true I forgot to log this info in the commit.
This happens on debian/powerpc Jessie, using GCC 4.9.2-10
$ make subdir-ppc-softmmu
CC util/cacheinfo.o
/home/phil/source/qemu/util/cacheinfo.c: In function 'arch_cache_info':
/home/phil/source/qemu/util/cacheinfo.c:137:33: error:
'AT_ICACHEBSIZE' undeclared (first use in this function)
*isize = qemu_getauxval(AT_ICACHEBSIZE);
^
compiling with -dU:
#define _ARCH_PPC 1
# 134 "/home/phil/source/qemu/util/cacheinfo.c"
static void arch_cache_info(int *isize, int *dsize)
{
if (*isize == 0) {
*isize = qemu_getauxval(AT_ICACHEBSIZE);
}
if (*dsize == 0) {
*dsize = qemu_getauxval(AT_DCACHEBSIZE);
}
}
Regards,
Phil.
next prev parent reply other threads:[~2017-07-11 3:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-11 1:55 [Qemu-devel] [PATCH] util/cacheinfo: add missing include Philippe Mathieu-Daudé
2017-07-11 2:38 ` Richard Henderson
2017-07-11 3:27 ` Philippe Mathieu-Daudé [this message]
2017-07-12 1:02 ` Richard Henderson
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='CAAdtpL6dNsEtutF3Tj0s1X-ZYepMWfLYNsAUMsgcA=BTvdLDiw@mail.gmail.com' \
--to=f4bug@amsat.org \
--cc=alex.bennee@linaro.org \
--cc=bobby.prani@gmail.com \
--cc=cota@braap.org \
--cc=david@gibson.dropbear.id.au \
--cc=gm.ijewski@web.de \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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).