[PATCH v2 01/11] build: define __counted_by as empty on unsupported compilers

Stephen Hemminger stephen at networkplumber.org
Tue Sep 29 01:42:05 CEST 2026


On Mon, 28 Sep 2026 15:29:03 +0200
Eugenio Pérez <eperezma at redhat.com> wrote:

> __counted_by is a GCC 14 / Clang 18 extension used in imported kernel
> uapi headers. Older compilers reject it with an error. Define it as an
> empty function-like macro when the compiler does not support it.
> 
> Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>
> ---

NAK

Missing Signed-Of-By and the right way to handle counted_by is to
introduce and a new macro in rte_common.h (aka __rte_counted_by).
There are lots of places in DPDK that could use it.

If the problem is in vhost, then get it from stddef.h



More information about the dev mailing list