[U-Boot] [RESEND PATCH 00/10] Consolidate errno.h headers, improvements of rest and ehci-generic
Masahiro Yamada
yamada.masahiro at socionext.com
Wed Sep 21 04:28:52 CEST 2016
First, my motivation was to add reset control to
drivers/usb/host/ehci-generic.
I found build errors because the reset framework does not have
no-op stubs for !CONFIG_DM_RESET case.
When I was adding ENOTSUPP to include/reset.h, I noticed this macro
define is sitting in include/linux/compat.t, inconsistently.
As you see, errno.h in U-Boot is ugly.
In Linux, they include <linux/errno.h>, but it is missing in U-Boot.
Instead, source files include <asm/errno.h> or <asm-generic/errno.h>
as they like. Actually, <asm/errno.h> in U-Boot is adding any value
because all of them is a wrapper of <asm-generic/errno.h>.
So, I decided to consolidate errno.h stuff first.
I tested this series with Buildman for each commit.
(I missed to send the first two patches in the previous post.
I am resending...)
Masahiro Yamada (10):
treewide: use #include <...> to include public headers
Add <linux/errno.h> as a wrapper of <asm-generic/errno.h>
treewide: replace #include <asm/errno.h> with <linux/errno.h>
Remove arch/${ARCH}/include/asm/errno.h
treewide: replace #include <asm-generic/errno.h> with <linux/errno.h>
Move error macros from <asm-generic/errno.h> to <linux/errno.h>
Move ENOTSUPP defines to include/linux/errno.h
errno.h: sync error macros with linux 4.8-rc7
reset: add no-op stubs for optional reset control
usb: ehci-generic: support reset control for generic EHCI
arch/arc/include/asm/errno.h | 1 -
arch/arm/cpu/arm1136/mx35/generic.c | 2 +-
arch/arm/cpu/arm1136/mx35/mx35_sdram.c | 2 +-
arch/arm/cpu/arm926ejs/mxs/clock.c | 2 +-
arch/arm/cpu/arm926ejs/mxs/iomux.c | 2 +-
arch/arm/cpu/arm926ejs/mxs/mxs.c | 2 +-
arch/arm/cpu/armv7/am33xx/board.c | 2 +-
arch/arm/cpu/armv7/bcm235xx/clk-bcm235xx.c | 2 +-
arch/arm/cpu/armv7/bcm235xx/clk-bsc.c | 2 +-
arch/arm/cpu/armv7/bcm235xx/clk-core.c | 2 +-
arch/arm/cpu/armv7/bcm235xx/clk-eth.c | 2 +-
arch/arm/cpu/armv7/bcm235xx/clk-sdio.c | 2 +-
arch/arm/cpu/armv7/bcm235xx/clk-usb-otg.c | 2 +-
arch/arm/cpu/armv7/bcm281xx/clk-bcm281xx.c | 2 +-
arch/arm/cpu/armv7/bcm281xx/clk-bsc.c | 2 +-
arch/arm/cpu/armv7/bcm281xx/clk-core.c | 2 +-
arch/arm/cpu/armv7/bcm281xx/clk-eth.c | 2 +-
arch/arm/cpu/armv7/bcm281xx/clk-sdio.c | 2 +-
arch/arm/cpu/armv7/bcm281xx/clk-usb-otg.c | 2 +-
arch/arm/cpu/armv7/ls102xa/fsl_ls1_serdes.c | 2 +-
arch/arm/cpu/armv7/mx5/clock.c | 2 +-
arch/arm/cpu/armv7/mx5/soc.c | 2 +-
arch/arm/cpu/armv7/mx6/clock.c | 2 +-
arch/arm/cpu/armv7/mx6/mp.c | 2 +-
arch/arm/cpu/armv7/mx6/soc.c | 2 +-
arch/arm/cpu/armv7/mx7/clock.c | 2 +-
arch/arm/cpu/armv7/mx7/clock_slice.c | 2 +-
arch/arm/cpu/armv7/omap-common/pipe3-phy.c | 2 +-
arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 2 +-
.../cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c | 2 +-
.../cpu/armv8/fsl-layerscape/fsl_lsch3_serdes.c | 2 +-
arch/arm/imx-common/cmd_bmode.c | 2 +-
arch/arm/imx-common/cpu.c | 2 +-
arch/arm/imx-common/i2c-mxv7.c | 2 +-
arch/arm/imx-common/misc.c | 2 +-
arch/arm/imx-common/rdc-sema.c | 2 +-
arch/arm/imx-common/video.c | 2 +-
arch/arm/include/asm/errno.h | 1 -
arch/arm/mach-at91/armv7/clock.c | 2 +-
arch/arm/mach-at91/include/mach/gpio.h | 2 +-
arch/arm/mach-keystone/psc.c | 2 +-
arch/arm/mach-mvebu/mbus.c | 2 +-
arch/arm/mach-rmobile/emac.c | 2 +-
arch/arm/mach-socfpga/fpga_manager.c | 2 +-
arch/arm/mach-socfpga/freeze_controller.c | 2 +-
arch/arm/mach-tegra/tegra20/crypto.c | 2 +-
arch/arm/mach-tegra/tegra20/warmboot.c | 2 +-
arch/avr32/cpu/interrupts.c | 2 +-
arch/avr32/include/asm/errno.h | 1 -
arch/blackfin/cpu/gpio.c | 2 +-
arch/blackfin/include/asm/errno.h | 1 -
arch/m68k/include/asm/errno.h | 1 -
arch/microblaze/include/asm/errno.h | 1 -
arch/mips/include/asm/errno.h | 1 -
arch/mips/mach-ath79/reset.c | 2 +-
arch/nds32/include/asm/errno.h | 1 -
arch/nios2/include/asm/errno.h | 1 -
arch/openrisc/include/asm/errno.h | 1 -
arch/powerpc/cpu/mpc83xx/qe_io.c | 8 +--
arch/powerpc/cpu/mpc85xx/fsl_corenet2_serdes.c | 2 +-
arch/powerpc/cpu/mpc85xx/fsl_corenet_serdes.c | 2 +-
arch/powerpc/cpu/mpc85xx/qe_io.c | 8 +--
arch/powerpc/cpu/mpc8xxx/srio.c | 2 +-
arch/powerpc/cpu/ppc4xx/4xx_pcie.c | 2 +-
arch/powerpc/include/asm/errno.h | 1 -
arch/powerpc/lib/ppcstring.S | 2 +-
arch/sandbox/include/asm/errno.h | 1 -
arch/sh/include/asm/errno.h | 1 -
arch/sparc/include/asm/errno.h | 1 -
arch/x86/include/asm/errno.h | 1 -
arch/x86/include/asm/msr.h | 2 +-
arch/x86/lib/init_helpers.c | 2 +-
arch/xtensa/include/asm/errno.h | 1 -
board/Barix/ipam390/ipam390.c | 2 +-
board/CarMediaLab/flea3/flea3.c | 2 +-
board/advantech/dms-ba16/dms-ba16.c | 2 +-
board/amcc/canyonlands/canyonlands.c | 2 +-
board/amcc/katmai/katmai.c | 2 +-
board/amcc/kilauea/kilauea.c | 2 +-
board/amcc/makalu/makalu.c | 2 +-
board/amcc/yucca/yucca.c | 2 +-
board/aristainetos/aristainetos-v1.c | 2 +-
board/aristainetos/aristainetos-v2.c | 2 +-
board/aristainetos/aristainetos.c | 2 +-
board/armadeus/apf27/apf27.c | 2 +-
board/boundary/nitrogen6x/nitrogen6x.c | 2 +-
board/compulab/cm_t35/cm_t35.c | 2 +-
board/compulab/common/common.h | 2 +-
board/compulab/common/omap3_smc911x.c | 2 +-
board/davinci/da8xxevm/da850evm.c | 2 +-
board/davinci/da8xxevm/omapl138_lcdk.c | 2 +-
board/denx/m53evk/m53evk.c | 2 +-
board/el/el6x/el6x.c | 2 +-
board/embest/mx6boards/mx6boards.c | 2 +-
board/esd/common/lcd.c | 2 +-
board/freescale/b4860qds/b4860qds.c | 2 +-
board/freescale/mx35pdk/mx35pdk.c | 2 +-
board/freescale/mx51evk/mx51evk.c | 2 +-
board/freescale/mx53ard/mx53ard.c | 2 +-
board/freescale/mx53evk/mx53evk.c | 2 +-
board/freescale/mx53loco/mx53loco.c | 2 +-
board/freescale/mx53smd/mx53smd.c | 2 +-
board/freescale/mx6qarm2/mx6qarm2.c | 2 +-
board/freescale/mx6qsabreauto/mx6qsabreauto.c | 2 +-
board/freescale/mx6sabresd/mx6sabresd.c | 2 +-
board/gateworks/gw_ventana/gsc.c | 2 +-
board/gdsys/405ex/io64.c | 2 +-
board/ge/bx50v3/bx50v3.c | 2 +-
board/htkw/mcx/mcx.c | 2 +-
board/inversepath/usbarmory/usbarmory.c | 2 +-
board/keymile/km_arm/fpga_config.c | 2 +-
board/keymile/kmp204x/pci.c | 2 +-
board/kosagi/novena/novena.c | 2 +-
board/kosagi/novena/video.c | 2 +-
board/lego/ev3/legoev3.c | 2 +-
board/logicpd/am3517evm/am3517evm.c | 2 +-
board/logicpd/omap3som/omap3logic.c | 2 +-
board/micronas/vct/dcgu.c | 2 +-
board/micronas/vct/scc.c | 2 +-
board/mosaixtech/icon/icon.c | 2 +-
board/phytec/pcm058/pcm058.c | 2 +-
board/renesas/alt/alt.c | 2 +-
board/renesas/blanche/blanche.c | 2 +-
board/renesas/gose/gose.c | 2 +-
board/renesas/koelsch/koelsch.c | 2 +-
board/renesas/lager/lager.c | 2 +-
board/renesas/porter/porter.c | 2 +-
board/renesas/salvator-x/salvator-x.c | 2 +-
board/renesas/silk/silk.c | 2 +-
board/renesas/stout/stout.c | 2 +-
board/seco/common/mx6.c | 2 +-
board/seco/mx6quq7/mx6quq7.c | 2 +-
board/socrates/nand.c | 2 +-
board/solidrun/mx6cuboxi/mx6cuboxi.c | 2 +-
board/tbs/tbs2910/tbs2910.c | 2 +-
board/technologic/ts4800/ts4800.c | 2 +-
board/ti/am43xx/board.c | 2 +-
board/ti/beagle/beagle.c | 2 +-
board/tqc/tqma6/tqma6.c | 2 +-
board/tqc/tqma6/tqma6_mba6.c | 2 +-
board/tqc/tqma6/tqma6_wru4.c | 2 +-
board/udoo/udoo.c | 2 +-
board/udoo/udoo_spl.c | 2 +-
board/wandboard/spl.c | 2 +-
board/woodburn/woodburn.c | 2 +-
cmd/fuse.c | 2 +-
cmd/host.c | 2 +-
cmd/ubi.c | 2 +-
common/board_f.c | 2 +-
common/hash.c | 2 +-
common/image.c | 2 +-
drivers/block/ahci.c | 2 +-
drivers/block/dwc_ahsata.c | 2 +-
drivers/block/pata_bfin.c | 2 +-
drivers/block/sandbox.c | 2 +-
drivers/block/sata_dwc.c | 2 +-
drivers/block/sata_mv.c | 2 +-
drivers/crypto/ace_sha.c | 2 +-
drivers/crypto/fsl/fsl_blob.c | 2 +-
drivers/crypto/fsl/fsl_hash.c | 2 +-
drivers/dma/apbh_dma.c | 2 +-
drivers/fpga/socfpga.c | 2 +-
drivers/fpga/stratixv.c | 2 +-
drivers/gpio/adi_gpio2.c | 2 +-
drivers/gpio/gpio-uniphier.c | 2 +-
drivers/gpio/mvgpio.c | 2 +-
drivers/gpio/mxs_gpio.c | 2 +-
drivers/gpio/omap_gpio.c | 2 +-
drivers/gpio/pca9698.c | 2 +-
drivers/gpio/rk_gpio.c | 2 +-
drivers/gpio/stm32_gpio.c | 2 +-
drivers/gpio/zynq_gpio.c | 2 +-
drivers/i2c/i2c-cdns.c | 2 +-
drivers/i2c/i2c-uniphier-f.c | 2 +-
drivers/i2c/i2c-uniphier.c | 2 +-
drivers/i2c/kona_i2c.c | 2 +-
drivers/i2c/lpc32xx_i2c.c | 2 +-
drivers/i2c/mvtwsi.c | 2 +-
drivers/i2c/mxc_i2c.c | 2 +-
drivers/i2c/mxs_i2c.c | 2 +-
drivers/i2c/zynq_i2c.c | 2 +-
drivers/misc/cros_ec.c | 2 +-
drivers/misc/fsl_iim.c | 2 +-
drivers/misc/mc9sdz60.c | 2 +-
drivers/misc/mxc_ocotp.c | 2 +-
drivers/misc/mxs_ocotp.c | 2 +-
drivers/mmc/bfin_sdh.c | 2 +-
drivers/mmc/ftsdc010_mci.c | 2 +-
drivers/mmc/gen_atmel_mci.c | 2 +-
drivers/mmc/hi6220_dw_mmc.c | 2 +-
drivers/mmc/kona_sdhci.c | 2 +-
drivers/mmc/mxcmmc.c | 2 +-
drivers/mmc/mxsmmc.c | 2 +-
drivers/mmc/pic32_sdhci.c | 2 +-
drivers/mmc/pxa_mmc_gen.c | 2 +-
drivers/mmc/sh_mmcif.c | 2 +-
drivers/mmc/sh_sdhi.c | 2 +-
drivers/mtd/cfi_mtd.c | 2 +-
drivers/mtd/mtdpart.c | 2 +-
drivers/mtd/nand/arasan_nfc.c | 2 +-
drivers/mtd/nand/denali.c | 2 +-
drivers/mtd/nand/fsl_elbc_nand.c | 2 +-
drivers/mtd/nand/fsl_ifc_nand.c | 2 +-
drivers/mtd/nand/fsl_upm.c | 2 +-
drivers/mtd/nand/lpc32xx_nand_mlc.c | 2 +-
drivers/mtd/nand/lpc32xx_nand_slc.c | 2 +-
drivers/mtd/nand/mpc5121_nfc.c | 2 +-
drivers/mtd/nand/mxs_nand.c | 2 +-
drivers/mtd/nand/nand_base.c | 2 +-
drivers/mtd/nand/nand_ecc.c | 2 +-
drivers/mtd/nand/nand_util.c | 2 +-
drivers/mtd/nand/omap_elm.c | 2 +-
drivers/mtd/nand/omap_gpmc.c | 2 +-
drivers/mtd/nand/pxa3xx_nand.c | 2 +-
drivers/mtd/nand/tegra_nand.c | 2 +-
drivers/mtd/onenand/onenand_base.c | 2 +-
drivers/mtd/onenand/onenand_bbt.c | 2 +-
drivers/mtd/onenand/samsung.c | 2 +-
drivers/mtd/spi/sf_mtd.c | 2 +-
drivers/net/cpsw.c | 2 +-
drivers/net/fec_mxc.c | 2 +-
drivers/net/fm/fm.c | 2 +-
drivers/net/fsl_mdio.c | 2 +-
drivers/net/ftmac110.c | 2 +-
drivers/net/lpc32xx_eth.c | 2 +-
drivers/net/macb.c | 2 +-
drivers/net/mvgbe.c | 2 +-
drivers/net/mvneta.c | 2 +-
drivers/net/mvpp2.c | 2 +-
drivers/net/phy/mv88e6352.c | 2 +-
drivers/net/sh_eth.c | 2 +-
drivers/net/tsec.c | 2 +-
drivers/net/vsc7385.c | 2 +-
drivers/net/xilinx_emaclite.c | 2 +-
drivers/net/zynq_gem.c | 2 +-
drivers/pci/pci_mvebu.c | 2 +-
drivers/power/pmic/pmic_tps62362.c | 2 +-
drivers/power/pmic/pmic_tps65218.c | 2 +-
drivers/qe/qe.c | 8 +--
drivers/qe/uccf.c | 10 +--
drivers/qe/uec.c | 12 ++--
drivers/qe/uec_phy.c | 12 ++--
drivers/rtc/at91sam9_rtt.c | 2 +-
drivers/serial/serial_uniphier.c | 2 +-
drivers/spi/cadence_qspi.c | 2 +-
drivers/spi/cadence_qspi_apb.c | 2 +-
drivers/spi/mxc_spi.c | 2 +-
drivers/spi/mxs_spi.c | 2 +-
drivers/spi/rk_spi.c | 2 +-
drivers/spi/sandbox_spi.c | 2 +-
drivers/tpm/tpm_tis_infineon.c | 2 +-
drivers/usb/gadget/at91_udc.c | 2 +-
drivers/usb/gadget/atmel_usba_udc.c | 2 +-
drivers/usb/gadget/ci_udc.c | 2 +-
drivers/usb/gadget/config.c | 2 +-
drivers/usb/gadget/dwc2_udc_otg.c | 2 +-
drivers/usb/gadget/dwc2_udc_otg_phy.c | 2 +-
drivers/usb/gadget/dwc2_udc_otg_priv.h | 2 +-
drivers/usb/gadget/epautoconf.c | 2 +-
drivers/usb/gadget/ether.c | 2 +-
drivers/usb/gadget/fotg210.c | 2 +-
drivers/usb/gadget/rndis.c | 4 +-
drivers/usb/gadget/usbstring.c | 2 +-
drivers/usb/host/ehci-exynos.c | 2 +-
drivers/usb/host/ehci-generic.c | 13 ++++
drivers/usb/host/ehci-tegra.c | 2 +-
drivers/usb/host/xhci-exynos5.c | 2 +-
drivers/usb/host/xhci-fsl.c | 2 +-
drivers/usb/host/xhci-keystone.c | 2 +-
drivers/usb/host/xhci-mem.c | 2 +-
drivers/usb/host/xhci-omap.c | 2 +-
drivers/usb/host/xhci-ring.c | 2 +-
drivers/usb/host/xhci-zynqmp.c | 2 +-
drivers/usb/host/xhci.c | 2 +-
drivers/usb/musb-new/musb_core.c | 2 +-
drivers/usb/musb-new/musb_core.h | 2 +-
drivers/usb/musb-new/musb_gadget.h | 2 +-
drivers/usb/musb-new/musb_uboot.c | 2 +-
drivers/usb/phy/omap_usb_phy.c | 2 +-
drivers/video/ati_radeon_fb.c | 2 +-
drivers/video/da8xx-fb.c | 2 +-
drivers/video/exynos/exynos_fb.c | 2 +-
drivers/video/ipu_common.c | 2 +-
drivers/video/ipu_disp.c | 2 +-
drivers/video/mx3fb.c | 2 +-
drivers/video/mxc_ipuv3_fb.c | 2 +-
drivers/video/mxsfb.c | 2 +-
drivers/video/s3c-fb.c | 2 +-
fs/ext4/ext4_common.h | 2 +-
fs/jffs2/jffs2_1pass.c | 2 +-
fs/yaffs2/yaffs_mtdif.c | 8 +--
fs/yaffs2/yaffs_mtdif2.c | 8 +--
fs/yaffs2/ydirectenv.h | 2 +-
include/errno.h | 2 +-
include/fsl_esdhc.h | 2 +-
include/hwconfig.h | 2 +-
include/linux/compat.h | 2 -
include/linux/err.h | 2 +-
include/{asm-generic => linux}/errno.h | 71 +++++++++++++++-------
include/linux/mtd/mtd.h | 2 +-
include/linux/mtd/nand.h | 10 +--
include/reset.h | 32 ++++++++++
include/ubi_uboot.h | 2 +-
include/usb/lin_gadget_compat.h | 2 -
include/wait_bit.h | 2 +-
lib/rsa/rsa-checksum.c | 2 +-
lib/rsa/rsa-mod-exp.c | 2 +-
lib/rsa/rsa-verify.c | 2 +-
net/eth_legacy.c | 2 +-
309 files changed, 416 insertions(+), 364 deletions(-)
delete mode 100644 arch/arc/include/asm/errno.h
delete mode 100644 arch/arm/include/asm/errno.h
delete mode 100644 arch/avr32/include/asm/errno.h
delete mode 100644 arch/blackfin/include/asm/errno.h
delete mode 100644 arch/m68k/include/asm/errno.h
delete mode 100644 arch/microblaze/include/asm/errno.h
delete mode 100644 arch/mips/include/asm/errno.h
delete mode 100644 arch/nds32/include/asm/errno.h
delete mode 100644 arch/nios2/include/asm/errno.h
delete mode 100644 arch/openrisc/include/asm/errno.h
delete mode 100644 arch/powerpc/include/asm/errno.h
delete mode 100644 arch/sandbox/include/asm/errno.h
delete mode 100644 arch/sh/include/asm/errno.h
delete mode 100644 arch/sparc/include/asm/errno.h
delete mode 100644 arch/x86/include/asm/errno.h
delete mode 100644 arch/xtensa/include/asm/errno.h
rename include/{asm-generic => linux}/errno.h (73%)
--
1.9.1
More information about the U-Boot
mailing list