From: David Miller <[EMAIL PROTECTED]>
Date: Thu, 02 Nov 2006 00:16:43 -0800 (PST)

> From: Meelis Roos <[EMAIL PROTECTED]>
> Date: Thu, 2 Nov 2006 09:29:16 +0200 (EET)
> 
> >    CC [M]  net/sctp/sm_make_chunk.o
> > net/sctp/sm_make_chunk.c: In function 'sctp_unpack_cookie':
> > net/sctp/sm_make_chunk.c:1358: warning: initialization discards qualifiers 
> > from pointer target type
> > 
> > The reason is that sctp_unpack_cookie() takes a const struct 
> > sctp_endpoint and modifies the digest in it (digest being embedded in 
> > the struct, not a pointer). So sctp_unpack_cookie really does not use 
> > the argument as const, mark it as such.
> > 
> > Signed-off-by: Meelis Roos <[EMAIL PROTECTED]>
> 
> Applied,

Actually, I'm backing this one out, it creates new warnings because
callers of this function pass in a "const" pointer.

net/sctp/sm_statefuns.c: In function $,1rx(Bsctp_sf_do_5_1D_ce$,1ry(B:
net/sctp/sm_statefuns.c:630: warning: passing argument 1 of 
$,1rx(Bsctp_unpack_cookie$,1ry(B discards qualifiers from pointer target 
type
net/sctp/sm_statefuns.c: In function $,1rx(Bsctp_sf_do_5_2_4_dupcook$,1ry(B:
net/sctp/sm_statefuns.c:1884: warning: passing argument 1 of 
$,1rx(Bsctp_unpack_cookie$,1ry(B discards qualifiers from pointer target 
type

Please test the complete build when doing warning fixes like
this in the future, thanks.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to