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 C043D459BF; Tue, 17 Sep 2024 17:34:33 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8D897402D8; Tue, 17 Sep 2024 17:34:33 +0200 (CEST) Received: from mail-pf1-f179.google.com (mail-pf1-f179.google.com [209.85.210.179]) by mails.dpdk.org (Postfix) with ESMTP id C002840261 for ; Tue, 17 Sep 2024 17:34:32 +0200 (CEST) Received: by mail-pf1-f179.google.com with SMTP id d2e1a72fcca58-71979bf5e7aso447878b3a.1 for ; Tue, 17 Sep 2024 08:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1726587272; x=1727192072; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5tDdRcNX9EB4kGskDckjUi3UauhGe6T8yhnsIKxGo1c=; b=X8tKkaXBLlJDbt+/3JLw55H70/B/VvZlKd7YW9bjpFpbkrGPAMKx7rZcgZCWMxXphf huW6+pCjlZuFCAh7vzJ9jqmEo7KJ5xqocz1ckaZlAmJWp10LH7J0DU5yVqftT5VXp0K+ RUdBX1OjIRIMD2K9E340Iwrtbce+qPTsus6T/hKeng8vm32fMiDY4DADZEkuq87wyrbo GzCfKJVaBevJZW8tvYU+ixJydc9fhLw9x2PgNALLHaCbkt+F4S6S4F9uSyY4GXB8X+3h ZEM8FW+9XzB6Yr6Nbvy4rTVzoxPnMSdd0eIAAhp/M6hKtExLNNf1wjwBkKoXG8cRNQnD P/SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726587272; x=1727192072; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=5tDdRcNX9EB4kGskDckjUi3UauhGe6T8yhnsIKxGo1c=; b=dYCekHIbYGBx2E5pnqMNGyswaSLuYuMzVnH8JE0sKjPqwFVYTVyCLbCCdh6o340TuG OQhDYTqZEByEsTo6MkPIBnotdgOWQ7O6VqOk/w307fdTZ3j340DTGnRTkeip2U8laD5G iuNZ1Y+lmFsBti67tzy/OLg7MWEaos9sQJVs54JTqWmkiA27qmEP1r+DFhCrGN6SeQPM yUe2/ojtVd2mxgDWRx4B+sIOe0lWBcENVDkqAIRYzQIS97ggcVbSC20p8+V96EL9FFHK pzQP4f12UuT+ToqTezpEmRPZUWU/eIlZONmAxkhjpLUL4X/2upoZLhuA6T1tZuCf1osi N3gA== X-Gm-Message-State: AOJu0YzpNkP+Ym46m0wP8aaDQJms0lpDt3xcYOiU+ur2D+ENsFx6Li5b pH8oGAM0FVBj5iJuhIJcu57Q7AKnXnm3ok8Xsu3TT1KgkriWL1XG5b3MYRJghAOVZymQ6MTaslg 8 X-Google-Smtp-Source: AGHT+IFY0E+gcQdXibDHKPR4p+BU8j93jj7kK4Q7a3yNirCntosmlMqFd1OUKGfHzS6G3Ti+6avBZw== X-Received: by 2002:a05:6a00:23d5:b0:719:1f54:73a5 with SMTP id d2e1a72fcca58-71926056052mr27756142b3a.2.1726587271797; Tue, 17 Sep 2024 08:34:31 -0700 (PDT) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71944b7aeafsm5490461b3a.99.2024.09.17.08.34.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Sep 2024 08:34:31 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Thomas Monjalon Subject: [PATCH] devtools: fix false positive from checkpatch Date: Tue, 17 Sep 2024 08:34:21 -0700 Message-ID: <20240917153421.6552-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 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 postitives 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..96786d2c53 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