Re: I need help with a sparse warning

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steven Noonan
Date: Thursday, September 11, 2008 - 7:32 pm

On Thu, Sep 11, 2008 at 7:13 PM, Larry Finger <Larry.Finger@lwfinger.net> wrote:

(Whoops, didn't CC the mailing lists. Sorry about the double-message, Larry.)

If priv->rx_mtu is u16, I'm surprised it doesn't get noisy about the
size_t cast. Unless the machine it's being compiled on is 16-bit, that
should throw a truncation warning, because size_t should be a 32-bit
integer on 32-bit machines (typically).

I think if you change the (__le16) cast to (__le16 __force) it will
stop warning you about that particular issue.

- Steven
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
I need help with a sparse warning, Larry Finger, (Thu Sep 11, 7:13 pm)
Re: I need help with a sparse warning, Steven Noonan, (Thu Sep 11, 7:32 pm)
Re: I need help with a sparse warning, Roland Dreier, (Thu Sep 11, 7:39 pm)
Re: I need help with a sparse warning, Alexey Dobriyan, (Thu Sep 11, 7:44 pm)
Re: I need help with a sparse warning, Larry Finger, (Thu Sep 11, 7:58 pm)
Re: I need help with a sparse warning, Roland Dreier, (Thu Sep 11, 8:04 pm)
Re: I need help with a sparse warning, Larry Finger, (Thu Sep 11, 8:05 pm)
Re: I need help with a sparse warning, Larry Finger, (Thu Sep 11, 8:07 pm)
Re: I need help with a sparse warning, Michael Buesch, (Fri Sep 12, 8:25 am)
Re: I need help with a sparse warning, Pavel Roskin, (Fri Sep 12, 10:12 am)