X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=drivers%2Fnetconsole.c;h=69089f92cec913b1ab6d0c33f94273d8cc10badf;hb=1d2ca446e1a731df420206d04fe278c27ea6b8e8;hp=9cf6cd6339951cbe7b1f91b73a061bb5c4c57653;hpb=b2323ea6f9ae478680baa964bdd97d8567507e91;p=oweals%2Fu-boot.git diff --git a/drivers/netconsole.c b/drivers/netconsole.c index 9cf6cd6339..69089f92ce 100644 --- a/drivers/netconsole.c +++ b/drivers/netconsole.c @@ -29,9 +29,7 @@ #include #include -#ifndef CONFIG_NET_MULTI -#error define CONFIG_NET_MULTI to use netconsole -#endif +DECLARE_GLOBAL_DATA_PTR; static char input_buffer[512]; static int input_size = 0; /* char count in input buffer */ @@ -109,8 +107,6 @@ int nc_input_packet (uchar * pkt, unsigned dest, unsigned src, unsigned len) static void nc_send_packet (const char *buf, int len) { - DECLARE_GLOBAL_DATA_PTR; - struct eth_device *eth; int inited = 0; uchar *pkt;