]> git.baikalelectronics.ru Git - kernel.git/commit
sctp: dubious bitfields in sctp_transport
authorDan Carpenter <error27@gmail.com>
Wed, 26 May 2010 07:40:11 +0000 (00:40 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 May 2010 07:40:11 +0000 (00:40 -0700)
commit6233f01c6cbe2595dd0bc47030c7f2229b27b34e
tree70a5ccf25d967d93f4a47ab30d25b0b81e538cd5
parent6bafb6b81dad433ddc23bbf7799ddf3add7dcaf1
sctp: dubious bitfields in sctp_transport

Sparse complains because these one-bit bitfields are signed.
  include/net/sctp/structs.h:879:24: error: dubious one-bit signed bitfield
  include/net/sctp/structs.h:889:31: error: dubious one-bit signed bitfield
  include/net/sctp/structs.h:895:26: error: dubious one-bit signed bitfield
  include/net/sctp/structs.h:898:31: error: dubious one-bit signed bitfield
  include/net/sctp/structs.h:901:27: error: dubious one-bit signed bitfield

It doesn't cause a problem in the current code, but it would be better
to clean it up.  This was introduced by 5e22d7f71496d: "sctp: Save some
room in the sctp_transport by using bitfields".

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sctp/structs.h