From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3A6B845914; Fri, 6 Sep 2024 00:15:39 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 0035A40264; Fri, 6 Sep 2024 00:15:38 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id B98E44025C for ; Fri, 6 Sep 2024 00:15:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1725574537; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=rzkx2aWCnvv3zNqdvjCtX3+8TC1mBDMGVf5F0Spe3gQ=; b=ACkOuvZibhVWzsV2kkeq3AqpTrTAoEPprpu/RT4vHrhB9m+a2sulw+jdK7R9IxFsmBsPtL LvgP/OxIJu0bzntL2vsXVC6irF0ADsDoZWnc4x6Db9K8LtLsR8HH7kwLRL01b3lk0FINut 1eAeVGQc4LBj3OKD5ZuHTH3eBKMsh8M= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-125-h3jNITnXPGWfXj6ahgrpKw-1; Thu, 05 Sep 2024 18:15:36 -0400 X-MC-Unique: h3jNITnXPGWfXj6ahgrpKw-1 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A4B3919560B8; Thu, 5 Sep 2024 22:15:34 +0000 (UTC) Received: from max-p1.redhat.com (unknown [10.39.208.34]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 1353F19560AA; Thu, 5 Sep 2024 22:15:31 +0000 (UTC) From: Maxime Coquelin To: dev@dpdk.org, techboard@dpdk.org, david.marchand@redhat.com, thomas@monjalon.net Cc: Maxime Coquelin Subject: [RFC 0/3] Import Kernel uAPI header files Date: Fri, 6 Sep 2024 00:15:25 +0200 Message-ID: <20240905221528.1861323-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This series enables importing Linux Kernel uAPI headers into the DPDK repository. It aims at solving alignment issues between the build system and the system applications linked ot DPDK libraries are run on. It can also help simplify spaghetti code done to support different versions of the Linux Kernel headers used by the build system. Guidelines and import script are also part of first patch. Follow-up patches are an example of imported uAPI inclusion of VDUSE header into the Vhost library. Maxime Coquelin (3): uapi: introduce kernel uAPI headers importation uapi: import VDUSE header vduse: use import VDUSE uAPI header devtools/import-linux-uapi.sh | 48 ++++ doc/guides/contributing/index.rst | 1 + doc/guides/contributing/linux_uapi.rst | 63 +++++ lib/vhost/meson.build | 6 +- lib/vhost/vduse.c | 2 +- lib/vhost/vduse.h | 22 -- linux-headers/uapi/linux/vduse.h | 353 +++++++++++++++++++++++++ meson.build | 4 + 8 files changed, 472 insertions(+), 27 deletions(-) create mode 100755 devtools/import-linux-uapi.sh create mode 100644 doc/guides/contributing/linux_uapi.rst create mode 100644 linux-headers/uapi/linux/vduse.h -- 2.46.0