[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20191216.160954.121908386170799472.davem@davemloft.net>
Date: Mon, 16 Dec 2019 16:09:54 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: sven@...fation.org
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH 1/2] ipv6: Annotate bitwise IPv6 dsfield pointer cast
From: Sven Eckelmann <sven@...fation.org>
Date: Fri, 13 Dec 2019 21:24:27 +0100
> 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: Sven Eckelmann <sven@...fation.org>
Applied to net-next
Powered by blists - more mailing lists