[dpdk-dev] [PATCH] eventdev: fix dequeue timeout bitmask brackets
Thomas Monjalon
thomas at monjalon.net
Thu Apr 20 00:21:48 CEST 2017
> > Fix brackets around the & operator to first mask a single bit
> > and then perform the not operator. Previously the result was
> > not as expected, due to the ! operator being performed first.
> >
> > As noted on list[1] Clang 4.0 warns about a possible bug for
> >
> > this type of line:
> > if (!variable & FLAG) {
> >
> > Fixes: 4f0804bbdfb9 ("eventdev: implement the northbound APIs")
> >
> > Signed-off-by: Harry van Haaren <harry.van.haaren at intel.com>
>
> Acked-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
A similar patch has been applied, sorry:
http://dpdk.org/commit/27e9fb84
More information about the dev
mailing list