#3267 closed defect (fixed)

rtems/status-checks.h calls printk without including the needed header.

Reported by: Chris Johns Owned by:
Priority: normal Milestone: 5.1
Component: lib Version: 5
Severity: normal Keywords:
Cc: Blocked By:
Blocking:

Description

/opt/work/chris/rtems/kernel/rtems.git/cpukit/include/rtems/status-checks.h:74:7: warning: implicit declaration of function 'printk'; did you mean 'printf'? [-Wimplicit-function-declaration]
       printk( fmt, ##__VA_ARGS__)
       ^
/opt/work/chris/rtems/kernel/rtems.git/cpukit/include/rtems/status-checks.h:86:3: note: in expansion of macro 'RTEMS_SYSLOG_PRINT'
   RTEMS_SYSLOG_PRINT( "%s: " fmt, __func__, ##__VA_ARGS__)
   ^~~~~~~~~~~~~~~~~~
/opt/work/chris/rtems/kernel/rtems.git/cpukit/include/rtems/status-checks.h:107:3: note: in expansion of macro 'RTEMS_SYSLOG'
   RTEMS_SYSLOG( "Error: " fmt, ##__VA_ARGS__)
   ^~~~~~~~~~~~
/opt/work/chris/rtems/kernel/rtems.git/cpukit/include/rtems/status-checks.h:113:3: note: in expansion of macro 'RTEMS_SYSLOG_ERROR'
   RTEMS_SYSLOG_ERROR( "SC = %i: %s\n", (int) sc, msg);
   ^~~~~~~~~~~~~~~~~~
/opt/work/chris/rtems/kernel/rtems.git/cpukit/include/rtems/status-checks.h:152:5: note: in expansion of macro 'RTEMS_SYSLOG_ERROR_WITH_SC'
     RTEMS_SYSLOG_ERROR_WITH_SC( sc, msg); \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/work/chris/rtems/kernel/rtems.git/c/src/lib/libbsp/lm32/milkymist/../../lm32/shared/milkymist_gpio/gpio.c:57:5: note: in expansion of macro 'RTEMS_CHECK_SC'
     RTEMS_CHECK_SC(sc, "create GPIO device");
     ^~~~~~~~~~~~~~

Change History (2)

Note: See TracTickets for help on using tickets.