• Sven Eckelmann's avatar
    ipv6: Annotate ipv6_addr_is_* bitwise pointer casts · 54e1f08b
    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 the 64 bit optimized ipv6_addr_is_*() functions
    because sparse doesn't know that the buffer already points to some data in
    the correct bitwise integer format. But these were correct and can
    therefore be marked with __force to signalize sparse an intended cast to a
    specific bitwise type.
    Signed-off-by: default avatarSven Eckelmann <sven@narfation.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    54e1f08b
addrconf.h 13.8 KB