From: David Marchand <david.marchand@redhat.com>
To: David Marchand <david.marchand@redhat.com>
Cc: dev@dpdk.org, bruce.richardson@intel.com
Subject: Re: [PATCH v7 0/9] Add a stricter headers check
Date: Thu, 2 Oct 2025 15:21:23 +0200 [thread overview]
Message-ID: <CAJFAV8xF4uMJNzK==D5tjHiggxJRGDW1=X8FBvKBykM9Nc9GmA@mail.gmail.com> (raw)
In-Reply-To: <20251001064512.2539269-1-david.marchand@redhat.com>
On Wed, 1 Oct 2025 at 08:45, David Marchand <david.marchand@redhat.com> wrote:
>
> As explained in patch 8, the current headers check can not catch
> issues when a public header includes an internal header.
>
> Patch 1-5 fixes have not been marked as backport material as those bugs
> seems minor/easy to fix externally (by either including missing headers,
> or enabling enable_driver_sdk option).
>
>
> --
> David Marchand
>
> Changes since v6:
> - a rabbit told me I should fix driver headers include path:
> https://github.com/david-marchand/dpdk/pull/2#discussion_r2390690589,
>
> Changes since v5:
> - added headers staging cleanup,
>
> Changes since v4:
> - reworked headers install,
> - fixed issue in ARM memcpy header,
> - further simplified the header check modifications,
>
> Changes since v3:
> - narrowed down the changes under a check on check_includes= option,
> - moved the staging directories under buildtools/chkincs,
>
> Changes since v2:
> - major rework, dropping the makefile approach, and instead copying
> headers to a staging directory used by the check,
> - rebased,
> - dropped changes on raw cnxk drivers and disabled the associated
> build warning in the headers check,
>
> David Marchand (9):
> baseband/acc: fix exported header
> drivers: drop export of driver headers
> eventdev: do not include driver header in DMA adapter
> gpudev: fix driver header for Windows
> drivers: fix some exported headers
> eal/arm: fix C++ build for 32-bit memcpy
> build: factorize headers installation
> buildtools/chkincs: use a staging directory for headers
> power: separate public and driver headers
>
> buildtools/chkincs/meson.build | 68 +++++++++++++++----
> .../chkincs/staging/drivers/meson.build | 13 ++++
> buildtools/chkincs/staging/meson.build | 43 ++++++++++++
> buildtools/chkincs/staging/stage-headers.py | 50 ++++++++++++++
> config/meson.build | 3 +-
> devtools/checkpatches.sh | 8 +++
> drivers/baseband/acc/meson.build | 2 +-
> drivers/bus/vmbus/rte_vmbus_reg.h | 6 ++
> drivers/crypto/cnxk/rte_pmd_cnxk_crypto.h | 2 +
> drivers/meson.build | 7 +-
> drivers/net/dpaa/rte_pmd_dpaa.h | 2 +
> drivers/net/intel/iavf/rte_pmd_iavf.h | 6 ++
> drivers/net/mlx5/rte_pmd_mlx5.h | 3 +
> drivers/net/txgbe/meson.build | 2 +-
> drivers/raw/dpaa2_cmdif/rte_pmd_dpaa2_cmdif.h | 2 +
> drivers/raw/ntb/rte_pmd_ntb.h | 2 +
> lib/bbdev/meson.build | 14 ++--
> lib/eal/arm/include/meson.build | 3 +-
> lib/eal/arm/include/rte_memcpy_32.h | 6 +-
> lib/eal/include/meson.build | 3 +-
> lib/eal/loongarch/include/meson.build | 3 +-
> lib/eal/ppc/include/meson.build | 3 +-
> lib/eal/riscv/include/meson.build | 3 +-
> lib/eal/x86/include/meson.build | 6 +-
> lib/ethdev/meson.build | 6 +-
> lib/eventdev/rte_event_dma_adapter.h | 2 +-
> lib/gpudev/gpudev.c | 1 +
> lib/gpudev/gpudev_driver.h | 4 +-
> lib/meson.build | 10 +--
> lib/mldev/meson.build | 5 +-
> lib/power/meson.build | 7 +-
> lib/power/power_cpufreq.h | 14 +---
> lib/power/power_uncore_ops.h | 1 +
> lib/power/rte_power_cpufreq.c | 2 +-
> lib/power/rte_power_cpufreq.h | 15 +++-
> lib/power/rte_power_uncore.c | 2 +-
> lib/power/rte_power_uncore.h | 3 +-
> lib/rawdev/meson.build | 3 +-
> lib/regexdev/meson.build | 3 +-
> lib/security/meson.build | 3 +-
> meson.build | 21 ++++--
> 41 files changed, 276 insertions(+), 86 deletions(-)
> create mode 100644 buildtools/chkincs/staging/drivers/meson.build
> create mode 100644 buildtools/chkincs/staging/meson.build
> create mode 100755 buildtools/chkincs/staging/stage-headers.py
Series applied, thanks for the reviews.
--
David Marchand
prev parent reply other threads:[~2025-10-02 13:21 UTC|newest]
Thread overview: 101+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-27 11:26 [RFC 0/6] " David Marchand
2024-11-27 11:26 ` [RFC 1/6] baseband/acc: fix exported header David Marchand
2024-11-27 11:26 ` [RFC 2/6] drivers: drop export of driver headers David Marchand
2024-11-27 11:26 ` [RFC 3/6] eventdev: do not include driver header in DMA adapter David Marchand
2024-11-27 13:49 ` [EXTERNAL] " Amit Prakash Shukla
2024-11-27 11:26 ` [RFC 4/6] drivers: fix exported headers David Marchand
2024-11-27 11:26 ` [RFC 5/6] build: install indirect headers to a dedicated directory David Marchand
2024-11-27 11:42 ` Bruce Richardson
2024-12-10 13:36 ` David Marchand
2024-11-27 11:26 ` [RFC 6/6] buildtools: externally check exported headers David Marchand
2024-12-13 10:50 ` [PATCH v2 0/6] Add a stricter headers check David Marchand
2024-12-13 10:50 ` [PATCH v2 1/6] baseband/acc: fix exported header David Marchand
2024-12-13 11:01 ` Bruce Richardson
2024-12-13 10:50 ` [PATCH v2 2/6] drivers: drop export of driver headers David Marchand
2024-12-13 11:03 ` Bruce Richardson
2024-12-16 9:13 ` Andrew Rybchenko
2024-12-13 10:50 ` [PATCH v2 3/6] eventdev: do not include driver header in DMA adapter David Marchand
2024-12-13 11:04 ` Bruce Richardson
2024-12-13 10:50 ` [PATCH v2 4/6] drivers: fix exported headers David Marchand
2024-12-13 11:14 ` Bruce Richardson
2024-12-13 13:46 ` David Marchand
2024-12-16 8:15 ` David Marchand
2024-12-13 17:10 ` Stephen Hemminger
2024-12-13 10:50 ` [PATCH v2 5/6] build: install indirect headers to a dedicated directory David Marchand
2024-12-13 10:50 ` [PATCH v2 6/6] buildtools: externally check exported headers David Marchand
2024-12-13 11:27 ` [PATCH v2 0/6] Add a stricter headers check Bruce Richardson
2024-12-13 13:38 ` David Marchand
2025-09-24 17:25 ` [PATCH v3 0/7] " David Marchand
2025-09-24 17:25 ` [PATCH v3 1/7] baseband/acc: fix exported header David Marchand
2025-09-24 17:25 ` [PATCH v3 2/7] drivers: drop export of driver headers David Marchand
2025-09-24 17:25 ` [PATCH v3 3/7] eventdev: do not include driver header in DMA adapter David Marchand
2025-09-24 17:25 ` [PATCH v3 4/7] gpudev: fix driver header for Windows David Marchand
2025-09-25 7:53 ` Bruce Richardson
2025-09-25 8:43 ` David Marchand
2025-09-24 17:25 ` [PATCH v3 5/7] drivers: fix some exported headers David Marchand
2025-09-24 17:25 ` [PATCH v3 6/7] buildtools/chkincs: use a staging directory for headers David Marchand
2025-09-25 8:00 ` Bruce Richardson
2025-09-25 8:42 ` David Marchand
2025-09-25 9:22 ` Bruce Richardson
2025-09-25 10:29 ` David Marchand
2025-09-25 10:31 ` Bruce Richardson
2025-09-25 9:31 ` Bruce Richardson
2025-09-25 10:17 ` Morten Brørup
2025-09-25 10:22 ` Bruce Richardson
2025-09-25 10:22 ` David Marchand
2025-09-25 10:31 ` Bruce Richardson
2025-09-24 17:25 ` [PATCH v3 7/7] power: separate public and driver headers David Marchand
2025-09-25 12:31 ` [PATCH v4 0/7] Add a stricter headers check David Marchand
2025-09-25 12:31 ` [PATCH v4 1/7] baseband/acc: fix exported header David Marchand
2025-09-25 12:31 ` [PATCH v4 2/7] drivers: drop export of driver headers David Marchand
2025-09-25 12:34 ` [EXTERNAL] " Akhil Goyal
2025-09-25 12:31 ` [PATCH v4 3/7] eventdev: do not include driver header in DMA adapter David Marchand
2025-09-25 12:31 ` [PATCH v4 4/7] gpudev: fix driver header for Windows David Marchand
2025-09-25 12:43 ` Bruce Richardson
2025-09-25 12:31 ` [PATCH v4 5/7] drivers: fix some exported headers David Marchand
2025-09-25 12:44 ` Bruce Richardson
2025-09-25 12:31 ` [PATCH v4 6/7] buildtools/chkincs: use a staging directory for headers David Marchand
2025-09-25 14:46 ` Bruce Richardson
2025-09-26 8:14 ` David Marchand
2025-09-26 9:06 ` Bruce Richardson
2025-09-26 9:18 ` David Marchand
2025-09-25 12:31 ` [PATCH v4 7/7] power: separate public and driver headers David Marchand
2025-09-26 12:40 ` [PATCH v5 0/9] Add a stricter headers check David Marchand
2025-09-26 12:40 ` [PATCH v5 1/9] baseband/acc: fix exported header David Marchand
2025-09-26 12:40 ` [PATCH v5 2/9] drivers: drop export of driver headers David Marchand
2025-09-26 12:40 ` [PATCH v5 3/9] eventdev: do not include driver header in DMA adapter David Marchand
2025-09-26 12:40 ` [PATCH v5 4/9] gpudev: fix driver header for Windows David Marchand
2025-09-26 12:40 ` [PATCH v5 5/9] drivers: fix some exported headers David Marchand
2025-09-26 12:40 ` [PATCH v5 6/9] eal/arm: fix C++ build for 32-bit memcpy David Marchand
2025-09-26 13:01 ` Bruce Richardson
2025-09-26 19:55 ` Morten Brørup
2025-09-27 6:33 ` Mattias Rönnblom
2025-09-26 12:41 ` [PATCH v5 7/9] build: factorize headers installation David Marchand
2025-09-26 13:08 ` Bruce Richardson
2025-09-26 12:41 ` [PATCH v5 8/9] buildtools/chkincs: use a staging directory for headers David Marchand
2025-09-29 8:16 ` Bruce Richardson
2025-09-29 9:06 ` David Marchand
2025-09-29 9:43 ` Bruce Richardson
2025-09-26 12:41 ` [PATCH v5 9/9] power: separate public and driver headers David Marchand
2025-09-29 8:17 ` Bruce Richardson
2025-09-30 6:57 ` [PATCH v6 0/9] Add a stricter headers check David Marchand
2025-09-30 6:57 ` [PATCH v6 1/9] baseband/acc: fix exported header David Marchand
2025-09-30 6:57 ` [PATCH v6 2/9] drivers: drop export of driver headers David Marchand
2025-09-30 6:57 ` [PATCH v6 3/9] eventdev: do not include driver header in DMA adapter David Marchand
2025-09-30 6:57 ` [PATCH v6 4/9] gpudev: fix driver header for Windows David Marchand
2025-09-30 6:57 ` [PATCH v6 5/9] drivers: fix some exported headers David Marchand
2025-09-30 6:57 ` [PATCH v6 6/9] eal/arm: fix C++ build for 32-bit memcpy David Marchand
2025-09-30 6:57 ` [PATCH v6 7/9] build: factorize headers installation David Marchand
2025-09-30 6:57 ` [PATCH v6 8/9] buildtools/chkincs: use a staging directory for headers David Marchand
2025-09-30 6:57 ` [PATCH v6 9/9] power: separate public and driver headers David Marchand
2025-10-01 6:45 ` [PATCH v7 0/9] Add a stricter headers check David Marchand
2025-10-01 6:45 ` [PATCH v7 1/9] baseband/acc: fix exported header David Marchand
2025-10-01 6:45 ` [PATCH v7 2/9] drivers: drop export of driver headers David Marchand
2025-10-01 6:45 ` [PATCH v7 3/9] eventdev: do not include driver header in DMA adapter David Marchand
2025-10-01 6:45 ` [PATCH v7 4/9] gpudev: fix driver header for Windows David Marchand
2025-10-01 6:45 ` [PATCH v7 5/9] drivers: fix some exported headers David Marchand
2025-10-01 6:45 ` [PATCH v7 6/9] eal/arm: fix C++ build for 32-bit memcpy David Marchand
2025-10-01 6:45 ` [PATCH v7 7/9] build: factorize headers installation David Marchand
2025-10-01 6:45 ` [PATCH v7 8/9] buildtools/chkincs: use a staging directory for headers David Marchand
2025-10-01 6:45 ` [PATCH v7 9/9] power: separate public and driver headers David Marchand
2025-10-02 13:21 ` David Marchand [this message]
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='CAJFAV8xF4uMJNzK==D5tjHiggxJRGDW1=X8FBvKBykM9Nc9GmA@mail.gmail.com' \
--to=david.marchand@redhat.com \
--cc=bruce.richardson@intel.com \
--cc=dev@dpdk.org \
/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;
as well as URLs for NNTP newsgroup(s).