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 3B8C6C46467 for ; Tue, 10 Jan 2023 16:23:49 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2722C85690; Tue, 10 Jan 2023 17:21:13 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="aldj6mXx"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7E49E85568; Tue, 10 Jan 2023 17:20:32 +0100 (CET) Received: from mail-yw1-x1134.google.com (mail-yw1-x1134.google.com [IPv6:2607:f8b0:4864:20::1134]) (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 0BDAA85592 for ; Tue, 10 Jan 2023 17:20:17 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-yw1-x1134.google.com with SMTP id 00721157ae682-4bf16baa865so159981377b3.13 for ; Tue, 10 Jan 2023 08:20:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=AAZnZfTRR1UfegrEEoMLt5/rrHv/hZebn8xYZH6h9xU=; b=aldj6mXxRpiZcMqYIKOqRtzr3HAwckyql7EFJ9o7Znq7X5q4cUKRy+2+xUU5qXpgiq 2QVNq0xU2WLrcTq4TzHEBYKtMIyNKr0QjR1n56bFnsi3bo0x/eWRbwyfgWciTKUZbu+F W752ESvLotYgx3x7mrPNGfI7BK9AWcKeJUs8A= 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:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=AAZnZfTRR1UfegrEEoMLt5/rrHv/hZebn8xYZH6h9xU=; b=u7LjAnvryV6lBve1IVyOqp5RYZuqESTo0kM2bEtGnFYm8y2dngdb5G2jibacQuG/Zn 6GhqjwsUD1XaoCavGVH7tH4mHgYar9qTgprrAR7f6jQMJmFla0f3PvOFCMaKCWtV5klW tmzhFakAkqiakh4z1wGymr9vJpy+7EAkruHOsfpJDTHqXsuAPHdTiQbeAv378KwA0dEb kyDaeX3zVF37xqE/HbNch6Ajn1gzlcjh9v8hrH9k2nVm6azLauqOT0dt3YSNR4lu6voa /hZ2ajogIRm97dALF1A4njMmxnvVuyXBCsod4Kfsqc6MZKZiWx7wonEtP6xsdhgUnfN0 hpFQ== X-Gm-Message-State: AFqh2kqs6ajisq4wB4hOLitUMRdoETtYoiPZO1FVO8wytBvaiChbUDHw 47crmd+0h74WAURDEa1BZ3vDZABKLh37DWhk90c= X-Google-Smtp-Source: AMrXdXuWb0rQoCkRB6P8yJTKrZLFGVK8jDK+9akmyskz1g7yTzFBRs09YPvGpaSlPVZJH6drqHP9Vw== X-Received: by 2002:a05:7500:4bc4:b0:ef:ccd8:b15c with SMTP id kx4-20020a0575004bc400b000efccd8b15cmr2574433gab.53.1673367603724; Tue, 10 Jan 2023 08:20:03 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-2c2f-ce0f-8dee-7136.res6.spectrum.com. [2603:6081:7b00:6400:2c2f:ce0f:8dee:7136]) by smtp.gmail.com with ESMTPSA id d12-20020a05620a240c00b006fcc3858044sm7557110qkn.86.2023.01.10.08.20.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Jan 2023 08:20:03 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 19/19] CI: Make check for new defined CONFIG symbols even more robust Date: Tue, 10 Jan 2023 11:19:46 -0500 Message-Id: <20230110161946.3816866-19-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230110161946.3816866-1-trini@konsulko.com> References: <20230110161946.3816866-1-trini@konsulko.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 Now that all remaining in-tree cases where we define or undef a CONFIG symbol have been migrated to Kconfig or renamed to CFG we can make the CI check more robust. We will exclude the doc, tools and arch/arm/dts directories from this check as they are special cases. Further, we can exclude the scripts/kconfig/lkc.h and include/linux/kconfig.h files as the CONFIG values they define are special tooling cases and not real symbols. In the case of docs, the only places that currently fail this test are old documentation that should be rewritten so that we can remove this special case. Signed-off-by: Tom Rini --- .azure-pipelines.yml | 3 ++- .gitlab-ci.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines.yml b/.azure-pipelines.yml index 02cd8e416914..d42a442b1eb1 100644 --- a/.azure-pipelines.yml +++ b/.azure-pipelines.yml @@ -64,7 +64,8 @@ stages: # If grep succeeds and finds a match the test fails as we should # have no matches. - script: git grep -E '^#[[:blank:]]*(define|undef)[[:blank:]]*CONFIG_' - include/configs `find arch -name config.h` && exit 1 || exit 0 + :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h + :^include/linux/kconfig.h :^tools/ && exit 1 || exit 0 - job: cppcheck displayName: 'Static code analysis with cppcheck' diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index afd83948c1af..ff3920c0d5aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -131,7 +131,8 @@ check for new CONFIG symbols outside Kconfig: # If grep succeeds and finds a match the test fails as we should # have no matches. - git grep -E '^#[[:blank:]]*(define|undef)[[:blank:]]*CONFIG_' - include/configs `find arch -name config.h` && exit 1 || exit 0 + :^doc/ :^arch/arm/dts/ :^scripts/kconfig/lkc.h + :^include/linux/kconfig.h :^tools/ && exit 1 || exit 0 # QA jobs for code analytics # static code analysis with cppcheck (we can add --enable=all later) -- 2.25.1