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 E8F3DC61DA3 for ; Wed, 22 Feb 2023 01:44:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BDF7C85ADD; Wed, 22 Feb 2023 02:42:28 +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="pR0GYT3y"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A57BA85A6C; Wed, 22 Feb 2023 02:38:47 +0100 (CET) Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (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 7340280ADA for ; Wed, 22 Feb 2023 02:38:43 +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=troykiskyboundary@gmail.com Received: by mail-pl1-x62d.google.com with SMTP id ky4so8289682plb.3 for ; Tue, 21 Feb 2023 17:38:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=EddrFAezdrKjrjayNucQUK3G3Hf1iVXE3nllSehg8a0=; b=pR0GYT3yZTgf2cSu1e1kFUrIoKn4TOIaxv7gEpUmKTZyL8K/PwC8XX1quvdZ5bsHz2 cko15yn7ON90uFx/YRRjjLZXR99+6vkgnNm2oeBJhWN3TVZeOulWeEfK775IXxDGbBYD sNaRRFRWQCx5kMDECqCxgnIZ5GtkAB8qFfBO65zmvmJrFRiTKo4iy3dPE15wraIVQZb3 PGIKtn3p/owkouXw/xZhaj0JPYt4T5Xjyoip13bsntvMDYqZXiHCTc23q7Xv1cbhmWzT myTBXmzfPCS9qel0H922FtAJPCuSVPpWN12GTaPjpcb3rn2eFOLoIeppngLBqO3q1HQ9 CwCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=EddrFAezdrKjrjayNucQUK3G3Hf1iVXE3nllSehg8a0=; b=IMvlffu9xGZZ7mweTnNqFt4AsaVoXAub1KLdH3MQ1cHHhuwWn03plpTSlCBCdlHJ0e +dw9+JVW+1RRIjGToY69Yh++P1udT7encGyoGRv4oHuYlw77S8LMeIHxpJcAeNqkSCuZ A/84fvQP5mqGrOUiwixyJXWKfrpxOYsL8GU8s2a/YHkrxufhmpT0NheTciuG/EeLZH3B ljSLIRPIS6iNJtr2V31jAtC5Bs72RPpCRbfN5vqXCt7BosgC2Ma8EtLosp71t8iu20KI GG/0QW0UFaA1gmMaHdHSbJRpP59KXmOFexxFAhmfB4PSWbBhDrEdUFamnj2vazHKfLC2 UQrQ== X-Gm-Message-State: AO0yUKUecE+H3MI1NKu3ehvgEu8SEQXIJ9GniqX3quemaw71dCFZFLcF v5+dfHbZz3VU2FQNxy+ov20= X-Google-Smtp-Source: AK7set+r7OMKJx65wix6JshdGDwfyjcso7fKnS003n+ko+pza74lNolID8fCG2dYhNku9qCy/DznoQ== X-Received: by 2002:a05:6a21:3807:b0:bc:a9f2:9355 with SMTP id yi7-20020a056a21380700b000bca9f29355mr12603817pzb.9.1677029921838; Tue, 21 Feb 2023 17:38:41 -0800 (PST) Received: from OS2.boundarydevices.com. (wsip-184-189-120-117.oc.oc.cox.net. [184.189.120.117]) by smtp.gmail.com with ESMTPSA id d6-20020aa78e46000000b005accb31201fsm4200976pfr.26.2023.02.21.17.38.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Feb 2023 17:38:41 -0800 (PST) From: Troy Kisky To: sjg@chromium.org, trini@konsulko.com, u-boot@lists.denx.de Cc: gary.bisson@lairdconnect.com, Troy Kisky , Alison Wang , Andre Przywara , Baruch Siach , Bin Meng , Fabio Estevam , Heiko Thiery , Heinrich Schuchardt , Jaehoon Chung , Joel Stanley , Klaus Goger , Loic Poulain , Lukasz Majewski , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Marek Vasut , "Matwey V. Kornilov" , Max Krummenacher , Miaoqian Lin , "NXP i.MX U-Boot Team" , Olaf Mandel , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Peter Hoyes , Quentin Schulz , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Rick Chen , Samuel Dionne-Riel , Samuel Holland , Sean Anderson , Stefan Roese , Stefano Babic , Tim Harvey Subject: [PATCH v1 00/24] CONFIG_IS_ENABLED vs IS_ENABLED Date: Tue, 21 Feb 2023 17:37:57 -0800 Message-Id: <20230222013821.1144691-1-troykiskyboundary@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Mailman-Approved-At: Wed, 22 Feb 2023 02:42:26 +0100 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 patch set gets ready to checks the usage of CONFIG_IS_ENABLED/IS_ENABLED. After the set has been applied, you can delete test/usage_of_is_enabled_todo.txt and run test/usage_of_is_enabled_commit.sh The script test/usage_of_is_enabled_check.sh checks for new questionable uses of CONFIG_IS_ENABLED/IS_ENABLED and is added to .azure-pipelines.yml, and .gitlab-ci.yml Troy Kisky (24): cmd: nvedit: check for ENV_SUPPORT lib: crc32: prepare for CONFIG_IS_ENABLED changes lib: md5: prepare for CONFIG_IS_ENABLED changes lib: sha1: prepare for CONFIG_IS_ENABLED changes lib: sha256: prepare for CONFIG_IS_ENABLED changes lib: sha512: prepare for CONFIG_IS_ENABLED changes tools: prevent CONFIG_IS_ENABLED errors by including linux/kconfig.h tools: Makefile: prepare for CONFIG_IS_ENABLED changes by adding CONFIG_TOOLS_xxx x86: cpu: qemu: qemu: remove SPL use with CONFIG_IS_ENABLED config_distro_bootcmd: remove booting environment variables from SPL environment ofnode: fdt_support definitions needed if OF_CONTROL is enabled ringneck-px30: remove check for ENV_IS_NOWHERE, it is an SPL config puma-rk3399: remove check for ENV_IS_NOWHERE, it is an SPL config fdt_support: always define fdt_fixup_mtdparts m53menlo: define ft_board_setup only if CONFIG_IS_ENABLED(OF_LIBFDT) freescale: common: pfuze: define pfuze_mode_init only if defined(CONFIG_DM_PMIC) ns16550: match when to define bdf with uart code solidrun: mx6cuboxi: use CONFIG_IS_ENABLED(SATA) instead of CONFIG_CMD_SATA arm: mach-imx: use CONFIG_$(SPL_)SATA instead of CONFIG_SATA x86: cpu: i386: cpu: only set pci_ram_top if CONFIG_IS_ENABLED(PCI) gateworks: venice: surround call of setup_fec with if IS_ENABLED(CONFIG_NET) power: pmic: add dm style definitions if not CONFIG_IS_ENABLED(POWER_LEGACY) arm: cpu: armv7: ls102xa: fdt: remove eth_device support CI: add test/usage_of_is_enabled_check.sh .azure-pipelines.yml | 11 + .gitlab-ci.yml | 5 + arch/arm/cpu/armv7/ls102xa/fdt.c | 12 - arch/arm/mach-imx/Makefile | 2 +- arch/x86/cpu/apollolake/uart.c | 6 +- arch/x86/cpu/i386/cpu.c | 2 + arch/x86/cpu/qemu/qemu.c | 2 +- board/freescale/common/pfuze.c | 2 +- board/gateworks/venice/venice.c | 4 +- board/menlo/m53menlo/m53menlo.c | 2 + board/solidrun/mx6cuboxi/mx6cuboxi.c | 2 +- .../puma_rk3399/puma-rk3399.c | 4 - .../ringneck_px30/ringneck-px30.c | 4 - boot/fdt_region.c | 1 + cmd/nvedit.c | 5 +- include/config_distro_bootcmd.h | 23 ++ include/fdt_support.h | 26 ++- include/ns16550.h | 2 +- include/power/pmic.h | 2 +- lib/crc32.c | 12 +- lib/fdtdec_common.c | 1 + lib/hash-checksum.c | 1 + lib/md5.c | 9 +- lib/sha1.c | 8 +- lib/sha256.c | 8 +- lib/sha512.c | 12 +- test/usage_of_is_enabled_check.sh | 19 ++ test/usage_of_is_enabled_commit.sh | 12 + test/usage_of_is_enabled_correct.sh | 50 +++++ test/usage_of_is_enabled_exempt.txt | 9 + test/usage_of_is_enabled_list.sh | 86 +++++++ test/usage_of_is_enabled_splcfg.txt | 21 ++ test/usage_of_is_enabled_todo.txt | 210 ++++++++++++++++++ tools/Makefile | 2 + tools/env/fw_env.c | 1 + tools/fdt_host.h | 1 + tools/mkimage.h | 1 + 37 files changed, 524 insertions(+), 56 deletions(-) create mode 100755 test/usage_of_is_enabled_check.sh create mode 100755 test/usage_of_is_enabled_commit.sh create mode 100755 test/usage_of_is_enabled_correct.sh create mode 100644 test/usage_of_is_enabled_exempt.txt create mode 100755 test/usage_of_is_enabled_list.sh create mode 100644 test/usage_of_is_enabled_splcfg.txt create mode 100644 test/usage_of_is_enabled_todo.txt -- 2.34.1