From patchwork Wed Jan 10 01:45:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 123993 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4701279qgn; Tue, 9 Jan 2018 17:48:29 -0800 (PST) X-Google-Smtp-Source: ACJfBouZWfzYnFI/ewQz2m4LEmdZMGqSipBcgfczojUGvBcychVQzWd227Q/mdd/ZL6rUAHm/8yh X-Received: by 10.80.180.18 with SMTP id b18mr23356836edh.260.1515548909829; Tue, 09 Jan 2018 17:48:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515548909; cv=none; d=google.com; s=arc-20160816; b=EZPiI4OXblgYgWDbvU3CWhv0oIjyY0QwyKCenhzJ6BBc1KRMvsn21ME/hzmvcfOL/d cMuvFIBiMU3UTLcLEvJc78YQWJWiQNcfrbClOLkZuN/GpDNROU9yEvIch0ngg3R3MRJA XquLEa7RUbHi7zb8d1N7adSuNpabS9d/pr7b2wX7NNrdcuuKmcKxrCDlVuHVc8IfIFhI qEHG2Oo89/vfIV6Kd851/9N0Th2Zo4tnya0rJrB1EFoA/Jfmgo/qpPlwh0r91rSs60iY JWIuNYYAxe+1PWKhS+N7jUe00PrtTA+GoruTVDECZa1FLRGuXLAzRdQIZ8hmtmgfJ3M3 otxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:message-id:date:to:from :dkim-signature:dkim-filter:arc-authentication-results; bh=s1zf3KLqlbwg61jK8oGmzjPBgRsQ/Yv7Y0szZa1/IRw=; b=kwKwagO7QC8S6Yac5KhMy7gHcEvUoYd/7ShpdrSd2Vl73fsgtanF2g1/XCyK9YSKAv aLBTGbvj0kh3FDs/YFUydn2Btf+7Rb7HHh6PflUME9b5Q3jlHreAWGxOPGRa614jz/kN Bhmm8VziV/pOSDD8RM0Xx6BYvzRE/Ziz2wyTHZFTZAXsQErtY9toa+ATVA0tkorFnRou VXMovy+axLfd3Kpj/+gwwLV7tj7FU3y6Vo1IU7R/ZcUHAGjJos8ShZn6MbQAmQt/0qV7 R4f8yIb2NAor57ZMHxsW/xfP1SkQL0HXex/pjPIbnwR/SICRZkpiY6v5unB4MK0nhW+g JOOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=oIYHKRFN; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id h32si8911458edd.296.2018.01.09.17.48.29; Tue, 09 Jan 2018 17:48:29 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=oIYHKRFN; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 721C5C2203C; Wed, 10 Jan 2018 01:47:29 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id AF440C2203C; Wed, 10 Jan 2018 01:46:59 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2B573C21DD0; Wed, 10 Jan 2018 01:46:38 +0000 (UTC) Received: from conuserg-11.nifty.com (conuserg-11.nifty.com [210.131.2.78]) by lists.denx.de (Postfix) with ESMTPS id DAC09C21FA6 for ; Wed, 10 Jan 2018 01:46:34 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id w0A1jUkS021339; Wed, 10 Jan 2018 10:45:31 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com w0A1jUkS021339 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1515548732; bh=LNPbxB+9M1gU8xswesaj+uMForfGYCY1p7BML1C0M1A=; h=From:To:Cc:Subject:Date:From; b=oIYHKRFNY70YA9zVgDPFS22QHk69lDNDh3YvsakEfHxMKvTutzbav8zb9x6SHac79 bInLCe+6jrsOymb52l+TrWHG/eb+GZSagMPLoC1HZY8ZGR87TBb+wnCPF3WqrcFUY5 JM3MHVHufPVjaUUMtCcX8yPeh+ww3dXWfzjp/TlVRyOwbqyCc4UYCnh5C/cr8N+gRc 77xGaTlmX3fA1dSKqmVMQWhUqxkQM9kk+D06Jo9Iu+WYiPgtn+Jbvx1u2eC0MsLXXo eZMc5/qsnEP7q4Y8aHx9w5O823cG0bEKDQpYuWj9ESqxZyk7785kzNFQYdQv4huVKk wT5TjVbxhe3Ig== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 10 Jan 2018 10:45:18 +0900 Message-Id: <1515548724-31869-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Marek Vasut , Tom Rini , Joe Hershberger , Albert ARIBAUD , Alexander Graf , Scott Wood , Tom Warren , Jagan Teki Subject: [U-Boot] [PATCH v3 0/6] assert() is almost used in the same way as BUG_ON(), except: X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" - the logic is opposite - currently, assert() is compiled only when DEBUG is defined Coccinelle can easily convert assert() to BUG_ON(). A problem is it would grow the image size. In v2, I introduced a new CONFIG option to allow to disable it. In v3, it is default 'y'. I disabled it only for openrd boards. Masahiro Yamada (6): Enable CONFIG_PANIC_HANG for boards without do_reset() usb: xhci: return ERR_PTR(-ETIMEDOUT) at the end of xhci_wait_for_event() Introduce CONFIG_BUG_CHECKS to allow to disable BUG{_ON} and WARN_ON ARM: openrd: disable CONFIG_BUG_CHECKS treewide: convert assert() to BUG_ON() Remove assert() arch/arm/mach-exynos/clock.c | 4 +- arch/arm/mach-tegra/clock.c | 10 ++-- arch/arm/mach-tegra/pinmux-common.c | 80 +++++++++++++-------------- arch/arm/mach-tegra/tegra114/clock.c | 10 ++-- arch/arm/mach-tegra/tegra124/clock.c | 10 ++-- arch/arm/mach-tegra/tegra20/clock.c | 14 ++--- arch/arm/mach-tegra/tegra210/clock.c | 10 ++-- arch/arm/mach-tegra/tegra30/clock.c | 10 ++-- arch/sandbox/cpu/state.c | 4 +- arch/x86/cpu/intel_common/mrc.c | 2 +- arch/x86/lib/efi/efi.c | 2 +- arch/x86/lib/fsp/fsp_support.c | 6 +- arch/x86/lib/physmem.c | 5 +- board/freescale/qemu-ppce500/qemu-ppce500.c | 8 +-- cmd/bootefi.c | 2 +- cmd/mtdparts.c | 2 +- cmd/tpm_test.c | 28 +++++----- common/dlmalloc.c | 86 ++++++++++++++--------------- common/fdt_support.c | 2 +- common/hwconfig.c | 36 ++++++------ configs/cl-som-imx7_defconfig | 1 + configs/evb-rk3229_defconfig | 1 + configs/mccmon6_sd_defconfig | 1 + configs/openrd_base_defconfig | 1 + configs/openrd_client_defconfig | 1 + configs/openrd_ultimate_defconfig | 1 + configs/opos6uldev_defconfig | 1 + drivers/clk/clk-uclass.c | 2 +- drivers/clk/rockchip/clk_rk3036.c | 23 ++++---- drivers/clk/rockchip/clk_rk3128.c | 27 ++++----- drivers/clk/rockchip/clk_rk3188.c | 28 ++++------ drivers/clk/rockchip/clk_rk322x.c | 23 ++++---- drivers/clk/rockchip/clk_rk3288.c | 36 +++++------- drivers/clk/rockchip/clk_rk3328.c | 8 +-- drivers/clk/rockchip/clk_rk3368.c | 4 +- drivers/clk/rockchip/clk_rk3399.c | 51 +++++++---------- drivers/clk/rockchip/clk_rv1108.c | 2 +- drivers/core/device-remove.c | 8 +-- drivers/core/device.c | 2 +- drivers/core/ofnode.c | 24 ++++---- drivers/core/uclass.c | 4 +- drivers/gpio/gpio-uclass.c | 2 +- drivers/i2c/i2c-uclass.c | 2 +- drivers/input/input.c | 4 +- drivers/input/key_matrix.c | 2 +- drivers/misc/cros_ec.c | 10 ++-- drivers/misc/cros_ec_i2c.c | 4 +- drivers/mtd/nand/tegra_nand.c | 2 +- drivers/mtd/spi/sandbox.c | 4 +- drivers/net/fsl-mc/mc.c | 2 +- drivers/phy/phy-uclass.c | 2 +- drivers/power/tps6586x.c | 4 +- drivers/rtc/rtc-uclass.c | 10 ++-- drivers/sound/sound.c | 2 +- drivers/spi/exynos_spi.c | 6 +- drivers/usb/emul/sandbox_flash.c | 2 +- drivers/usb/host/usb-uclass.c | 4 +- drivers/usb/host/xhci-ring.c | 7 +++ drivers/video/stb_truetype.h | 2 +- fs/ext4/dev.c | 2 +- fs/ext4/ext4_common.c | 2 +- fs/ext4/ext4_journal.c | 2 +- fs/fat/fat.c | 2 +- include/dm/ofnode.h | 4 +- include/efi_loader.h | 12 ++-- include/linux/bug.h | 9 ++- include/log.h | 15 ----- lib/Kconfig | 9 +++ lib/circbuf.c | 16 +++--- lib/efi_loader/efi_boottime.c | 2 +- lib/efi_loader/efi_device_path.c | 2 +- lib/efi_loader/efi_file.c | 2 +- lib/efi_loader/efi_memory.c | 2 +- lib/fdtdec.c | 8 +-- lib/membuff.c | 4 +- lib/physmem.c | 4 +- lib/qsort.c | 2 +- lib/slre.c | 8 +-- lib/tiny-printf.c | 9 --- lib/vsprintf.c | 9 --- net/eth-uclass.c | 2 +- net/eth_legacy.c | 2 +- net/net.c | 2 +- test/command_ut.c | 30 +++++----- test/print_ut.c | 42 +++++++------- 85 files changed, 406 insertions(+), 448 deletions(-)