Joel Sherrill created an issue: 
https://gitlab.rtems.org/rtems/pkg/rtems-net-legacy/-/issues/26



## Summary

This needs _rtems_interrupt_catch()_ use removed and the signature issue 
addressed. This most likely impacts all net-legacy builds.

```
../../bsps/shared/net/sonic.c: In function 'sonic_initialize_hardware':
../../bsps/shared/net/sonic.c:1403:25: error: passing argument 1 of 
'rtems_interrupt_catch' from incompatible pointer type 
[-Wincompatible-pointer-types]
 1403 |   rtems_interrupt_catch(sonic_interrupt_handler,
      |                         ^~~~~~~~~~~~~~~~~~~~~~~
      |                         |
      |                         rtems_isr (*)(rtems_vector_number) {aka void 
(*)(unsigned int)}
In file included from 
/home/joel/rtems-work/rtems-deployment/build/tmp/sb-1003-staging/powerpc-rtems7/beatnik/lib/include/rtems.h:69,
                 from ../../bsps/shared/net/sonic.c:36:
/home/joel/rtems-work/rtems-deployment/build/tmp/sb-1003-staging/powerpc-rtems7/beatnik/lib/include/rtems/rtems/intr.h:189:23:
 note: expected 'rtems_isr_entry' {aka 'void (*)(void *)'} but argument is of 
type 'rtems_isr (*)(rtems_vector_number)' {aka 'void (*)(unsigned int)'}
  189 |   rtems_isr_entry     new_isr_handler,
      |   ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
../../bsps/shared/net/sonic.c:396:24: note: 'sonic_interrupt_handler' declared 
here
  396 | SONIC_STATIC rtems_isr sonic_interrupt_handler (rtems_vector_number v)
      |                        ^~~~~~~~~~~~~~~~~~~~~~~
/home/joel/rtems-work/rtems-deployment/build/tmp/sb-1003-staging/powerpc-rtems7/beatnik/lib/include/rtems/rtems/intr.h:136:17:
 note: 'rtems_isr_entry' declared here
  136 | typedef void ( *rtems_isr_entry )( void * );
      |                 ^~~~~~~~~~~~~~~
```

## Steps to reproduce
I built _rtems_deployment_ net-legacy packages but it should occur with any 
build.

<!-- Pre-set options
- milestone
-->

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/pkg/rtems-net-legacy/-/issues/26
You're receiving this email because of your account on gitlab.rtems.org.


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to