From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22A57C4332F for ; Mon, 19 Dec 2022 14:53:38 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 58A9E853C0; Mon, 19 Dec 2022 15:53:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="hFNtQFEv"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 657ED85397; Mon, 19 Dec 2022 15:53:19 +0100 (CET) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 19856853BB for ; Mon, 19 Dec 2022 15:53:16 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=maxim.cournoyer@gmail.com Received: by mail-qt1-x82f.google.com with SMTP id s9so8355176qtx.6 for ; Mon, 19 Dec 2022 06:53:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=LJjGYezbgWtYEcSU+JykI50vd1znog5M8R1kLA9/xtk=; b=hFNtQFEvkbo1sTv0agGUdIKQLKmurLo1PZ2oNt9yKQo5dwJnEVF88DosOt0KNFvg5Y 4Nau06rDo2RoQVOg329tj+0htdOYrbuA78BlFY29nry+l5iXCWZZAaMha5kv+ZqpFtrS 1B7SO2/x/g+Y6rx7zwFUyNr+5VPtn9GmBqbwvhFgH0+S0oGT8ECm5LLocTaYe3fmlE2t 5WG1HoZ5RG0qh1aLWoeomJ8NDY5YlSEJk0SfiSdLZMcPVkZ3I86qPGH757ZiDuCVpO2a JMOzJvYOcGl1mPKaySKE6Gyge/l46gWfQ91950crI+mYhaYL4myWUqyfi1RsEQdYdiy0 7jqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=LJjGYezbgWtYEcSU+JykI50vd1znog5M8R1kLA9/xtk=; b=4pN53/DF1RzkZ51XYwXLqzlzIJTs2YASC8IC318hk2JHS+59nAZ1ftM9t6ZPY4nLUs xgc5jzhnp53f0ee41Oz94xsy+fo1yARigB4Fy7EITpDbjzqdbRAK7qBuiMUOSOHY6GlM UIkyL3x0vjhKGCvnlDLNXWCJztE0uZdCj0RTJQVEyJt0fwQJOO2c0aGaykEGGj/JwCdl me1PmXJpWkIEANgwo5rWiZyC+58jEjeD26Susdq5wE/9bIQIbJAeufsbcCC9Y4znnL3G I/RrD/SuGy4HWE1WmOmxkJi8t2D83NtTfF9ze7AGNmk/SHBX/dLELjjzw52ERNbPPyW8 kilg== X-Gm-Message-State: ANoB5plvqHb6dj8Qbc6qUfNO70PSwkX9iddekviDvu6nekwFaudm9Lvm 0jW3btWtxs2Tl08uueI5EyDDLnxGIMeo1A== X-Google-Smtp-Source: AA0mqf4Tp55xvlu14u3VEkUhuTuBoP4jAfyIeTXF8kofCDsZeIuZYtKHQdxUqGd+eU2jAX3R6lgVhg== X-Received: by 2002:ac8:4688:0:b0:3a7:d465:e with SMTP id g8-20020ac84688000000b003a7d465000emr56318808qto.13.1671461594391; Mon, 19 Dec 2022 06:53:14 -0800 (PST) Received: from localhost.localdomain (dsl-10-133-202.b2b2c.ca. [72.10.133.202]) by smtp.gmail.com with ESMTPSA id y6-20020a05620a44c600b006fcb4e01345sm7289942qkp.24.2022.12.19.06.53.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Dec 2022 06:53:14 -0800 (PST) From: Maxim Cournoyer X-Google-Original-From: Maxim Cournoyer To: U-Boot Mailing List Cc: Maxim Cournoyer , Simon Glass Subject: [PATCH v2 3/8] patman: invoke the checkpatch.pl script with '--u-boot' and '--strict' Date: Mon, 19 Dec 2022 09:52:52 -0500 Message-Id: <20221219145258.32046-3-maxim.cournoyer@savoirfairelinux.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221219145258.32046-1-maxim.cournoyer@savoirfairelinux.com> References: <20221219145258.32046-1-maxim.cournoyer@savoirfairelinux.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean This resolves 10 out of 11 test failures seen when running './patman test' from the 'tools/patman' subdirectory. This was caused by the .checkpatch.conf configuration file at the root of the project not being picked up. Make the test suite of patman independant from it by always invoking the checkpatch.pl script with the minimally required arguments for the test suite to pass. Signed-off-by: Maxim Cournoyer --- Changes in v2: - Reword the commit message with a better explanation of the problem - Add the '--strict' argument to script invocation tools/patman/checkpatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/checkpatch.py b/tools/patman/checkpatch.py index d1b902dd96..012c0d895c 100644 --- a/tools/patman/checkpatch.py +++ b/tools/patman/checkpatch.py @@ -211,7 +211,7 @@ def check_patch(fname, verbose=False, show_types=False, use_tree=False): stdout: Full output of checkpatch """ chk = find_check_patch() - args = [chk] + args = [chk, '--u-boot', '--strict'] if not use_tree: args.append('--no-tree') if show_types: -- 2.38.1