[rtems-libbsd commit] if_xae: Port to RTEMS

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Mar 9 15:11:14 UTC 2022


On 07/03/2022 23:54, Joel Sherrill wrote:
> Module:    rtems-libbsd
> Branch:    6-freebsd-12
> Commit:    40b9c6ce6343cea5ca51ca9831d381886583a508
> Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=40b9c6ce6343cea5ca51ca9831d381886583a508
> 
> Author:    Alex White <alex.white at oarcorp.com>
> Date:      Sun Feb  6 21:12:31 2022 -0600
> 
> if_xae: Port to RTEMS

This broke the powerpc/beatnik build for example:

[1815/2059] Compiling freebsd/sys/dev/xilinx/axidma.c
../../freebsd/sys/dev/xilinx/axidma.c:130:31: error: array type has 
incomplete element type 'struct ofw_compat_data'
   130 | static struct ofw_compat_data compat_data[] = {
       |                               ^~~~~~~~~~~
In file included from 
../../rtemsbsd/include/machine/rtems-bsd-kernel-space.h:119,
                  from ../../freebsd/sys/dev/xilinx/axidma.c:1:
../../freebsd/sys/dev/xilinx/axidma.c: In function 'axidma_probe':
../../rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h:3767:29: 
warning: implicit declaration of function '_bsd_ofw_bus_status_okay'; 
did you mean 'ofw_bus_status_okay'? [-Wimplicit-function-declaration]
  3767 | #define ofw_bus_status_okay _bsd_ofw_bus_status_okay
       |                             ^~~~~~~~~~~~~~~~~~~~~~~~
../../freebsd/sys/dev/xilinx/axidma.c:263:7: note: in expansion of macro 
'ofw_bus_status_okay'
   263 |  if (!ofw_bus_status_okay(dev))
       |       ^~~~~~~~~~~~~~~~~~~
../../rtemsbsd/include/machine/rtems-bsd-kernel-namespace.h:3764:35: 
warning: implicit declaration of function 
'_bsd_ofw_bus_search_compatible'; did you mean 
'ofw_bus_search_compatible'? [-Wimplicit-function-declaration]
  3764 | #define ofw_bus_search_compatible _bsd_ofw_bus_search_compatible
       |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../freebsd/sys/dev/xilinx/axidma.c:266:11: note: in expansion of 
macro 'ofw_bus_search_compatible'
   266 |  hwtype = ofw_bus_search_compatible(dev, compat_data)->ocd_data;
       |           ^~~~~~~~~~~~~~~~~~~~~~~~~
../../freebsd/sys/dev/xilinx/axidma.c: In function 'axidma_attach':
../../freebsd/sys/dev/xilinx/axidma.c:310:9: warning: implicit 
declaration of function 'ofw_bus_get_node'; did you mean 
'ofw_bus_gen_get_node'? [-Wimplicit-function-declaration]
   310 |  node = ofw_bus_get_node(dev);
       |         ^~~~~~~~~~~~~~~~
       |         ofw_bus_gen_get_node
../../freebsd/sys/dev/xilinx/axidma.c: In function 'axidma_desc_alloc':
../../freebsd/sys/dev/xilinx/axidma.c:384:18: warning: assignment to 
'vm_offset_t' {aka 'unsigned int'} from 'void *' makes integer from 
pointer without a cast [-Wint-conversion]
   384 |  chan->mem_vaddr = calloc(1, chan->mem_size + 
AXIDMA_DESCRIPTOR_ALIGNMENT - 1);
       |                  ^
../../freebsd/sys/dev/xilinx/axidma.c:394:20: warning: cast to pointer 
from integer of different size [-Wint-to-pointer-cast]
   394 |   chan->descs[i] = (struct axidma_desc *)
       |                    ^
-- 
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list