• Sven Eckelmann's avatar
    ipv6: Annotate bitwise IPv6 dsfield pointer cast · 1f1c1d7c
    Sven Eckelmann authored
    The sparse commit 6002ded74587 ("add a flag to warn on casts to/from
    bitwise pointers") introduced a check for non-direct casts from/to
    restricted datatypes (when -Wbitwise-pointer is enabled).
    
    This triggered a warning in ipv6_get_dsfield() because sparse doesn't know
    that the buffer already points to some data in the correct bitwise integer
    format. This was already fixed in ipv6_change_dsfield() by the __force
    attribute and can be fixed here the same way.
    Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    1f1c1d7c
dsfield.h 1.12 KB