diff options
author | Sven Eckelmann <sven@narfation.org> | 2019-12-13 21:24:28 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-12-16 16:09:44 -0800 |
commit | 54e1f08bddbe63a3c0ae44f65df2c8b895003ef4 (patch) | |
tree | 77ba14f2b7011b4496c91d0947e6383b2c3823b3 /drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | |
parent | ipv6: Annotate bitwise IPv6 dsfield pointer cast (diff) | |
download | linux-dev-54e1f08bddbe63a3c0ae44f65df2c8b895003ef4.tar.xz linux-dev-54e1f08bddbe63a3c0ae44f65df2c8b895003ef4.zip |
ipv6: Annotate ipv6_addr_is_* bitwise pointer casts
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: Sven Eckelmann <sven@narfation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c')
0 files changed, 0 insertions, 0 deletions