[PATCH 2/2] devtools: forbid the use of ffs compiler builtins
Stephen Hemminger
stephen at networkplumber.org
Wed Oct 16 17:04:24 CEST 2024
On Wed, 16 Oct 2024 15:54:11 +0200
Mattias Rönnblom <mattias.ronnblom at ericsson.com> wrote:
> Extend checkpatches.sh to detect the use of __builtin_(ffs|ffsll).
>
> These intrinsics are not available in MSVC, and there are perfectly
> serviceable alternatives in <rte_bitops.h>.
>
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>
> Suggested-by: David Marchand <david.marchand at redhat.com>
Shouldn't this apply to all _builtin_ functions.
There are a lot of drivers still doing this.
More information about the dev
mailing list