[PATCH 11/40] bsps/include/libchip/disp_hcms29xx.h: Manual file header clean up
Heinz Junkes
junkes at fhi-berlin.mpg.de
Thu Mar 10 13:39:31 UTC 2022
I get this at the moment when compiling the kernel:
...
[ 48/4243] Compiling bsps/shared/freebsd/sys/arm/ti/am335x/am335x_scm_padconf.c
[ 49/4243] Compiling bsps/shared/irq/irq-shell.c
[ 50/4243] Compiling bsps/shared/irq/irq-info.c
In file included from ../../../bsps/shared/dev/display/disp_hcms29xx.c:24:
../../../bsps/include/libchip/disp_hcms29xx.h:26:40: warning: "/*" within comment [-Wcomment]
26 | rtems_device_minor_number minor; /* minor device number */
|
../../../bsps/include/libchip/disp_hcms29xx.h:30:22: error: 'DISP_HCMS29XX_TEXT_CNT' undeclared here (not in a function)
30 | char disp_buffer[DISP_HCMS29XX_TEXT_CNT];
| ^~~~~~~~~~~~~~~~~~~~~~
../../../bsps/include/libchip/disp_hcms29xx.h:45:3: error: expected identifier or '(' before '}' token
45 | } spi_disp_hcms29xx_param_t;
| ^
../../../bsps/include/libchip/disp_hcms29xx.h:45:5: warning: data definition has no type or storage class
45 | } spi_disp_hcms29xx_param_t;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../bsps/include/libchip/disp_hcms29xx.h:45:5: warning: type defaults to 'int' in declaration of 'spi_disp_hcms29xx_param_t' [-Wimplicit-int]
../../../bsps/include/libchip/disp_hcms29xx.h:49:5: error: expected specifier-qualifier-list before 'spi_disp_hcms29xx_param_t'
49 | spi_disp_hcms29xx_param_t disp_param;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../bsps/include/libchip/disp_hcms29xx.h:150:2: error: #endif without #if
150 | #endif /* _DISP_HCMS29XX_H */
| ^~~~~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_send_to_display':
../../../bsps/shared/dev/display/disp_hcms29xx.c:332:43: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
332 | rc = rtems_libi2c_send_start(softc_ptr->disp_param.minor);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:338:39: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
338 | rc = -rtems_libi2c_ioctl(softc_ptr->disp_param.minor,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:347:42: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
347 | rc = rtems_libi2c_send_addr(softc_ptr->disp_param.minor,true);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:355:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
355 | softc_ptr->disp_param.rotate
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:385:46: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
385 | ret_cnt = rtems_libi2c_write_bytes(softc_ptr->disp_param.minor,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:397:42: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
397 | rc = rtems_libi2c_send_stop(softc_ptr->disp_param.minor);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_send_to_control':
../../../bsps/shared/dev/display/disp_hcms29xx.c:453:40: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
453 | rc = rtems_libi2c_send_start(softc_ptr->disp_param.minor);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:459:36: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
459 | rc = -rtems_libi2c_ioctl(softc_ptr->disp_param.minor,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:468:39: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
468 | rc = rtems_libi2c_send_addr(softc_ptr->disp_param.minor,true);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:475:46: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
475 | ret_cnt = rtems_libi2c_write_bytes(softc_ptr->disp_param.minor,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:488:42: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
488 | rc = rtems_libi2c_send_stop(softc_ptr->disp_param.minor);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_timer_sr':
../../../bsps/shared/dev/display/disp_hcms29xx.c:515:29: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
515 | rtems_event_send(softc_ptr->disp_param.task_id, DISP_HCMS29XX_EVENT_TIMER);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_update_task':
../../../bsps/shared/dev/display/disp_hcms29xx.c:584:39: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
584 | rc = rtems_semaphore_obtain(softc_ptr->disp_param.trns_sema_id,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:588:26: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
588 | strlcpy(softc_ptr->disp_param.disp_buffer,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:589:26: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
589 | softc_ptr->disp_param.trns_buffer,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:590:33: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
590 | sizeof(softc_ptr->disp_param.disp_buffer));
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:591:11: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
591 | softc_ptr->disp_param.disp_buf_cnt =
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:592:26: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
592 | (int) strlen(softc_ptr->disp_param.disp_buffer);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:595:47: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
595 | rc = rtems_semaphore_release(softc_ptr->disp_param.trns_sema_id);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:609:28: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
609 | (disp_offset < softc_ptr->disp_param.disp_buf_cnt-
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:622:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
622 | softc_ptr->disp_param.disp_buffer);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:625:19: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
625 | < (softc_ptr->disp_param.disp_buf_cnt - DISP_HCMS29XX_DIGIT_CNT)) {
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:627:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
627 | softc_ptr->disp_param.disp_buffer+disp_offset);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:631:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
631 | softc_ptr->disp_param.disp_buffer
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:632:18: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
632 | + softc_ptr->disp_param.disp_buf_cnt
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:639:20: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
639 | if (softc_ptr->disp_param.disp_buf_cnt > DISP_HCMS29XX_DIGIT_CNT) {
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_update':
../../../bsps/shared/dev/display/disp_hcms29xx.c:680:42: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
680 | rc = rtems_semaphore_obtain(softc_ptr->disp_param.trns_sema_id,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:686:20: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
686 | strncpy(softc_ptr->disp_param.trns_buffer,src,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:687:20: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
687 | sizeof(softc_ptr->disp_param.trns_buffer));
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:688:12: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
688 | softc_ptr->disp_param.trns_buffer[sizeof(softc_ptr->disp_param.trns_buffer)-1] = '\0';
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:688:53: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
688 | softc_ptr->disp_param.trns_buffer[sizeof(softc_ptr->disp_param.trns_buffer)-1] = '\0';
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:694:43: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
694 | rc = rtems_semaphore_release(softc_ptr->disp_param.trns_sema_id);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:701:36: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
701 | rc = rtems_event_send(softc_ptr->disp_param.task_id,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_dev_initialize':
../../../bsps/shared/dev/display/disp_hcms29xx.c:768:20: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
768 | &softc_ptr->disp_param.trns_sema_id);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:780:17: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
780 | &softc_ptr->disp_param.task_id);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:783:36: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
783 | rc = rtems_task_start(softc_ptr->disp_param.task_id,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_dev_open':
../../../bsps/shared/dev/display/disp_hcms29xx.c:813:12: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
813 | softc_ptr->disp_param.dev_buf_cnt = 0;
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_dev_write':
../../../bsps/shared/dev/display/disp_hcms29xx.c:846:20: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
846 | if (((softc_ptr->disp_param.dev_buf_cnt > 0)
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:850:15: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
850 | ||( softc_ptr->disp_param.dev_buf_cnt >=
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:851:28: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
851 | (int) sizeof(softc_ptr->disp_param.dev_buffer) - 1)) {
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:852:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
852 | softc_ptr->disp_param.dev_buffer[softc_ptr->disp_param.dev_buf_cnt] = '\0';
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:852:49: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
852 | softc_ptr->disp_param.dev_buffer[softc_ptr->disp_param.dev_buf_cnt] = '\0';
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:856:47: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
856 | disp_hcms29xx_update(softc_ptr,softc_ptr->disp_param.dev_buffer);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:857:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
857 | softc_ptr->disp_param.dev_buf_cnt = 0;
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:864:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
864 | softc_ptr->disp_param.dev_buffer[softc_ptr->disp_param.dev_buf_cnt++] =
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:864:49: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
864 | softc_ptr->disp_param.dev_buffer[softc_ptr->disp_param.dev_buf_cnt++] =
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: At top level:
../../../bsps/shared/dev/display/disp_hcms29xx.c:913:3: error: extra brace group at end of initializer
913 | { /* our private fields */
| ^
../../../bsps/shared/dev/display/disp_hcms29xx.c:913:3: note: (near initialization for 'disp_hcms29xx_drv_tbl')
../../../bsps/shared/dev/display/disp_hcms29xx.c:915:5: error: extra brace group at end of initializer
915 | { 0 },
| ^
../../../bsps/shared/dev/display/disp_hcms29xx.c:915:5: note: (near initialization for 'disp_hcms29xx_drv_tbl')
../../../bsps/shared/dev/display/disp_hcms29xx.c:917:5: error: extra brace group at end of initializer
917 | { 0 },
| ^
../../../bsps/shared/dev/display/disp_hcms29xx.c:917:5: note: (near initialization for 'disp_hcms29xx_drv_tbl')
../../../bsps/shared/dev/display/disp_hcms29xx.c:918:5: error: extra brace group at end of initializer
918 | { 0 },
| ^
../../../bsps/shared/dev/display/disp_hcms29xx.c:918:5: note: (near initialization for 'disp_hcms29xx_drv_tbl')
../../../bsps/shared/dev/display/disp_hcms29xx.c:913:3: warning: excess elements in struct initializer
913 | { /* our private fields */
| ^
../../../bsps/shared/dev/display/disp_hcms29xx.c:913:3: note: (near initialization for 'disp_hcms29xx_drv_tbl')
[ 51/4243] Compiling bsps/shared/irq/irq-handler-iterate.c
Waf: Leaving directory `/home/rtems/RTEMS_MASTER_08_03_22/kernel/build/powerpc/beatnik'
Build failed
-> task in '/bsps/obj' failed with exit status 1 (run with -v to display more information)
Waf: Entering directory `/home/rtems/RTEMS_MASTER_08_03_22/kernel/build'
Waf: Leaving directory `/home/rtems/RTEMS_MASTER_08_03_22/kernel/build'
'install' finished successfully (0.218s)
Waf: Entering directory `/home/rtems/RTEMS_MASTER_08_03_22/kernel/build/powerpc/beatnik'
[ 24/4324] Compiling bsps/shared/dev/display/disp_hcms29xx.c
[ 49/4324] Compiling bsps/shared/irq/irq-server.c
[ 50/4324] Compiling bsps/shared/irq/irq-lock.c
[ 51/4324] Compiling bsps/shared/irq/irq-legacy.c
[ 53/4324] Compiling bsps/shared/irq/irq-handler-remove.c
[ 54/4324] Compiling bsps/shared/irq/irq-handler-iterate.c
[ 55/4324] Compiling bsps/shared/irq/irq-handler-install.c
[ 56/4324] Compiling bsps/shared/irq/irq-generic.c
[ 57/4324] Compiling bsps/shared/irq/irq-entry-remove.c
[ 58/4324] Compiling bsps/shared/irq/irq-enable-disable.c
[ 60/4324] Compiling bsps/shared/irq/irq-raise-clear.c
[ 61/4324] Compiling bsps/shared/irq/irq-affinity.c
[ 62/4324] Compiling bsps/shared/irq/irq-default.c
[ 63/4324] Compiling bsps/shared/irq/irq-default-handler.c
[ 64/4324] Compiling bsps/powerpc/shared/ppc-print-stack.c
[ 65/4324] Compiling bsps/powerpc/shared/cpu_asm.S
[ 66/4324] Compiling bsps/powerpc/shared/cpuIdent.c
[ 67/4324] Compiling bsps/powerpc/shared/cpu.c
[ 68/4324] Compiling bsps/powerpc/shared/exceptions/ppc_exc_prologue.c
[ 69/4324] Compiling bsps/powerpc/shared/exceptions/ppc_exc_hdl.c
[ 70/4324] Compiling bsps/powerpc/shared/exceptions/ppc-code-copy.c
[ 71/4324] Compiling bsps/powerpc/shared/exceptions/ppc_exc.S
[ 72/4324] Compiling bsps/powerpc/shared/exceptions/ppc_exc_initialize.c
[ 73/4324] Compiling bsps/powerpc/shared/exceptions/ppc_exc_address.c
In file included from ../../../bsps/include/bsp/irq-generic.h:55,
from ../../../bsps/shared/irq/irq-legacy.c:44:
../../../bsps/powerpc/beatnik/include/bsp/irq.h:25: warning: "BSP_SHARED_HANDLER_SUPPORT" redefined
25 | #define BSP_SHARED_HANDLER_SUPPORT 1
|
../../../bsps/shared/irq/irq-legacy.c:39: note: this is the location of the previous definition
39 | #define BSP_SHARED_HANDLER_SUPPORT
|
../../../bsps/powerpc/shared/exceptions/ppc_exc.S: Assembler messages:
../../../bsps/powerpc/shared/exceptions/ppc_exc.S:132: Warning: invalid register expression
../../../bsps/powerpc/shared/exceptions/ppc_exc.S:135: Warning: invalid register expression
../../../bsps/shared/irq/irq-generic.c: In function 'bsp_interrupt_entry_find':
../../../bsps/shared/irq/irq-generic.c:146:20: warning: array subscript vector is outside array bounds of 'rtems_interrupt_entry *[0]' [-Warray-bounds]
146 | *previous_next = &bsp_interrupt_handler_table[ index ];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../bsps/shared/irq/irq-generic.c:50:1: note: while referencing 'bsp_interrupt_handler_table'
50 | bsp_interrupt_handler_table[ BSP_INTERRUPT_HANDLER_TABLE_SIZE ];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../../bsps/shared/irq/irq-generic.c:147:38: warning: array subscript vector is outside array bounds of 'rtems_interrupt_entry *[0]' [-Warray-bounds]
147 | entry = bsp_interrupt_handler_table[ index ];
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
../../../bsps/shared/irq/irq-generic.c:50:1: note: while referencing 'bsp_interrupt_handler_table'
50 | bsp_interrupt_handler_table[ BSP_INTERRUPT_HANDLER_TABLE_SIZE ];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 74/4324] Compiling bsps/powerpc/shared/exceptions/ppc_exc_alignment.c
In file included from ../../../bsps/shared/dev/display/disp_hcms29xx.c:24:
../../../bsps/include/libchip/disp_hcms29xx.h:26:40: warning: "/*" within comment [-Wcomment]
26 | rtems_device_minor_number minor; /* minor device number */
|
../../../bsps/include/libchip/disp_hcms29xx.h:30:22: error: 'DISP_HCMS29XX_TEXT_CNT' undeclared here (not in a function)
30 | char disp_buffer[DISP_HCMS29XX_TEXT_CNT];
| ^~~~~~~~~~~~~~~~~~~~~~
../../../bsps/include/libchip/disp_hcms29xx.h:45:3: error: expected identifier or '(' before '}' token
45 | } spi_disp_hcms29xx_param_t;
| ^
../../../bsps/include/libchip/disp_hcms29xx.h:45:5: warning: data definition has no type or storage class
45 | } spi_disp_hcms29xx_param_t;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../bsps/include/libchip/disp_hcms29xx.h:45:5: warning: type defaults to 'int' in declaration of 'spi_disp_hcms29xx_param_t' [-Wimplicit-int]
../../../bsps/include/libchip/disp_hcms29xx.h:49:5: error: expected specifier-qualifier-list before 'spi_disp_hcms29xx_param_t'
49 | spi_disp_hcms29xx_param_t disp_param;
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../../../bsps/include/libchip/disp_hcms29xx.h:150:2: error: #endif without #if
150 | #endif /* _DISP_HCMS29XX_H */
| ^~~~~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_send_to_display':
../../../bsps/shared/dev/display/disp_hcms29xx.c:332:43: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
332 | rc = rtems_libi2c_send_start(softc_ptr->disp_param.minor);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:338:39: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
338 | rc = -rtems_libi2c_ioctl(softc_ptr->disp_param.minor,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:347:42: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
347 | rc = rtems_libi2c_send_addr(softc_ptr->disp_param.minor,true);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:355:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
355 | softc_ptr->disp_param.rotate
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:385:46: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
385 | ret_cnt = rtems_libi2c_write_bytes(softc_ptr->disp_param.minor,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:397:42: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
397 | rc = rtems_libi2c_send_stop(softc_ptr->disp_param.minor);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_send_to_control':
../../../bsps/shared/dev/display/disp_hcms29xx.c:453:40: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
453 | rc = rtems_libi2c_send_start(softc_ptr->disp_param.minor);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:459:36: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
459 | rc = -rtems_libi2c_ioctl(softc_ptr->disp_param.minor,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:468:39: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
468 | rc = rtems_libi2c_send_addr(softc_ptr->disp_param.minor,true);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:475:46: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
475 | ret_cnt = rtems_libi2c_write_bytes(softc_ptr->disp_param.minor,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:488:42: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
488 | rc = rtems_libi2c_send_stop(softc_ptr->disp_param.minor);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_timer_sr':
../../../bsps/shared/dev/display/disp_hcms29xx.c:515:29: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
515 | rtems_event_send(softc_ptr->disp_param.task_id, DISP_HCMS29XX_EVENT_TIMER);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_update_task':
../../../bsps/shared/dev/display/disp_hcms29xx.c:584:39: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
584 | rc = rtems_semaphore_obtain(softc_ptr->disp_param.trns_sema_id,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:588:26: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
588 | strlcpy(softc_ptr->disp_param.disp_buffer,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:589:26: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
589 | softc_ptr->disp_param.trns_buffer,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:590:33: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
590 | sizeof(softc_ptr->disp_param.disp_buffer));
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:591:11: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
591 | softc_ptr->disp_param.disp_buf_cnt =
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:592:26: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
592 | (int) strlen(softc_ptr->disp_param.disp_buffer);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:595:47: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
595 | rc = rtems_semaphore_release(softc_ptr->disp_param.trns_sema_id);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:609:28: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
609 | (disp_offset < softc_ptr->disp_param.disp_buf_cnt-
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:622:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
622 | softc_ptr->disp_param.disp_buffer);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:625:19: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
625 | < (softc_ptr->disp_param.disp_buf_cnt - DISP_HCMS29XX_DIGIT_CNT)) {
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:627:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
627 | softc_ptr->disp_param.disp_buffer+disp_offset);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:631:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
631 | softc_ptr->disp_param.disp_buffer
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:632:18: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
632 | + softc_ptr->disp_param.disp_buf_cnt
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:639:20: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
639 | if (softc_ptr->disp_param.disp_buf_cnt > DISP_HCMS29XX_DIGIT_CNT) {
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_update':
../../../bsps/shared/dev/display/disp_hcms29xx.c:680:42: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
680 | rc = rtems_semaphore_obtain(softc_ptr->disp_param.trns_sema_id,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:686:20: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
686 | strncpy(softc_ptr->disp_param.trns_buffer,src,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:687:20: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
687 | sizeof(softc_ptr->disp_param.trns_buffer));
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:688:12: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
688 | softc_ptr->disp_param.trns_buffer[sizeof(softc_ptr->disp_param.trns_buffer)-1] = '\0';
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:688:53: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
688 | softc_ptr->disp_param.trns_buffer[sizeof(softc_ptr->disp_param.trns_buffer)-1] = '\0';
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:694:43: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
694 | rc = rtems_semaphore_release(softc_ptr->disp_param.trns_sema_id);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:701:36: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
701 | rc = rtems_event_send(softc_ptr->disp_param.task_id,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_dev_initialize':
../../../bsps/shared/dev/display/disp_hcms29xx.c:768:20: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
768 | &softc_ptr->disp_param.trns_sema_id);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:780:17: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
780 | &softc_ptr->disp_param.task_id);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:783:36: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
783 | rc = rtems_task_start(softc_ptr->disp_param.task_id,
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_dev_open':
../../../bsps/shared/dev/display/disp_hcms29xx.c:813:12: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
813 | softc_ptr->disp_param.dev_buf_cnt = 0;
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: In function 'disp_hcms29xx_dev_write':
../../../bsps/shared/dev/display/disp_hcms29xx.c:846:20: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
846 | if (((softc_ptr->disp_param.dev_buf_cnt > 0)
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:850:15: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
850 | ||( softc_ptr->disp_param.dev_buf_cnt >=
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:851:28: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
851 | (int) sizeof(softc_ptr->disp_param.dev_buffer) - 1)) {
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:852:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
852 | softc_ptr->disp_param.dev_buffer[softc_ptr->disp_param.dev_buf_cnt] = '\0';
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:852:49: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
852 | softc_ptr->disp_param.dev_buffer[softc_ptr->disp_param.dev_buf_cnt] = '\0';
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:856:47: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
856 | disp_hcms29xx_update(softc_ptr,softc_ptr->disp_param.dev_buffer);
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:857:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
857 | softc_ptr->disp_param.dev_buf_cnt = 0;
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:864:16: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
864 | softc_ptr->disp_param.dev_buffer[softc_ptr->disp_param.dev_buf_cnt++] =
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c:864:49: error: 'disp_hcms29xx_drv_t' has no member named 'disp_param'
864 | softc_ptr->disp_param.dev_buffer[softc_ptr->disp_param.dev_buf_cnt++] =
| ^~
../../../bsps/shared/dev/display/disp_hcms29xx.c: At top level:
../../../bsps/shared/dev/display/disp_hcms29xx.c:913:3: error: extra brace group at end of initializer
913 | { /* our private fields */
| ^
../../../bsps/shared/dev/display/disp_hcms29xx.c:913:3: note: (near initialization for 'disp_hcms29xx_drv_tbl')
../../../bsps/shared/dev/display/disp_hcms29xx.c:915:5: error: extra brace group at end of initializer
915 | { 0 },
| ^
../../../bsps/shared/dev/display/disp_hcms29xx.c:915:5: note: (near initialization for 'disp_hcms29xx_drv_tbl')
../../../bsps/shared/dev/display/disp_hcms29xx.c:917:5: error: extra brace group at end of initializer
917 | { 0 },
| ^
../../../bsps/shared/dev/display/disp_hcms29xx.c:917:5: note: (near initialization for 'disp_hcms29xx_drv_tbl')
../../../bsps/shared/dev/display/disp_hcms29xx.c:918:5: error: extra brace group at end of initializer
918 | { 0 },
| ^
../../../bsps/shared/dev/display/disp_hcms29xx.c:918:5: note: (near initialization for 'disp_hcms29xx_drv_tbl')
../../../bsps/shared/dev/display/disp_hcms29xx.c:913:3: warning: excess elements in struct initializer
913 | { /* our private fields */
| ^
../../../bsps/shared/dev/display/disp_hcms29xx.c:913:3: note: (near initialization for 'disp_hcms29xx_drv_tbl')
Waf: Leaving directory `/home/rtems/RTEMS_MASTER_08_03_22/kernel/build/powerpc/beatnik'
Build failed
Viele Grüße
Heinz Junkes
--
Experience directly varies with equipment ruined.
> On 7. Mar 2022, at 14:23, Christian Mauderer <christian.mauderer at embedded-brains.de> wrote:
>
> From: Joel Sherrill <joel at rtems.org>
>
> Updates #4625.
> ---
> bsps/include/libchip/disp_hcms29xx.h | 32 +++++++++++-----------------
> 1 file changed, 13 insertions(+), 19 deletions(-)
>
> diff --git a/bsps/include/libchip/disp_hcms29xx.h b/bsps/include/libchip/disp_hcms29xx.h
> index 84b74b6910..bcaf25f46e 100644
> --- a/bsps/include/libchip/disp_hcms29xx.h
> +++ b/bsps/include/libchip/disp_hcms29xx.h
> @@ -1,22 +1,16 @@
> -/*===============================================================*\
> -| Project: display driver for HCMS29xx |
> -+-----------------------------------------------------------------+
> -| File: disp_hcms29xx.h |
> -+-----------------------------------------------------------------+
> -| Copyright (c) 2008 |
> -| Embedded Brains GmbH |
> -| Obere Lagerstr. 30 |
> -| D-82178 Puchheim |
> -| Germany |
> -| rtems at embedded-brains.de |
> -+-----------------------------------------------------------------+
> -| The license and distribution terms for this file may be |
> -| found in the file LICENSE in this distribution or at |
> -| http://www.rtems.org/license/LICENSE. |
> -+-----------------------------------------------------------------+
> -| this file declares the SPI based driver for a HCMS29xx 4 digit |
> -| alphanumeric LED display |
> -\*===============================================================*/
> +/*
> + * Display driver for HCMS29xx
> + *
> + * This file declares the SPI based driver for a HCMS29xx 4 digit
> + * alphanumeric LED display
> + */
> +
> +/*
> + * Copyright (c) 2008 embedded brains GmbH. All rights reserved.
> + *
> + * The license and distribution terms for this file may be
> + * found in the file LICENSE in this distribution or at
> + * http://www.rtems.org/license/LICENSE.
>
> #ifndef _DISP_HCMS29XX_H
> #define _DISP_HCMS29XX_H
> --
> 2.34.1
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
More information about the devel
mailing list