DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Maxime Coquelin <maxime.coquelin@redhat.com>
Cc: dev@dpdk.org, eperezma@redhat.com, david.marchand@redhat.com,
	thomas@monjalon.net
Subject: Re: [PATCH 1/2] config: add compatibility for old compilers with new UAPI headers
Date: Wed, 30 Sep 2026 08:26:38 -0700	[thread overview]
Message-ID: <20260930082638.0932a5e9@phoenix.local> (raw)
In-Reply-To: <20260930095800.551314-2-maxime.coquelin@redhat.com>

On Wed, 30 Sep 2026 11:57:59 +0200
Maxime Coquelin <maxime.coquelin@redhat.com> wrote:

> This patch adds a compatibility define for __counted_by attribute,
> which is not present in older compilers but required for recent UAPI
> headers like vfio.h.
> 
> Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
> ---
>  config/rte_config.h | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/config/rte_config.h b/config/rte_config.h
> index 0447cdf2ad..307e7dac62 100644
> --- a/config/rte_config.h
> +++ b/config/rte_config.h
> @@ -25,6 +25,15 @@
>  #define RTE_TOOLCHAIN_MSVC 1
>  #endif
>  
> +/*
> + * Compatibility define for Linux kernel UAPI headers that may use __counted_by
> + * attribute for bounds checking. This attribute is not understood by userspace
> + * compilers, so define it as empty if not already provided.
> + */
> +#ifndef __counted_by
> +#define __counted_by(m)
> +#endif
> +
>  /* legacy defines */
>  #ifdef RTE_EXEC_ENV_LINUX
>  #define RTE_EXEC_ENV_LINUXAPP 1

NAK this is best done by keeping up to date stddef over in virtio headers.

  reply	other threads:[~2026-09-30 15:26 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-30  9:57 [PATCH 0/2] uapi: introduce compatibility define of old compilers Maxime Coquelin
2026-09-30  9:57 ` [PATCH 1/2] config: add compatibility for old compilers with new UAPI headers Maxime Coquelin
2026-09-30 15:26   ` Stephen Hemminger [this message]
2026-09-30 15:37     ` Maxime Coquelin
2026-10-01  8:19       ` David Marchand
2026-10-01  8:30         ` Maxime Coquelin
2026-09-30  9:58 ` [PATCH 2/2] uapi: update headers to v6.19 Maxime Coquelin
2026-09-30 15:27   ` Stephen Hemminger
2026-09-30 15:38     ` Maxime Coquelin
2026-10-01  9:05 ` [PATCH v2] " David Marchand
2026-10-01 14:12   ` Maxime Coquelin
2026-10-01 16:05   ` Stephen Hemminger
2026-10-02  9:46   ` Thomas Monjalon
2026-10-02  9:59     ` David Marchand
2026-10-03  9:45   ` David Marchand

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260930082638.0932a5e9@phoenix.local \
    --to=stephen@networkplumber.org \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=eperezma@redhat.com \
    --cc=maxime.coquelin@redhat.com \
    --cc=thomas@monjalon.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox