From patchwork Wed Sep 13 11:45:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 112440 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp848644qgf; Wed, 13 Sep 2017 04:48:06 -0700 (PDT) X-Google-Smtp-Source: ADKCNb4FScV6yOUxgJaljorEZ5ZeaZ/tWkujWsnoubpWmnWnprqzfn5nyv4poTJ0nsoSedhiytny X-Received: by 10.80.137.173 with SMTP id g42mr7495819edg.80.1505303285972; Wed, 13 Sep 2017 04:48:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505303285; cv=none; d=google.com; s=arc-20160816; b=QZV8Q/oA6mpwIt81rL19bWXILXEN5WY5ZZJrPOrtrhpyi17M3KxW+FZUuS8UFtqiYJ 0+jgC7PoN4HciS0jzUANmLbDH60dDPv535ncAu4yLVRnUv5B1YigoSqf0LwMAN3SLOpe AMa+tY0xv+qFqZnNijpKGIRHZEIiERTdLlt89TWW6XdoIklpnQgJK3oDE8ewTretbJBA wxEIzFwgm5BDv0+6+2ckSIGaqevSRwu6PAuaflHoZC+wwkXDe7q1QuPvLewvjxxRO2zK XDrPrE6kIaC8nH/oTZmJ3IkfSRya0o3WT3K//gqHy9Cuby+7ORGZgBoVPmRgWDCbHMMX zYCg== 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=W+Amteroxq5cKDdVdfVFWXnP90NdNcmY+jWZXMZyj88=; b=0Y1HLpmsZkFUuZCeuVwsvoFwnWzTvl24fLXyNfy7Jyi3yYhvWpjesfikLOmoQ5BUHb vQXlifSeE/94gBVMsXlGhxCT+GyrXzc/zJcktMjMWEwvFJKocWG0OqQQFQYMjI4tUBZ3 pYGFDlbM2JBpkhSIQQyQcFZTOV4HWGl/kkjWDs0fL/AOV8jx3MNlnqZgh0KnPCHYbOIH eyL87F/pB9hiB0WJP4lz3aYaFjGP/wgHd/UP5IMLgRMYl14cW9q8hU/bQenRhO1FOU/s KoM5zVdAJso+7ok7WvOq19jPl301vArtdzs9tj23b8efKuDU5BsENV54sB4Q/bc4BmAG OTcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@nifty.com header.s=dec2015msa header.b=dkAWL2Eq; 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 e13si13029696edb.142.2017.09.13.04.48.05; Wed, 13 Sep 2017 04:48:05 -0700 (PDT) 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=dkAWL2Eq; 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 92474C22611; Wed, 13 Sep 2017 11:47:26 +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 882CCC220AA; Wed, 13 Sep 2017 11:47:23 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 99B3AC22571; Wed, 13 Sep 2017 11:46:11 +0000 (UTC) Received: from conuserg-10.nifty.com (conuserg-10.nifty.com [210.131.2.77]) by lists.denx.de (Postfix) with ESMTPS id 7EEE0C22441 for ; Wed, 13 Sep 2017 11:46:05 +0000 (UTC) Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-10.nifty.com with ESMTP id v8DBjE4n018351; Wed, 13 Sep 2017 20:45:14 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com v8DBjE4n018351 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1505303115; bh=f57DsbEqiddCECPmOzAnx6fJ90zFEtq3FlqaJRkAL8g=; h=From:To:Cc:Subject:Date:From; b=dkAWL2EqbVOJ+0vMYKyzoyevklcUXZS4oE+cSXyzb/X+GOny3ZG4UpGEaszAE9tRD MAMrJCivgCNJpEQsLkYtqp7wVPgpAjcE88X9+xAyW/06YGI21NCdhAlQCgwD152fgi oPJ2LYQjYOfqpNtOxtammapCrDV03fT5Y//I4+MrMAj49XLa04DovVwZ8dMP1gTrYd 42qK8TljRfqW8wVPi64KFNH8hfTmWS4xLNV2NOPJoFjU4vEBz9r9bqNFsIlOLsu5mS OFSAjOwE3f1k0wwG+f84q5JgwecB54VACeWeYYh7gqRw/D5aJ7lJ5kg7q9C0JbIGiK ApaDz99qIkQlA== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: u-boot@lists.denx.de Date: Wed, 13 Sep 2017 20:45:00 +0900 Message-Id: <1505303106-9780-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Cc: Marek Vasut , Albert Aribaud , Stephen Warren , Joe Hershberger , Robert Baldyga , Scott Wood , Tom Warren , Jagan Teki Subject: [U-Boot] [PATCH 0/6] Sync and consolidate Linux-derived printk, BUILD_BUG, BUG, WARN, etc. 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" buildman is 60% done, and no regression so far. I will report the full-stat when buildman is complete. Masahiro Yamada (6): printk: collect printk stuff into treewide: replace with error() with pr_err() common.h: remove error() vsprintf.h: include bug.h: sync BUILD_BUG stuff with Linux 4.13 bug.h: move runtime BUG/WARN macros into arch/arm/mach-omap2/am33xx/board.c | 2 +- arch/arm/mach-omap2/utils.c | 4 +- arch/arm/mach-rockchip/rk3188-board-spl.c | 2 +- arch/arm/mach-rockchip/rk3188-board.c | 2 +- arch/arm/mach-rockchip/rk3368-board-spl.c | 4 +- arch/arm/mach-rockchip/rk3399/sdram_rk3399.c | 2 +- arch/arm/mach-socfpga/reset_manager_arria10.c | 2 +- arch/arm/mach-tegra/ivc.c | 8 +-- arch/arm/mach-tegra/tegra124/xusb-padctl.c | 2 +- arch/arm/mach-tegra/tegra186/nvtboot_mem.c | 4 +- arch/arm/mach-tegra/tegra20/clock.c | 6 +- arch/arm/mach-tegra/tegra210/xusb-padctl.c | 2 +- arch/arm/mach-tegra/tegra30/clock.c | 6 +- arch/arm/mach-tegra/xusb-padctl-common.c | 22 +++--- arch/arm/mach-uniphier/dram_init.c | 3 - arch/arm/mach-uniphier/init.h | 5 -- arch/x86/cpu/tangier/sdram.c | 6 +- board/nvidia/jetson-tk1/jetson-tk1.c | 6 +- board/samsung/common/exynos5-dt.c | 2 +- board/samsung/common/misc.c | 2 +- board/samsung/goni/goni.c | 4 +- board/samsung/odroid/odroid.c | 12 ++-- cmd/fastboot.c | 2 +- cmd/nvedit.c | 6 +- cmd/regulator.c | 2 +- cmd/thordown.c | 6 +- cmd/tpm_test.c | 6 +- cmd/usb_gadget_sdp.c | 4 +- cmd/usb_mass_storage.c | 6 +- common/dfu.c | 6 +- common/fb_mmc.c | 36 +++++----- common/fb_nand.c | 12 ++-- common/spl/spl_dfu.c | 4 +- common/spl/spl_sdp.c | 4 +- common/update.c | 2 +- disk/part_efi.c | 10 +-- drivers/adc/adc-uclass.c | 6 +- drivers/adc/exynos-adc.c | 6 +- drivers/adc/sandbox.c | 6 +- drivers/ata/dwc_ahci.c | 6 +- drivers/bios_emulator/include/x86emu/x86emui.h | 3 - drivers/clk/clk_boston.c | 4 +- drivers/clk/clk_stm32f7.c | 2 +- drivers/clk/rockchip/clk_rk3368.c | 8 +-- drivers/clk/rockchip/clk_rk3399.c | 6 +- drivers/clk/rockchip/clk_rv1108.c | 2 +- drivers/dfu/dfu.c | 14 ++-- drivers/dfu/dfu_mmc.c | 18 ++--- drivers/dfu/dfu_ram.c | 8 +-- drivers/dfu/dfu_tftp.c | 4 +- drivers/dma/dma-uclass.c | 2 +- drivers/dma/lpc32xx_dma.c | 8 +-- drivers/dma/ti-edma3.c | 2 +- drivers/i2c/i2c-gpio.c | 2 +- drivers/i2c/omap24xx_i2c.c | 2 +- drivers/i2c/stm32f7_i2c.c | 16 ++--- drivers/i2c/tegra_i2c.c | 4 +- drivers/misc/tegra186_bpmp.c | 28 ++++---- drivers/mmc/exynos_dw_mmc.c | 2 +- drivers/mmc/hi6220_dw_mmc.c | 2 +- drivers/mmc/xenon_sdhci.c | 4 +- drivers/mtd/nand/lpc32xx_nand_mlc.c | 6 +- drivers/mtd/nand/pxa3xx_nand.c | 2 +- drivers/net/bcm-sf2-eth-gmac.c | 14 ++-- drivers/net/bcm-sf2-eth.c | 18 ++--- drivers/net/cpsw-common.c | 8 +-- drivers/net/cpsw.c | 8 +-- drivers/net/dwc_eth_qos.c | 92 +++++++++++++------------- drivers/net/ep93xx_eth.c | 16 ++--- drivers/net/keystone_net.c | 14 ++-- drivers/pci/pci_tegra.c | 50 +++++++------- drivers/pci/pcie_xilinx.c | 2 +- drivers/phy/marvell/comphy_cp110.c | 40 +++++------ drivers/phy/ti-pipe3-phy.c | 12 ++-- drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 2 +- drivers/pinctrl/pinctrl-sti.c | 14 ++-- drivers/pinctrl/pinctrl_stm32.c | 2 +- drivers/power/pmic/as3722.c | 12 ++-- drivers/power/pmic/as3722_gpio.c | 10 +-- drivers/power/pmic/i2c_pmic_emul.c | 6 +- drivers/power/pmic/lp873x.c | 4 +- drivers/power/pmic/lp87565.c | 4 +- drivers/power/pmic/max77686.c | 4 +- drivers/power/pmic/max8997.c | 4 +- drivers/power/pmic/max8998.c | 4 +- drivers/power/pmic/palmas.c | 4 +- drivers/power/pmic/pfuze100.c | 4 +- drivers/power/pmic/s2mps11.c | 4 +- drivers/power/pmic/s5m8767.c | 4 +- drivers/power/pmic/sandbox.c | 6 +- drivers/power/pmic/tps65090.c | 4 +- drivers/power/regulator/fixed.c | 2 +- drivers/power/regulator/gpio-regulator.c | 2 +- drivers/power/regulator/max77686.c | 20 +++--- drivers/power/regulator/sandbox.c | 18 ++--- drivers/ram/rockchip/dmc-rk3368.c | 14 ++-- drivers/ram/stm32_sdram.c | 8 +-- drivers/reset/sti-reset.c | 10 +-- drivers/spi/atmel_spi.c | 2 +- drivers/spi/lpc32xx_ssp.c | 6 +- drivers/sysreset/sysreset_sti.c | 6 +- drivers/sysreset/sysreset_syscon.c | 4 +- drivers/sysreset/sysreset_watchdog.c | 2 +- drivers/tpm/tpm_tis_infineon.c | 2 +- drivers/usb/common/common.c | 2 +- drivers/usb/dwc3/linux-compat.h | 2 - drivers/usb/eth/mcs7830.c | 12 ++-- drivers/usb/gadget/at91_udc.c | 4 +- drivers/usb/gadget/atmel_usba_udc.c | 6 +- drivers/usb/gadget/dwc2_udc_otg.c | 2 +- drivers/usb/gadget/ether.c | 42 ++++++------ drivers/usb/gadget/f_fastboot.c | 10 +-- drivers/usb/gadget/f_sdp.c | 16 ++--- drivers/usb/gadget/f_thor.c | 26 ++++---- drivers/usb/host/dwc2.c | 2 +- drivers/usb/host/ehci-generic.c | 18 ++--- drivers/usb/host/ohci-generic.c | 18 ++--- drivers/usb/host/xhci-dwc3.c | 6 +- drivers/usb/host/xhci-rockchip.c | 12 ++-- drivers/usb/musb-new/linux-compat.h | 2 - drivers/usb/musb-new/ti-musb.c | 12 ++-- drivers/video/am335x-fb.c | 2 +- env/common.c | 8 +-- env/sf.c | 2 +- fs/jffs2/jffs2_nand_1pass.c | 2 +- fs/yaffs2/yaffs_uboot_glue.c | 2 +- include/common.h | 20 +----- include/linux/bug.h | 77 ++++++++------------- include/linux/build_bug.h | 84 +++++++++++++++++++++++ include/linux/compat.h | 26 -------- include/linux/compiler.h | 6 +- include/linux/mtd/mtd.h | 10 +-- include/linux/printk.h | 77 +++++++++++++++++++++ include/vsprintf.h | 1 + 134 files changed, 719 insertions(+), 639 deletions(-) create mode 100644 include/linux/build_bug.h create mode 100644 include/linux/printk.h