[RTEMS Project] #4694: sptests/sp37 fails to compile if RTEMS_SMP is not defined

RTEMS trac trac at rtems.org
Tue Aug 2 14:47:10 UTC 2022


#4694: sptests/sp37 fails to compile if RTEMS_SMP is not defined
-----------------------------------+--------------------
  Reporter:  Lucian-Raul Silistru  |      Owner:  joel@…
      Type:  defect                |     Status:  new
  Priority:  normal                |  Milestone:  6.1
 Component:  test                  |    Version:  6
  Severity:  normal                |   Keywords:
Blocked By:                        |   Blocking:
-----------------------------------+--------------------
 Issue seems to be caused by lines 191-193 and 207 in
 testsuites/sptests/sp37/init.c
 - name is undefined
 - _ISR_lock_Initialize is "(void)name"

 In file included from
 ../../../../../../RTEMS/cpukit/include/rtems/rtems/intr.h:70,
                  from ../../../../../../RTEMS/cpukit/include/rtems.h:69,
                  from ../../../../../../RTEMS/bsps/include/bsp/default-
 initial-extension.h:40,
                  from
 ../../../../../../RTEMS/bsps/myriad2/ma2x8x/include/bsp.h:27,
                  from
 ../../../../../../RTEMS/testsuites/support/include/tmacros.h:41,
                  from
 ../../../../../../RTEMS/testsuites/sptests/sp37/system.h:35,
                  from
 ../../../../../../RTEMS/testsuites/sptests/sp37/init.c:41:
 ../../../../../../RTEMS/testsuites/sptests/sp37/init.c: In function
 'test_isr_locks':
 ../../../../../../RTEMS/testsuites/sptests/sp37/init.c:207:42: error:
 'name' undeclared (first use in this function)
   207 |   _ISR_lock_Initialize( &container.lock, name );
       |                                          ^~~~
 ../../../../../../RTEMS/cpukit/include/rtems/score/isrlock.h:202:12: note:
 in definition of macro '_ISR_lock_Initialize'
   202 |     (void) _name
       |            ^~~~~
 ../../../../../../RTEMS/testsuites/sptests/sp37/init.c:207:42: note: each
 undeclared identifier is reported only once for each function it appears
 in
   207 |   _ISR_lock_Initialize( &container.lock, name );
       |                                          ^~~~
 ../../../../../../RTEMS/cpukit/include/rtems/score/isrlock.h:202:12: note:
 in definition of macro '_ISR_lock_Initialize'
   202 |     (void) _name
       |            ^~~~~

--
Ticket URL: <http://devel.rtems.org/ticket/4694>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list