diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2017-01-27 18:27:16 +0200 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-01-31 14:04:06 +1100 |
commit | 25e6a11832bcd0715068f0cc24fb46ec03de676e (patch) | |
tree | bec81ce27a36dc09cbba58b2d549efce13823242 /hw/ppc/virtex_ml507.c | |
parent | c636367311e892a9c5b93eaf53f59091729266e7 (diff) |
ppc: switch to constants within BUILD_BUG_ON
We are switching BUILD_BUG_ON to verify that it's parameter is a
compile-time constant, and it turns out that some gcc versions
(specifically gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609) are
not smart enough to figure it out for expressions involving local
variables. This is harmless but means that the check is ineffective for
these platforms. To fix, replace the variable with macros.
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
[dwg: Correct a printf format warning]
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ppc/virtex_ml507.c')
0 files changed, 0 insertions, 0 deletions