I have thought it would be worth a short comment?
Gerald
> > If you can propose a workaround for the compiler bug which is not too much
> > invasive, I could integrate it.
>
> Here it is, don't ask me why it works
>
> --- visdn-0.14.0/hfc-4s/fifo.c.orig 2005-11-21 01:02:12.000000000 +0100
> +++ visdn-0.14.0/hfc-4s/fifo.c 2005-11-21 01:03:31.000000000 +0100
> @@ -43,6 +43,8 @@
> void hfc_fifo_rx_work(void *data)
> {
> struct hfc_fifo *fifo = data;
> + struct { u8 crc[2], stat; } __attribute((packed)) stat;
> + int statsize = sizeof(stat);
>
> if (!fifo->connected_chan)
> return;
> @@ -96,9 +98,7 @@
>
> hfc_fifo_mem_read(fifo, skb_put(skb, frame_size - 3), frame_size -
> 3);
>
> - struct { u8 crc[2], stat; } __attribute((packed)) stat;
> -
> - hfc_fifo_mem_read(fifo, &stat, sizeof(stat));
> + hfc_fifo_mem_read(fifo, &stat, statsize);
>
> #ifdef DEBUG_CODE
> if(debug_level == 3) {
>
>
> _______________________________________________
> Visdn-hackers mailing list
> [email protected]
> https://mailman.uli.it/mailman/listinfo/visdn-hackers
>
_______________________________________________
Visdn-hackers mailing list
[email protected]
https://mailman.uli.it/mailman/listinfo/visdn-hackers