From b97f6a9e44438c58993b4bde84d65dbe778c0dfc Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 2 Jun 2023 10:48:41 +0800 Subject: [PATCH] bootloader: fix compilation warning without Ethernet --- artiq/firmware/bootloader/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/firmware/bootloader/main.rs b/artiq/firmware/bootloader/main.rs index 355b94076..50772d8f7 100644 --- a/artiq/firmware/bootloader/main.rs +++ b/artiq/firmware/bootloader/main.rs @@ -18,7 +18,9 @@ use board_misoc::slave_fpga; use board_misoc::{clock, ethmac, net_settings}; use board_misoc::uart_console::Console; use riscv::register::{mcause, mepc, mtval}; +#[cfg(has_ethmac)] use smoltcp::iface::{Routes, SocketStorage}; +#[cfg(has_ethmac)] use smoltcp::wire::{HardwareAddress, IpAddress, Ipv4Address, Ipv6Address}; fn check_integrity() -> bool {