[RTEMS Project] #2303: Arm/rtl22xx* BSPs use common symbol FLASH_SIZE conflicts
RTEMS trac
trac at rtems.org
Fri Mar 13 19:01:38 UTC 2015
#2303: Arm/rtl22xx* BSPs use common symbol FLASH_SIZE conflicts
---------------------------+-----------------------------
Reporter: joel.sherrill | Owner: sebastian.huber
Type: defect | Status: new
Priority: normal | Milestone: 4.11
Component: General | Version: 4.11
Severity: normal | Keywords:
---------------------------+-----------------------------
The jffs2 test support code defines FLASH_SIZE which conflicts with that
defined by the rtl22xx* BSP. If used by the BSP, it should be preceded by
some unique prefix.
arm-rtems4.11-gcc -B../../../../../rtl22xx_t/lib/ -specs bsp_specs -qrtems
-DHAVE_CONFIG_H -I.
-I../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror
-I.. -I../../../../../../../rtems/c/src/../../testsuites/fstests/support
-I../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_support
-I../../../../../../../rtems/c/src/../../testsuites/fstests/../support/include
-I../../../../../../../rtems/c/src/../../testsuites/fstests/../psxtests/include
-mcpu=arm7tdmi -mthumb -Os -g -Wall -Wmissing-prototypes -Wimplicit-
function-declaration -Wstrict-prototypes -Wnested-externs -MT fs_support.o
-MD -MP -MF .deps/fs_support.Tpo -c -o fs_support.o `test -f
'../jffs2_support/fs_support.c' || echo
'../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/'`../jffs2_support/fs_support.c
mv -f .deps/fstest_support.Tpo .deps/fstest_support.Po
../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../jffs2_support/fs_support.c:33:0:
warning: "FLASH_SIZE" redefined
#define FLASH_SIZE (8UL * BLOCK_SIZE)
^
In file included from
../../../../../../../rtems/c/src/../../testsuites/fstests/../psxtests/include/pmacros.h:14:0,
from
../../../../../../../rtems/c/src/../../testsuites/fstests/jffs2_fserror/../jffs2_support/fs_support.c:18:
../../../../../rtl22xx_t/lib/include/bsp.h:179:0: note: this is the
location of the previous definition
#define FLASH_SIZE (0x80000-FLASH_BOOT)
--
Ticket URL: <http://devel.rtems.org/ticket/2303>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list