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 00D6E459AF; Tue, 17 Sep 2024 18:56:24 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E3B3440280; Tue, 17 Sep 2024 18:56:23 +0200 (CEST) Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) by mails.dpdk.org (Postfix) with ESMTP id E272540261 for ; Tue, 17 Sep 2024 18:56:22 +0200 (CEST) Received: by mail-pj1-f52.google.com with SMTP id 98e67ed59e1d1-2da55ea8163so4031060a91.1 for ; Tue, 17 Sep 2024 09:56:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1726592182; x=1727196982; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WQ5h6BLWegYDw69750xoIzk8cdK98U5KegO/uTL3118=; b=WQTxuBWKSofBLz+V9QgzDsyzwFLDN33+CwyioykU8PxopIe2sRJ2TjeNfQReSZDAwa GZnmrg36ZZsJ7vFpr8vMxDHQlgxcDPk/GuxckkLbM2qbbAMVuIbT6MjDHD64/MyrljV3 yZojNRJXCfEyRP80R4/s4NOUApo1T1Q6B3VTCHXClE85Aoo29psGG0RtHJdnS9GiqcrH p2topKzyBO+KdWAEZKTqLHUGeJodJpTlZLUvaLEfx3IrdckMPjeM4YcyGiZp7plyxubI +GmCpj4qjnkK/0x+mohJgym02AKnOty1zO96NWnF1eDJNlmuajvrKMPwHw7RKDXVOBZp Uwag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726592182; x=1727196982; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WQ5h6BLWegYDw69750xoIzk8cdK98U5KegO/uTL3118=; b=gmfOHcewpmlvgnq/f+q/pBZ6/fl6RyESVuDQl1Kpmkm1LkGqYyaYxnjEXQJac14GFj 6EsToY/JANfPjp0glWJB/RdtKq8OpQ4M+PSGgR2Uk5clIkyJn3q+WK35DZReb0QDdmrn GFd++QNedV+ChKdSsThKEJw4fnxqipZ6JDWvQbvbcApqNc2o7S2qQcCAoHXpWaVoehcs pJyPDXtPZk5oMDL6pThG9BrGjnjGNW0CRjEymnOtrjYmHoFcQaujKQWDtgrPl2sH+SW2 8EY4hftvJwsBOrkr0BJzPOgMK7r+sUUppa/f1SVo4Nbuio3yNk8yGxx9HWBtAc0LX4mE 60rA== X-Gm-Message-State: AOJu0Yy4jlX/ghhxoZ5lsUpKZdWQcC7aYz0BOUwxJWYxuLOm1kERK5pQ y53vjAoqYaZ14n0/JpywtUhjuhODKxaVoTy0TlSNk0U5dw9PCoExbIGNAj/AwB6I/LTVHERFWcP M X-Google-Smtp-Source: AGHT+IGlPxRN5zqojo9/Y8T14Zq7wOw/HpcNuooHBQpMo6ExZZBhSSxHqikbN9G257QWyBVv+uUz5g== X-Received: by 2002:a17:90b:1281:b0:2d3:d066:f58b with SMTP id 98e67ed59e1d1-2db9ffcc73dmr23417942a91.12.1726592181984; Tue, 17 Sep 2024 09:56:21 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dbb9cadb0bsm9686428a91.27.2024.09.17.09.56.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2024 09:56:21 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Thomas Monjalon Subject: [PATCH v2] devtools: fix false positive from checkpatch Date: Tue, 17 Sep 2024 09:56:11 -0700 Message-ID: <20240917165611.9943-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240917153421.6552-1-stephen@networkplumber.org> References: <20240917153421.6552-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The codespell dictionary has "stdio" in its bad word list, but stdio.h is often used in DPDK code and creates bogus false positives from checkpatch. Also add a check to the parameters to build-dict.sh so it gives usage error if parameter is missing or does not point to the codespell git clone. Signed-off-by: Stephen Hemminger --- devtools/build-dict.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devtools/build-dict.sh b/devtools/build-dict.sh index a8cac49029..f2fedd534a 100755 --- a/devtools/build-dict.sh +++ b/devtools/build-dict.sh @@ -6,6 +6,10 @@ # path to local clone of https://github.com/codespell-project/codespell.git codespell_path=$1 +if [ ! -d "$codespell_path/codespell_lib/data" ]; then + echo "Usage: $0 " + exit 1 +fi # concatenate codespell dictionaries, except GB/US one for suffix in .txt _code.txt _informal.txt _names.txt _rare.txt _usage.txt ; do @@ -17,6 +21,7 @@ sed '/^..->/d' | sed '/^uint->/d' | sed "/^doesn'->/d" | sed '/^wasn->/d' | +sed '/^stdio->/d' | # print to stdout cat -- 2.45.2