#2304 closed defect (fixed)

or1ksim warnings in spcontext01

Reported by: Joel Sherrill Owned by: Hesham Almatary
Priority: normal Milestone: 4.11
Component: unspecified Version: 4.11
Severity: normal Keywords:
Cc: Hesham Almatary Blocked By:
Blocking:

Description

Looks like the or1k is missing some prototypes/methods:

Making all in spcontext01
gmake[6]: Entering directory `/users/joel/rtems-4.11-work/rtems-testing/rtems/build-or1k-or1ksim-rtems/or1k-rtems4.11/c/or1ksim/testsuites/sptests/spcontext01'
or1k-rtems4.11-gcc -B../../../../../or1ksim/lib/ -specs bsp_specs -qrtems -DHAVE_CONFIG_H -I. -I../../../../../../../rtems/c/src/../../testsuites/sptests/spcontext01 -I.. -I../../../../../../../rtems/c/src/../../testsuites/sptests/../support/include -O2 -O0 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo -c -o init.o ../../../../../../../rtems/c/src/../../testsuites/sptests/spcontext01/init.c
../../../../../../../rtems/c/src/../../testsuites/sptests/spcontext01/init.c: In function 'validate_task':
../../../../../../../rtems/c/src/../../testsuites/sptests/spcontext01/init.c:42:3: warning: implicit declaration of function '_CPU_Context_validate' [-Wimplicit-function-declaration]

_CPU_Context_validate(arg);

../../../../../../../rtems/c/src/../../testsuites/sptests/spcontext01/init.c:42:3: warning: nested extern declaration of '_CPU_Context_validate' [-Wnested-externs]
../../../../../../../rtems/c/src/../../testsuites/sptests/spcontext01/init.c: In function 'clobber_and_switch_timer':
../../../../../../../rtems/c/src/../../testsuites/sptests/spcontext01/init.c:118:3: warning: implicit declaration of function '_CPU_Context_volatile_clobber' [-Wimplicit-function-declaration]

_CPU_Context_volatile_clobber(pattern);

../../../../../../../rtems/c/src/../../testsuites/sptests/spcontext01/init.c:118:3: warning: nested extern declaration of '_CPU_Context_volatile_clobber' [-Wnested-externs]

Change History (2)

comment:1 Changed on Mar 13, 2015 at 7:14:47 PM by Hesham Almatary

Owner: set to Hesham Almatary
Status: newaccepted

comment:2 Changed on Mar 13, 2015 at 7:49:48 PM by Hesham ALMatary <heshamelmatary@…>

Resolution: fixed
Status: acceptedclosed

In a764d673876f8e7b61b1a13fced85e4126a4b00d/rtems:

score/or1k: Fix warnings. Add missing prototypes

Closes #2304

Note: See TracTickets for help on using tickets.