#2303 closed defect (fixed)

Arm/rtl22xx* BSPs use common symbol FLASH_SIZE conflicts

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

Description

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)

Change History (1)

comment:1 Changed on Mar 20, 2015 at 8:46:13 AM by Sebastian Huber <sebastian.huber@…>

Resolution: fixed
Status: newclosed

In 9f34aa5e06730a88e2be9aadcc0a4d6847441d2a/rtems:

bsp/rtl22xx: Add prefix due to name conflicts

Close #2303.

Note: See TracTickets for help on using tickets.