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 EBD2745AF3; Wed, 9 Oct 2024 16:50:08 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D648B427D5; Wed, 9 Oct 2024 16:50:08 +0200 (CEST) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id C5961427A4 for ; Wed, 9 Oct 2024 16:50:07 +0200 (CEST) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2e2b159c609so564067a91.2 for ; Wed, 09 Oct 2024 07:50:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1728485407; x=1729090207; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=Rrc9ItFvE/8ktbCtTEsSUmIIvgElO1+eCG/JqJ6xtcM=; b=JXm0Nj51P88id5DPpBvAZGFgi5SdLfKYjH0QhJnuC7ZS9A6qGJKxnYiGfirCGwoo6v o2p2+TLJiJHmMBhR9LeBVSQzB+KHny28I/hOO1+eg1qkPqmUOcWYJLOmRpNsgZ8fzuoY +OqzUu5nXQeomQXCysqvvOTEgw0x774phpVnWd6FMt1R1OZGOXvnuuHt4TXnQjKG+//0 SN8cFTMloG+5EI+0Owgo13aaeOw/c4IDpBwuFN1NnY8enf3lYU2uRUvTFeVHWrqC9PmI menHQWBLvCN/D2S3mriWY777N1vdBQnfg7Pro60PrmCFM3abnJALQpMg/tKMp0rrYTl7 WzWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728485407; x=1729090207; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Rrc9ItFvE/8ktbCtTEsSUmIIvgElO1+eCG/JqJ6xtcM=; b=wvGOCuY2ToUbx/q2ZXptA2MJdDlxsS/pj4pUd5xMErj1Prk25woNUbbALu21lRnB0O EFbsKg3TCTNtI+TCwKGdaQs/wBcMCv7doWynbuvkPHONwGMHxAZQA6k9YJyMM4sLe09i Z77nccGuka4vgcWaAkr8ZRleS9J5CXBivjDDauOJd8poM9Z5JadaA8e6NEaXp29x4wPq 0kMouoDw/EbAIDv3w+0pq0L9iyFMKN24p9Vek8mAzaW34Lxnr+1ZY2BLFv7drhbgRjwK HDZ2F2FXgyTT1nnTsfyWZ2djwsShGdZCI+2WISdMM1Lm3lwj7ydjbsrWmd9L5VgWhiIR tKrA== X-Gm-Message-State: AOJu0Yw73FVzTySislJLfHgHWvWnIzVXudFaRlGqOdYHlBGfpB0bNDwn LlLyNnxAKYpLP4UIpF2Wiqw3DqXFUXz0bfq8z6umSL/p/HViupVXeSPkWAiY+8k= X-Google-Smtp-Source: AGHT+IElZyU3Aymh6y+vLDTaqI/A/d0g7jBcuoCYtQewJzu61xhi4pzhTQUPQIWl6gpWZaZ+gWJazA== X-Received: by 2002:a17:90a:e615:b0:2e2:9e44:fc36 with SMTP id 98e67ed59e1d1-2e2a2525feamr3431899a91.29.1728485406748; Wed, 09 Oct 2024 07:50:06 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e2a596e016sm1758485a91.46.2024.10.09.07.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Oct 2024 07:50:06 -0700 (PDT) Date: Wed, 9 Oct 2024 07:50:04 -0700 From: Stephen Hemminger To: Maxime Coquelin 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 Message-ID: <20241009075004.513224f2@hermes.local> In-Reply-To: <20241009085805.2638314-2-maxime.coquelin@redhat.com> References: <20241009085805.2638314-1-maxime.coquelin@redhat.com> <20241009085805.2638314-2-maxime.coquelin@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 On Wed, 9 Oct 2024 10:58:03 +0200 Maxime Coquelin 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 @@ > + 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.