Re: I need help with a sparse warning
From: Larry Finger
Date: Thu Sep 11 2008 - 23:07:45 EST
Roland Dreier wrote:
> This one gets rid of the sparse warning.
>
> priv->rx_mtu = le16_to_cpu((__le16 __force)
> bootrec->data[10]);
Yes but does it actually work on both big and little endian systems?
(See my previous email)
I don't know, but as my previous email stated, the code could not
possibly have worked on a big-endian system before I started the
sparse cleanup. I don't have access to anything but little-endian
hardware.
Larry
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/