DPDK patches and discussions
 help / color / mirror / Atom feed
From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: Stephen Hemminger <stephen@networkplumber.org>
Cc: dev@dpdk.org, techboard@dpdk.org, david.marchand@redhat.com,
	thomas@monjalon.net, mb@smartsharesystems.com,
	ferruh.yigit@amd.com
Subject: Re: [PATCH v1 1/3] uapi: introduce kernel uAPI headers import
Date: Thu, 24 Oct 2024 14:45:10 +0200	[thread overview]
Message-ID: <3eb53ec1-2c57-4efe-b797-60d3aa0785c6@redhat.com> (raw)
In-Reply-To: <1e79879c-ab72-444c-9cb5-fb96cff25987@redhat.com>



On 10/14/24 14:14, Maxime Coquelin wrote:
> 
> 
> On 10/9/24 16:50, Stephen Hemminger wrote:
>> On Wed,  9 Oct 2024 10:58:03 +0200
>> Maxime Coquelin <maxime.coquelin@redhat.com> wrote:
>>
>>> +fixup_includes()
>>> +{
>>> +    local path=$1
>>> +
>>> +    sed -i -E -e '
>>> +    s/([[:space:](])(__user|__force|__iomem)[[:space:]]/\1/g
>>> +    s/__attribute_const__([[:space:]]|$)/\1/g
>>> +    s@^#include <linux/compiler(|_types).h>@@
>>> +    
>>> s/(^|[^a-zA-Z0-9])__packed([^a-zA-Z0-9_]|$)/\1__attribute__((packed))\2/g
>>> +    
>>> s/(^|[[:space:](])(inline|asm|volatile)([[:space:](]|$)/\1__\2__\3/g
>>> +    s@#(ifndef|define|endif[[:space:]]*/[*])[[:space:]]*_UAPI@#\1 @
>>> +    ' $path
>>> +
>>
>>
>>
>> Rather than copy-pasting headers_install.sh, could you use it directly?
>>
>> The copy/paste from GPL-2.0 concerns me.
>> And the potential upstream change as well.
>>
> 
> The downside I see by calling directly the headers_install.sh script is
> that it could trigger some false positives if the version used for
> import is different from the one used to check.
> 
> What we could do it to just do our own sed command if that's really an
> issue, that we would tailor based on our needs.
> 
> Others, any thoughts?

Following the discussion during the DPDK Release status meeting this
morning, I will propose a new version implementing our own sed command,
tailored to only our needs.

Thanks,
Maxime

> Thanks,
> Maxime


  reply	other threads:[~2024-10-24 12:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-09  8:58 [PATCH v1 0/3] Import Kernel uAPI header files Maxime Coquelin
2024-10-09  8:58 ` [PATCH v1 1/3] uapi: introduce kernel uAPI headers import Maxime Coquelin
2024-10-09 14:50   ` Stephen Hemminger
2024-10-14 12:14     ` Maxime Coquelin
2024-10-24 12:45       ` Maxime Coquelin [this message]
2024-10-24 16:14         ` Stephen Hemminger
2024-10-09  8:58 ` [PATCH v1 2/3] uapi: import VDUSE header Maxime Coquelin
2024-10-09  8:58 ` [PATCH v1 3/3] vduse: use imported VDUSE uAPI header Maxime Coquelin
2024-10-15 17:10   ` Stephen Hemminger
2024-10-09 10:29 ` [PATCH v1 0/3] Import Kernel uAPI header files Morten Brørup

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=3eb53ec1-2c57-4efe-b797-60d3aa0785c6@redhat.com \
    --to=maxime.coquelin@redhat.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=ferruh.yigit@amd.com \
    --cc=mb@smartsharesystems.com \
    --cc=stephen@networkplumber.org \
    --cc=techboard@dpdk.org \
    --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;
as well as URLs for NNTP newsgroup(s).