]> git.baikalelectronics.ru Git - kernel.git/commit
staging: gdm724x: modify icmp6_checksum for returning a correct data type.
authorJavier Rodriguez <jrodbar@yahoo.es>
Tue, 14 Feb 2017 17:16:22 +0000 (18:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:16:58 +0000 (09:16 +0100)
commit63d59169a82c81472751ef85f5b0d3915eb4826e
tree09a08f58a8a14fa22d5ea556f2228e757f0c6a98
parent05bc0091c1afbc9c5aa2e6959e74423ea72c1e2a
staging: gdm724x: modify icmp6_checksum for returning a correct data type.

The icmp6_checksum was returning an invalid data type as the expected type
is __sum16. For returning such data type, icmp6_checksum, now, is using
the kernel functions for computing the checksum.

Here, the sparse message:

drivers/staging/gdm724x/gdm_lte.c:311:39: warning: incorrect type in assignment (different base types)
drivers/staging/gdm724x/gdm_lte.c:311:39:    expected restricted __sum16 [addressable] [assigned] [usertype] icmp6_cksum
drivers/staging/gdm724x/gdm_lte.c:311:39:    got int

Signed-off-by: Javier Rodriguez <jrodbar@yahoo.es>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm724x/gdm_lte.c