Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

api_net.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Michal Simek's avatar
      21181578
      api: Disable api_net when DM is used · 21181578
      Michal Simek authored
      
      When CONFIG_API is selected with DM_ETH this
      error is present:
      api/api_net.c: In function 'dev_enum_net':
      api/api_net.c:61:35: warning: initialization from incompatible pointer
      type
        struct eth_device *eth_current = eth_get_dev();
                                         ^
      api/api_net.c:68:39: error: dereferencing pointer to incomplete type
        memcpy(di->di_net.hwaddr, eth_current->enetaddr, 6);
                                             ^
      Disable api_net functions when ETH_DM is selected.
      
      Signed-off-by: default avatarChris Johns <chrisj@rtems.org>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
      21181578
      History
      api: Disable api_net when DM is used
      Michal Simek authored
      
      When CONFIG_API is selected with DM_ETH this
      error is present:
      api/api_net.c: In function 'dev_enum_net':
      api/api_net.c:61:35: warning: initialization from incompatible pointer
      type
        struct eth_device *eth_current = eth_get_dev();
                                         ^
      api/api_net.c:68:39: error: dereferencing pointer to incomplete type
        memcpy(di->di_net.hwaddr, eth_current->enetaddr, 6);
                                             ^
      Disable api_net functions when ETH_DM is selected.
      
      Signed-off-by: default avatarChris Johns <chrisj@rtems.org>
      Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>