qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-arm] [Qemu-devel] [v2 PATCH] hw/arm/bcm2835_peripherals: add b


From: no-reply
Subject: Re: [Qemu-arm] [Qemu-devel] [v2 PATCH] hw/arm/bcm2835_peripherals: add bcm283x sp804-alike timer
Date: Sat, 9 Feb 2019 20:22:36 -0800 (PST)

Patchew URL: https://patchew.org/QEMU/address@hidden/



Hi,

This series failed the address@hidden build test. Please find the testing 
commands and
their output below. If you have Docker installed, you can probably reproduce it
locally.

=== TEST SCRIPT BEGIN ===
#!/bin/bash
time make address@hidden SHOW_ENV=1 J=14
=== TEST SCRIPT END ===

                 from /tmp/qemu-test/src/include/hw/qdev.h:4,
                 from /tmp/qemu-test/src/include/hw/sysbus.h:6,
                 from /tmp/qemu-test/src/hw/timer/bcm283x_timer.c:2:
/tmp/qemu-test/src/include/qom/object.h:518:12: error: expected ')' before '*' 
token
     ((type *)object_dynamic_cast_assert(OBJECT(obj), (name), \
            ^
/tmp/qemu-test/src/include/hw/timer/bcm283x_timer.h:24:5: note: in expansion of 
macro 'OBJECT_CHECK'
     OBJECT_CHECK(BCM283xSP804State, (obj), TYPE_BCM283xSP804)
     ^~~~~~~~~~~~
/tmp/qemu-test/src/include/qom/object.h:518:14: error: expected ')' before 
'object_dynamic_cast_assert'
     ((type *)object_dynamic_cast_assert(OBJECT(obj), (name), \
              ^~~~~~~~~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/include/hw/timer/bcm283x_timer.h:24:5: note: in expansion of 
macro 'OBJECT_CHECK'
     OBJECT_CHECK(BCM283xSP804State, (obj), TYPE_BCM283xSP804)
     ^~~~~~~~~~~~
In file included from /tmp/qemu-test/src/hw/timer/bcm283x_timer.c:7:
/tmp/qemu-test/src/include/hw/timer/bcm283x_timer.h:32:5: error: unknown type 
name 'bcm283x_timer_state'
     bcm283x_timer_state *timer;
     ^~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:33:34: error: unknown type name 
'bcm283x_timer_state'; did you mean 'ptimer_state'?
 static void bcm283x_timer_update(bcm283x_timer_state *s)
                                  ^~~~~~~~~~~~~~~~~~~
                                  ptimer_state
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c: In function 'bcm283x_timer_read':
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:44:5: error: unknown type name 
'bcm283x_timer_state'; use 'struct' keyword to refer to the type
     bcm283x_timer_state *s = (bcm283x_timer_state *) opaque;
     ^~~~~~~~~~~~~~~~~~~
     struct 
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:44:31: error: 'bcm283x_timer_state' 
undeclared (first use in this function)
     bcm283x_timer_state *s = (bcm283x_timer_state *) opaque;
                               ^~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:44:31: note: each undeclared 
identifier is reported only once for each function it appears in
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:44:52: error: expected expression 
before ')' token
     bcm283x_timer_state *s = (bcm283x_timer_state *) opaque;
                                                    ^
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:49:17: error: request for member 
'limit' in something not a structure or union
         return s->limit;
                 ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:51:34: error: request for member 
'timer' in something not a structure or union
         return ptimer_get_count(s->timer);
                                  ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:53:17: error: request for member 
'control' in something not a structure or union
         return s->control;
                 ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:61:17: error: request for member 
'int_level' in something not a structure or union
         return s->int_level;
                 ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:63:15: error: request for member 
'control' in something not a structure or union
         if ((s->control & TIMER_CTRL_IE) == 0) {
               ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:66:17: error: request for member 
'int_level' in something not a structure or union
         return s->int_level;
                 ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c: At top level:
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:74:39: error: unknown type name 
'bcm283x_timer_state'; did you mean 'ptimer_state'?
 static void bcm283x_timer_recalibrate(bcm283x_timer_state *s, int reload)
                                       ^~~~~~~~~~~~~~~~~~~
                                       ptimer_state
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c: In function 'bcm283x_timer_write':
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:86:5: error: unknown type name 
'bcm283x_timer_state'; use 'struct' keyword to refer to the type
     bcm283x_timer_state *s = (bcm283x_timer_state *) opaque;
     ^~~~~~~~~~~~~~~~~~~
     struct 
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:86:31: error: 'bcm283x_timer_state' 
undeclared (first use in this function)
     bcm283x_timer_state *s = (bcm283x_timer_state *) opaque;
                               ^~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:86:52: error: expected expression 
before ')' token
     bcm283x_timer_state *s = (bcm283x_timer_state *) opaque;
                                                    ^
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:91:10: error: request for member 
'limit' in something not a structure or union
         s->limit = value;
          ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:92:9: error: implicit declaration 
of function 'bcm283x_timer_recalibrate'; did you mean 'bcm283x_timer_write'? 
[-Werror=implicit-function-declaration]
         bcm283x_timer_recalibrate(s, 1);
         ^~~~~~~~~~~~~~~~~~~~~~~~~
         bcm283x_timer_write
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:92:9: error: nested extern 
declaration of 'bcm283x_timer_recalibrate' [-Werror=nested-externs]
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:98:14: error: request for member 
'control' in something not a structure or union
         if (s->control & TIMER_CTRL_ENABLE) {
              ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:99:26: error: request for member 
'timer' in something not a structure or union
             ptimer_stop(s->timer);
                          ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:102:10: error: request for member 
'control' in something not a structure or union
         s->control = value;
          ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:103:17: error: request for member 
'freq' in something not a structure or union
         freq = s->freq;
                 ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:115:39: error: request for member 
'control' in something not a structure or union
         bcm283x_timer_recalibrate(s, s->control & TIMER_CTRL_ENABLE);
                                       ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:116:26: error: request for member 
'timer' in something not a structure or union
         ptimer_set_freq(s->timer, freq);
                          ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:117:14: error: request for member 
'control' in something not a structure or union
         if (s->control & TIMER_CTRL_ENABLE) {
              ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:118:25: error: request for member 
'timer' in something not a structure or union
             ptimer_run(s->timer, 0);
                         ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:122:10: error: request for member 
'int_level' in something not a structure or union
         s->int_level = 0;
          ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:125:10: error: request for member 
'limit' in something not a structure or union
         s->limit = value;
          ^~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:134:5: error: implicit declaration 
of function 'bcm283x_timer_update'; did you mean 'bcm283x_timer_write'? 
[-Werror=implicit-function-declaration]
     bcm283x_timer_update(s);
     ^~~~~~~~~~~~~~~~~~~~
     bcm283x_timer_write
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:134:5: error: nested extern 
declaration of 'bcm283x_timer_update' [-Werror=nested-externs]
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c: In function 'bcm283x_timer_tick':
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:139:5: error: unknown type name 
'bcm283x_timer_state'; use 'struct' keyword to refer to the type
     bcm283x_timer_state *s = (bcm283x_timer_state *) opaque;
     ^~~~~~~~~~~~~~~~~~~
     struct 
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:139:31: error: 
'bcm283x_timer_state' undeclared (first use in this function)
     bcm283x_timer_state *s = (bcm283x_timer_state *) opaque;
                               ^~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:139:52: error: expected expression 
before ')' token
     bcm283x_timer_state *s = (bcm283x_timer_state *) opaque;
                                                    ^
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:140:6: error: request for member 
'int_level' in something not a structure or union
     s->int_level = 1;
      ^~
In file included from /usr/lib/gcc/x86_64-w64-mingw32/8.2.0/include/stddef.h:1,
---
                 from /tmp/qemu-test/src/include/qemu/osdep.h:103,
                 from /tmp/qemu-test/src/hw/timer/bcm283x_timer.c:1:
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c: At top level:
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:149:33: error: unknown type name 
'bcm283x_timer_state'
         VMSTATE_UINT32(control, bcm283x_timer_state),
                                 ^~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/include/migration/vmstate.h:282:21: note: in expansion of 
macro 'vmstate_offset_value'
---
         ^~~~~~~~~~~~~~
In file included from /tmp/qemu-test/src/include/qemu/osdep.h:51,
                 from /tmp/qemu-test/src/hw/timer/bcm283x_timer.c:1:
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:149:33: error: 
'bcm283x_timer_state' undeclared here (not in a function)
         VMSTATE_UINT32(control, bcm283x_timer_state),
                                 ^~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/include/qemu/compiler.h:74:38: note: in definition of macro 
'type_check'
---
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:149:9: note: in expansion of macro 
'VMSTATE_UINT32'
         VMSTATE_UINT32(control, bcm283x_timer_state),
         ^~~~~~~~~~~~~~
/tmp/qemu-test/src/include/qemu/compiler.h:73:50: error: expected expression 
before ')' token
 #define typeof_field(type, field) typeof(((type *)0)->field)
                                                  ^
/tmp/qemu-test/src/include/qemu/compiler.h:74:38: note: in definition of macro 
'type_check'
---
                 from 
/usr/x86_64-w64-mingw32/sys-root/mingw/include/inttypes.h:14,
                 from /tmp/qemu-test/src/include/qemu/osdep.h:103,
                 from /tmp/qemu-test/src/hw/timer/bcm283x_timer.c:1:
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:150:31: error: expected 
specifier-qualifier-list before 'bcm283x_timer_state'
         VMSTATE_UINT32(limit, bcm283x_timer_state),
                               ^~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/include/migration/vmstate.h:282:21: note: in expansion of 
macro 'vmstate_offset_value'
---
         ^~~~~~~~~~~~~~
In file included from /tmp/qemu-test/src/include/qemu/osdep.h:51,
                 from /tmp/qemu-test/src/hw/timer/bcm283x_timer.c:1:
/tmp/qemu-test/src/include/qemu/compiler.h:73:50: error: expected expression 
before ')' token
 #define typeof_field(type, field) typeof(((type *)0)->field)
                                                  ^
/tmp/qemu-test/src/include/qemu/compiler.h:74:38: note: in definition of macro 
'type_check'
---
                 from 
/usr/x86_64-w64-mingw32/sys-root/mingw/include/inttypes.h:14,
                 from /tmp/qemu-test/src/include/qemu/osdep.h:103,
                 from /tmp/qemu-test/src/hw/timer/bcm283x_timer.c:1:
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:151:34: error: expected 
specifier-qualifier-list before 'bcm283x_timer_state'
         VMSTATE_INT32(int_level, bcm283x_timer_state),
                                  ^~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/include/migration/vmstate.h:282:21: note: in expansion of 
macro 'vmstate_offset_value'
---
         ^~~~~~~~~~~~~
In file included from /tmp/qemu-test/src/include/qemu/osdep.h:51,
                 from /tmp/qemu-test/src/hw/timer/bcm283x_timer.c:1:
/tmp/qemu-test/src/include/qemu/compiler.h:73:50: error: expected expression 
before ')' token
 #define typeof_field(type, field) typeof(((type *)0)->field)
                                                  ^
/tmp/qemu-test/src/include/qemu/compiler.h:74:38: note: in definition of macro 
'type_check'
---
                 from 
/usr/x86_64-w64-mingw32/sys-root/mingw/include/inttypes.h:14,
                 from /tmp/qemu-test/src/include/qemu/osdep.h:103,
                 from /tmp/qemu-test/src/hw/timer/bcm283x_timer.c:1:
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:152:31: error: expected 
specifier-qualifier-list before 'bcm283x_timer_state'
         VMSTATE_PTIMER(timer, bcm283x_timer_state),
                               ^~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/include/migration/vmstate.h:449:21: note: in expansion of 
macro 'vmstate_offset_pointer'
---
                 from /tmp/qemu-test/src/include/hw/qdev.h:4,
                 from /tmp/qemu-test/src/include/hw/sysbus.h:6,
                 from /tmp/qemu-test/src/hw/timer/bcm283x_timer.c:2:
/tmp/qemu-test/src/include/qemu/compiler.h:73:50: error: expected expression 
before ')' token
 #define typeof_field(type, field) typeof(((type *)0)->field)
                                                  ^
/tmp/qemu-test/src/include/migration/vmstate.h:231:47: note: in definition of 
macro 'type_check_pointer'
---
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:152:9: note: in expansion of macro 
'VMSTATE_PTIMER'
         VMSTATE_PTIMER(timer, bcm283x_timer_state),
         ^~~~~~~~~~~~~~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:157:28: error: expected '=', ',', 
';', 'asm' or '__attribute__' before '*' token
 static bcm283x_timer_state *bcm283x_timer_init(uint32_t freq)
                            ^
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c: In function 'bcm283xsp804_init':
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:254:45: error: expected expression 
before ';' token
     BCM283xSP804State *s = BCM283xSP804(obj);
                                             ^
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c: In function 'bcm283xsp804_realize':
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:266:45: error: expected expression 
before ';' token
     BCM283xSP804State *s = BCM283xSP804(dev);
                                             ^
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:268:16: error: implicit declaration 
of function 'bcm283x_timer_init'; did you mean 'bcm283x_timer_write'? 
[-Werror=implicit-function-declaration]
     s->timer = bcm283x_timer_init(s->freq0);
                ^~~~~~~~~~~~~~~~~~
                bcm283x_timer_write
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:268:16: error: nested extern 
declaration of 'bcm283x_timer_init' [-Werror=nested-externs]
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:268:14: error: assignment to 'int 
*' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
     s->timer = bcm283x_timer_init(s->freq0);
              ^
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:269:13: error: request for member 
'irq' in something not a structure or union
     s->timer->irq = qemu_allocate_irq(bcm283xsp804_set_irq, s, 0);
             ^~
At top level:
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:144:33: error: 
'vmstate_bcm283x_timer' defined but not used [-Werror=unused-const-variable=]
 static const VMStateDescription vmstate_bcm283x_timer = {
                                 ^~~~~~~~~~~~~~~~~~~~~
/tmp/qemu-test/src/hw/timer/bcm283x_timer.c:137:13: error: 'bcm283x_timer_tick' 
defined but not used [-Werror=unused-function]
 static void bcm283x_timer_tick(void *opaque)
             ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors


The full log is available at
http://patchew.org/logs/address@hidden/address@hidden/?type=message.
---
Email generated automatically by Patchew [http://patchew.org/].
Please send your feedback to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]