net/sfc: fix build with clang 3.4.2
authorAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Thu, 22 Jul 2021 07:49:05 +0000 (10:49 +0300)
committerDavid Marchand <david.marchand@redhat.com>
Thu, 22 Jul 2021 19:55:50 +0000 (21:55 +0200)
commit634a9bcb0bd8c1827a6d79425bd3f600e04e81b4
tree37131b688f1a1895648d07045ab35ff0212f962c
parent565d01226e3ce5ab260ee29cfe1019b413dee752
net/sfc: fix build with clang 3.4.2

Old clang requires libatomic as well as gcc. Avoid compiler name and
version based checks. Add custom test for 16-byte atomic operations
to find out if libatomic is required to build.

Bugzilla ID: 760
Fixes: 96fd2bd69b58 ("net/sfc: support flow action count in transfer rules")

Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Acked-by: David Marchand <david.marchand@redhat.com>
drivers/net/sfc/meson.build