From mboxrd@z Thu Jan 1 00:00:00 1970 From: Masami Komiya Date: Sat, 17 Apr 2004 14:37:39 +0900 Subject: [U-Boot-Users] Re: [patch #9/11] VLAN/CDP networking support. References: <20040415214825.E8FF2C109F@atlas.denx.de> Message-ID: <4080C2A3.5070704@sonare.it> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Pantelis, net/net.c can't be compiled with my poor mipsel-linux-gcc 2.96. The message is : mipsel-linux-gcc -g -Os -D__KERNEL__ -DTEXT_BASE=0xBFC00000 -I/home/mkomiya/u-boot.mk/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/local/lib/gcc-lib/mipsel-linux/2.96-sdelinuxmips-030324/include -pipe -DCONFIG_MIPS -D__MIPS__ -mcpu=r4600 -EL -mabicalls -Wall -Wstrict-prototypes -c -o net.o net.c net.c:135: initializer element is not constant net.c:136: initializer element is not constant It seems to be falled in the loop by ushort NetOurVLAN = ntohs(-1) ushort NetOurNativeVLAN = htons(-1) Could you intialize these variables in the program ? Best regards, Masami Komiya Wolfgang Denk wrote: > In message <406988D8.4090604@intracom.gr> you wrote: > >>The following patch adds networking support for >>VLANs (802.1q), and CDP (Cisco Discovery Protocol). > > > Cool!!! Added. Thanks. > > Best regards, > > Wolfgang Denk >