Skip to contentSkip to conversation

treewide: Remove duplicate incudes

PATCH Applied Alexander Shiyan 2 participants 2 messages Jun 7, 2022

Subsystems (24)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 treewide: Remove duplicate incudes

Fix warning fwterated by checkincludes.pl:
./net/nfs.c: libgen.h is included more than once.
./net/ifup.c: globalvar.h is included more than once. ./crypto/rsa.c: asm/types.h is included more than once. ./lib/decompress_unlz4.c: linux/decompress/mm.h is included more than once. ./scripts/stb_image.h: stdio.h is included more than once. ./scripts/kwbimage.c: unistd.h is included more than once. ./scripts/common.c: sys/types.h is included more than once. ./scripts/bareboximd.c: sys/types.h is included more than once. ./scripts/bareboximd.c: sys/mman.h is included more than once. ./fs/pstore/ram_core.c: linux/rslib.h is included more than once. ./fs/pstore/fs.c: fs.h is included more than once. ./fs/pstore/fs.c: linux/pstore.h is included more than once. ./fs/nfs.c: fs.h is included more than once.
./fs/uimagefs.c: fs.h is included more than once.
./fs/fs.c: command.h is included more than once. ./arch/sandbox/board/hostfile.c: linux/err.h is included more than once. ./arch/sandbox/board/devices.c: mach/linux.h is included more than once. ./arch/sandbox/os/common.c: signal.h is included more than once. ./arch/arm/boards/zii-imx51-rdu1/board.c: envfs.h is included more than once. ./arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c: generated/mach-types.h is ./arch/arm/mach-stm32mp/ddrctrl.c: mach/stm32.h is included more than once. ./arch/arm/mach-imx/cpu_init.c: common.h is included more than once. ./arch/arm/mach-imx/imx8m.c: mach/imx8m-ccm-regs.h is included more than once. ./common/efi/payload/init.c: efi.h is included more than once. ./common/state/backend_format_raw.c: common.h is included more than once. ./common/state/backend_format_raw.c: crc.h is included more than once. ./common/hush.c: libbb.h is included more than once. ./drivers/spi/atmel-quadspi.c: linux/clk.h is included more than once. ./drivers/spi/atmel-quadspi.c: linux/err.h is included more than once. ./drivers/net/virtio.c: net.h is included more than once. ./drivers/net/phy/phy.c: linux/phy.h is included more than once. ./drivers/net/cpsw.c: net.h is included more than once. ./drivers/virtio/virtio_pci_common.h: linux/list.h is included more than once. ./drivers/usb/host/ohci-hcd.c: dma.h is included more than once. ./drivers/usb/gadget/fsl_udc.c: dma.h is included more than once. ./drivers/nvmem/eeprom_93xx46.c: spi/spi.h is included more than once. ./drivers/nvmem/eeprom_93xx46.c: of.h is included more than once. ./drivers/video/imx-ipu-v3/imx-ldb.c: linux/clk.h is included more than once. ./drivers/video/imx-ipu-v3/imx-hdmi.c: linux/clk.h is included more than once. ./drivers/video/omap.c: common.h is included more than once. ./drivers/mtd/nand/nand_s3c24xx.c: asm/sections.h is included more than once. ./drivers/clk/imx/clk-imx6sx.c: linux/clk.h is included more than once. ./drivers/clk/imx/clk-imx6sl.c: linux/clk.h is included more than once. ./commands/bootm.c: of.h is included more than once.

---
 arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c | 1 -
 arch/arm/boards/zii-imx51-rdu1/board.c             | 2 --
 arch/arm/mach-imx/cpu_init.c                       | 1 -
 arch/arm/mach-imx/imx8m.c                          | 1 -
 arch/arm/mach-stm32mp/ddrctrl.c                    | 1 -
 arch/sandbox/board/devices.c                       | 1 -
 arch/sandbox/board/hostfile.c                      | 2 --
 arch/sandbox/os/common.c                           | 1 -
 commands/bootm.c                                   | 1 -
 common/efi/payload/init.c                          | 1 -
 common/hush.c                                      | 1 -
 common/state/backend_format_raw.c                  | 2 --
 crypto/rsa.c                                       | 1 -
 drivers/clk/imx/clk-imx6sl.c                       | 1 -
 drivers/clk/imx/clk-imx6sx.c                       | 1 -
 drivers/mtd/nand/nand_s3c24xx.c                    | 2 --
 drivers/net/cpsw.c                                 | 1 -
 drivers/net/phy/phy.c                              | 1 -
 drivers/net/virtio.c                               | 1 -
 drivers/nvmem/eeprom_93xx46.c                      | 2 --
 drivers/spi/atmel-quadspi.c                        | 2 --
 drivers/usb/gadget/fsl_udc.c                       | 1 -
 drivers/usb/host/ohci-hcd.c                        | 1 -
 drivers/video/imx-ipu-v3/imx-hdmi.c                | 1 -
 drivers/video/imx-ipu-v3/imx-ldb.c                 | 1 -
 drivers/video/omap.c                               | 1 -
 drivers/virtio/virtio_pci_common.h                 | 1 -
 fs/fs.c                                            | 1 -
 fs/nfs.c                                           | 1 -
 fs/pstore/fs.c                                     | 2 --
 fs/pstore/ram_core.c                               | 1 -
 fs/uimagefs.c                                      | 1 -
 lib/decompress_unlz4.c                             | 1 -
 net/ifup.c                                         | 1 -
 net/nfs.c                                          | 1 -
 scripts/bareboximd.c                               | 2 --
 scripts/common.c                                   | 1 -
 scripts/kwbimage.c                                 | 1 -
 scripts/stb_image.h                                | 4 ----
 39 files changed, 50 deletions(-)
arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c +0 -1
index 14100747e0..350576fa52 100644
@@ -25,7 +25,6 @@
 #include <mach/clock.h>
 #include <mach/mci.h>
 #include <mach/iomux.h>
-#include <generated/mach-types.h>
 
 static struct mxs_mci_platform_data mci_pdata = {
 	.caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED,
arch/arm/boards/zii-imx51-rdu1/board.c +0 -2
index 42c99ecc1e..0b5271b8de 100644
@@ -27,8 +27,6 @@
 #include <linux/sizes.h>
 #include <linux/nvmem-consumer.h>
 
-#include <envfs.h>
-
 static int zii_rdu1_init(void)
 {
 	const char *hostname;
arch/arm/mach-imx/cpu_init.c +0 -1
index 559692c765..ea36215419 100644
@@ -10,7 +10,6 @@
 #include <mach/imx7-regs.h>
 #include <mach/imx8mq-regs.h>
 #include <mach/imx8m-ccm-regs.h>
-#include <common.h>
 #include <io.h>
 #include <asm/syscounter.h>
 #include <asm/system.h>
arch/arm/mach-imx/imx8m.c +0 -1
index 6b7cdac541..8b275bd6f6 100644
@@ -13,7 +13,6 @@
 #include <mach/ocotp.h>
 #include <mach/imx8mp-regs.h>
 #include <mach/imx8mq-regs.h>
-#include <mach/imx8m-ccm-regs.h>
 #include <soc/imx8m/clk-early.h>
 
 #include <linux/iopoll.h>
arch/arm/mach-stm32mp/ddrctrl.c +0 -1
index ed211cf58e..31bddba764 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <init.h>
-#include <mach/stm32.h>
 #include <mach/ddr_regs.h>
 #include <mach/entry.h>
 #include <mach/stm32.h>
arch/sandbox/board/devices.c +0 -1
index 26152a8b90..f7305a8ead 100644
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <driver.h>
-#include <mach/linux.h>
 #include <init.h>
 #include <mach/linux.h>
 #include <asm/io.h>
arch/sandbox/board/hostfile.c +0 -2
index 7df69f8cfc..52165adec8 100644
@@ -26,8 +26,6 @@
 #include <mach/hostfile.h>
 #include <xfuncs.h>
 
-#include <linux/err.h>
-
 struct hf_priv {
 	union {
 		struct block_device blk;
arch/sandbox/os/common.c +0 -1
index e36e3972bc..2878eda29e 100644
@@ -40,7 +40,6 @@
 #include <sys/ioctl.h>
 #include <linux/fs.h>
 #include <sys/time.h>
-#include <signal.h>
 /*
  * ...except the ones needed to connect with barebox
  */
commands/bootm.c +0 -1
index f54a4827eb..95d267135c 100644
@@ -17,7 +17,6 @@
 #include <fs.h>
 #include <errno.h>
 #include <bootm.h>
-#include <of.h>
 #include <rtc.h>
 #include <init.h>
 #include <of.h>
common/efi/payload/init.c +0 -1
index 1541683186..e2bddabc9a 100644
@@ -31,7 +31,6 @@
 #include <binfmt.h>
 #include <wchar.h>
 #include <envfs.h>
-#include <efi.h>
 #include <efi/efi-payload.h>
 #include <efi/efi-device.h>
 #include <libfile.h>
common/hush.c +0 -1
index d80df7a181..6a089fabf1 100644
@@ -112,7 +112,6 @@
 #include <slice.h>
 #include <getopt.h>
 #include <libfile.h>
-#include <libbb.h>
 #include <magicvar.h>
 #include <linux/list.h>
 #include <binfmt.h>
common/state/backend_format_raw.c +0 -2
index 1fecdeb9cf..7835f977c9 100644
@@ -15,7 +15,6 @@
  *
  */
 
-#include <common.h>
 #include <common.h>
 #include <crypto/keystore.h>
 #include <digest.h>
@@ -23,7 +22,6 @@
 #include <malloc.h>
 #include <crc.h>
 #include <of.h>
-#include <crc.h>
 
 #include "state.h"
 
crypto/rsa.c +0 -1
index e97e5192ab..fc21efdb6d 100644
@@ -15,7 +15,6 @@
 #include <asm/byteorder.h>
 #include <errno.h>
 #include <rsa.h>
-#include <asm/types.h>
 #include <asm/unaligned.h>
 
 #define UINT64_MULT32(v, multby)  (((uint64_t)(v)) * ((uint32_t)(multby)))
drivers/clk/imx/clk-imx6sl.c +0 -1
index 8d0766c055..466893f82f 100644
@@ -7,7 +7,6 @@
 #include <common.h>
 #include <init.h>
 #include <driver.h>
-#include <linux/clk.h>
 #include <io.h>
 #include <of.h>
 #include <linux/clkdev.h>
drivers/clk/imx/clk-imx6sx.c +0 -1
index bacde8b893..c11829259e 100644
@@ -7,7 +7,6 @@
 #include <common.h>
 #include <init.h>
 #include <driver.h>
-#include <linux/clk.h>
 #include <io.h>
 #include <of.h>
 #include <linux/clkdev.h>
drivers/mtd/nand/nand_s3c24xx.c +0 -2
index dfe570086f..b0f16f1d62 100644
@@ -592,8 +592,6 @@ void __nand_boot_init s3c24x0_nand_load_image(void *dest, int size, int page)
 	disable_nand_controller(host);
 }
 
-#include <asm/sections.h>
-
 void __nand_boot_init nand_boot(void)
 {
 	void *dest = _text;
drivers/net/cpsw.c +0 -1
index 748aa861f1..73671ae2d4 100644
@@ -9,7 +9,6 @@
 
 #include <command.h>
 #include <dma.h>
-#include <net.h>
 #include <malloc.h>
 #include <net.h>
 #include <linux/phy.h>
drivers/net/phy/phy.c +0 -1
index adff9dadd1..60b5839b40 100644
@@ -18,7 +18,6 @@
 #include <net.h>
 #include <malloc.h>
 #include <linux/phy.h>
-#include <linux/phy.h>
 #include <linux/err.h>
 
 #define PHY_AN_TIMEOUT	10
drivers/net/virtio.c +0 -1
index b40c948689..8605f67ae2 100644
@@ -9,7 +9,6 @@
 #include <malloc.h>
 #include <net.h>
 #include <init.h>
-#include <net.h>
 #include <linux/virtio.h>
 #include <linux/virtio_ring.h>
 #include <uapi/linux/virtio_net.h>
drivers/nvmem/eeprom_93xx46.c +0 -2
index 2f598fbc97..0d19bc2877 100644
@@ -10,8 +10,6 @@
 #include <driver.h>
 #include <of.h>
 #include <spi/spi.h>
-#include <of.h>
-#include <spi/spi.h>
 #include <malloc.h>
 #include <gpio.h>
 #include <of_gpio.h>
drivers/spi/atmel-quadspi.c +0 -2
index bf6d17cc5c..55ebccc877 100644
@@ -27,8 +27,6 @@
 #include <linux/clk.h>
 #include <linux/err.h>
 
-#include <linux/clk.h>
-#include <linux/err.h>
 #include <linux/kernel.h>
 #include <linux/spi/spi-mem.h>
 #include <of_device.h>
drivers/usb/gadget/fsl_udc.c +0 -1
index ec004f1939..e8bdab5765 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include <common.h>
-#include <dma.h>
 #include <errno.h>
 #include <dma.h>
 #include <init.h>
drivers/usb/host/ohci-hcd.c +0 -1
index f277f65b97..ce5d39166b 100644
@@ -27,7 +27,6 @@
  *     to activate workaround for bug #41 or this driver will NOT work!
  */
 #include <common.h>
-#include <dma.h>
 #include <clock.h>
 #include <dma.h>
 #include <malloc.h>
drivers/video/imx-ipu-v3/imx-hdmi.c +0 -1
index f454303fd8..d63f2c2111 100644
@@ -15,7 +15,6 @@
 #include <linux/clk.h>
 #include <linux/err.h>
 #include <linux/math64.h>
-#include <linux/clk.h>
 #include <i2c/i2c.h>
 #include <video/media-bus-format.h>
 #include <video/vpl.h>
drivers/video/imx-ipu-v3/imx-ldb.c +0 -1
index ba34349d62..4c934bc72e 100644
@@ -19,7 +19,6 @@
 #include <linux/clk.h>
 #include <linux/err.h>
 #include <linux/math64.h>
-#include <linux/clk.h>
 #include <mach/imx6-regs.h>
 #include <mach/imx53-regs.h>
 
drivers/video/omap.c +0 -1
index ca41ab36fc..189b95d241 100644
@@ -16,7 +16,6 @@
 #include <io.h>
 #include <common.h>
 #include <malloc.h>
-#include <common.h>
 #include <clock.h>
 #include <linux/err.h>
 
drivers/virtio/virtio_pci_common.h +0 -1
index 8f97d12188..b4720fa1fc 100644
@@ -16,7 +16,6 @@
  *  Michael S. Tsirkin <[email protected]>
  */
 
-#include <linux/list.h>
 #include <linux/list.h>
 #include <linux/pci.h>
 #include <linux/slab.h>
fs/fs.c +0 -1
index 5fb9f1402e..460fc2f7f1 100644
@@ -3215,7 +3215,6 @@ static int automount_mount(struct dentry *dentry)
 /*
  * Some debug commands, helpful to debug the dcache implementation
  */
-#include <command.h>
 
 static int do_lookup_dentry(int argc, char *argv[])
 {
fs/nfs.c +0 -1
index 057641edc8..fae7b722f5 100644
@@ -26,7 +26,6 @@
 #include <errno.h>
 #include <libgen.h>
 #include <fcntl.h>
-#include <fs.h>
 #include <init.h>
 #include <linux/stat.h>
 #include <linux/err.h>
fs/pstore/fs.c +0 -2
index e9c7ae7adb..b41c87665c 100644
@@ -21,7 +21,6 @@
 #include <fs.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <fs.h>
 #include <malloc.h>
 #include <init.h>
 #include <linux/stat.h>
@@ -30,7 +29,6 @@
 #include <libbb.h>
 #include <rtc.h>
 #include <libfile.h>
-#include <linux/pstore.h>
 #include "internal.h"
 
 struct list_head allpstore = LIST_HEAD_INIT(allpstore);
fs/pstore/ram_core.c +0 -1
index 06be47ce53..76b8a109be 100644
@@ -20,7 +20,6 @@
 #include <linux/rslib.h>
 #include <linux/pstore_ram.h>
 #include <linux/string.h>
-#include <linux/rslib.h>
 #include <stdio.h>
 #include <malloc.h>
 #include <memory.h>
fs/uimagefs.c +0 -1
index 72641c58b5..daaa3ad24b 100644
@@ -9,7 +9,6 @@
 #include <fs.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <fs.h>
 #include <malloc.h>
 #include <init.h>
 #include <linux/stat.h>
lib/decompress_unlz4.c +0 -1
index 46a010ad4c..2c04eac71c 100644
@@ -10,7 +10,6 @@
 
 #ifdef STATIC
 #define PREBOOT
-#include <linux/decompress/mm.h>
 #include "lz4/lz4_decompress.c"
 #else
 #include <linux/decompress/unlz4.h>
net/ifup.c +0 -1
index 1870f74017..e4d5374db3 100644
@@ -17,7 +17,6 @@
 #include <string.h>
 #include <driver.h>
 #include <init.h>
-#include <globalvar.h>
 #include <magicvar.h>
 #include <linux/stat.h>
 
net/nfs.c +0 -1
index 9bd0b8f05f..df0840e4e7 100644
@@ -31,7 +31,6 @@
 #include <malloc.h>
 #include <libgen.h>
 #include <fs.h>
-#include <libgen.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <progress.h>
scripts/bareboximd.c +0 -2
index d01bd27007..ab47ad27e4 100644
@@ -4,7 +4,6 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <stdint.h>
-#include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <stdlib.h>
@@ -15,7 +14,6 @@
 #include <stdarg.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
-#include <sys/mman.h>
 
 #include "common.h"
 #include "common.c"
scripts/common.c +0 -1
index 0eb263d041..e2c53c5aef 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 #include <stdio.h>
-#include <sys/types.h>
 #include <stdint.h>
 #include <sys/types.h>
 #include <sys/stat.h>
scripts/kwbimage.c +0 -1
index 28c9a68e18..f9d052752d 100644
@@ -38,7 +38,6 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
 #include <libgen.h>
scripts/stb_image.h +0 -4
index 742fac74f7..cad4fe2901 100644
@@ -561,10 +561,6 @@ STBIDEF int   stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const ch
 #include <math.h>  // ldexp, pow
 #endif
 
-#ifndef STBI_NO_STDIO
-#include <stdio.h>
-#endif
-
 #ifndef STBI_ASSERT
 #include <assert.h>
 #define STBI_ASSERT(x) assert(x)
Signature · 7 lines
2.32.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw

Applied, thanks

Sascha

Quoted 596 lines · Alexander Shiyan

Fix warning fwterated by checkincludes.pl:
./net/nfs.c: libgen.h is included more than once.
./net/ifup.c: globalvar.h is included more than once. ./crypto/rsa.c: asm/types.h is included more than once. ./lib/decompress_unlz4.c: linux/decompress/mm.h is included more than once. ./scripts/stb_image.h: stdio.h is included more than once. ./scripts/kwbimage.c: unistd.h is included more than once. ./scripts/common.c: sys/types.h is included more than once. ./scripts/bareboximd.c: sys/types.h is included more than once. ./scripts/bareboximd.c: sys/mman.h is included more than once. ./fs/pstore/ram_core.c: linux/rslib.h is included more than once. ./fs/pstore/fs.c: fs.h is included more than once. ./fs/pstore/fs.c: linux/pstore.h is included more than once. ./fs/nfs.c: fs.h is included more than once.
./fs/uimagefs.c: fs.h is included more than once.
./fs/fs.c: command.h is included more than once. ./arch/sandbox/board/hostfile.c: linux/err.h is included more than once. ./arch/sandbox/board/devices.c: mach/linux.h is included more than once. ./arch/sandbox/os/common.c: signal.h is included more than once. ./arch/arm/boards/zii-imx51-rdu1/board.c: envfs.h is included more than once. ./arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c: generated/mach-types.h is ./arch/arm/mach-stm32mp/ddrctrl.c: mach/stm32.h is included more than once. ./arch/arm/mach-imx/cpu_init.c: common.h is included more than once. ./arch/arm/mach-imx/imx8m.c: mach/imx8m-ccm-regs.h is included more than once. ./common/efi/payload/init.c: efi.h is included more than once. ./common/state/backend_format_raw.c: common.h is included more than once. ./common/state/backend_format_raw.c: crc.h is included more than once. ./common/hush.c: libbb.h is included more than once. ./drivers/spi/atmel-quadspi.c: linux/clk.h is included more than once. ./drivers/spi/atmel-quadspi.c: linux/err.h is included more than once. ./drivers/net/virtio.c: net.h is included more than once. ./drivers/net/phy/phy.c: linux/phy.h is included more than once. ./drivers/net/cpsw.c: net.h is included more than once. ./drivers/virtio/virtio_pci_common.h: linux/list.h is included more than once. ./drivers/usb/host/ohci-hcd.c: dma.h is included more than once. ./drivers/usb/gadget/fsl_udc.c: dma.h is included more than once. ./drivers/nvmem/eeprom_93xx46.c: spi/spi.h is included more than once. ./drivers/nvmem/eeprom_93xx46.c: of.h is included more than once. ./drivers/video/imx-ipu-v3/imx-ldb.c: linux/clk.h is included more than once. ./drivers/video/imx-ipu-v3/imx-hdmi.c: linux/clk.h is included more than once. ./drivers/video/omap.c: common.h is included more than once. ./drivers/mtd/nand/nand_s3c24xx.c: asm/sections.h is included more than once. ./drivers/clk/imx/clk-imx6sx.c: linux/clk.h is included more than once. ./drivers/clk/imx/clk-imx6sl.c: linux/clk.h is included more than once. ./commands/bootm.c: of.h is included more than once.

---
 arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c | 1 -
 arch/arm/boards/zii-imx51-rdu1/board.c             | 2 --
 arch/arm/mach-imx/cpu_init.c                       | 1 -
 arch/arm/mach-imx/imx8m.c                          | 1 -
 arch/arm/mach-stm32mp/ddrctrl.c                    | 1 -
 arch/sandbox/board/devices.c                       | 1 -
 arch/sandbox/board/hostfile.c                      | 2 --
 arch/sandbox/os/common.c                           | 1 -
 commands/bootm.c                                   | 1 -
 common/efi/payload/init.c                          | 1 -
 common/hush.c                                      | 1 -
 common/state/backend_format_raw.c                  | 2 --
 crypto/rsa.c                                       | 1 -
 drivers/clk/imx/clk-imx6sl.c                       | 1 -
 drivers/clk/imx/clk-imx6sx.c                       | 1 -
 drivers/mtd/nand/nand_s3c24xx.c                    | 2 --
 drivers/net/cpsw.c                                 | 1 -
 drivers/net/phy/phy.c                              | 1 -
 drivers/net/virtio.c                               | 1 -
 drivers/nvmem/eeprom_93xx46.c                      | 2 --
 drivers/spi/atmel-quadspi.c                        | 2 --
 drivers/usb/gadget/fsl_udc.c                       | 1 -
 drivers/usb/host/ohci-hcd.c                        | 1 -
 drivers/video/imx-ipu-v3/imx-hdmi.c                | 1 -
 drivers/video/imx-ipu-v3/imx-ldb.c                 | 1 -
 drivers/video/omap.c                               | 1 -
 drivers/virtio/virtio_pci_common.h                 | 1 -
 fs/fs.c                                            | 1 -
 fs/nfs.c                                           | 1 -
 fs/pstore/fs.c                                     | 2 --
 fs/pstore/ram_core.c                               | 1 -
 fs/uimagefs.c                                      | 1 -
 lib/decompress_unlz4.c                             | 1 -
 net/ifup.c                                         | 1 -
 net/nfs.c                                          | 1 -
 scripts/bareboximd.c                               | 2 --
 scripts/common.c                                   | 1 -
 scripts/kwbimage.c                                 | 1 -
 scripts/stb_image.h                                | 4 ----
 39 files changed, 50 deletions(-)
arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c +0 -1
index 14100747e0..350576fa52 100644
@@ -25,7 +25,6 @@
 #include <mach/clock.h>
 #include <mach/mci.h>
 #include <mach/iomux.h>
-#include <generated/mach-types.h>
 
 static struct mxs_mci_platform_data mci_pdata = {
 	.caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED,
arch/arm/boards/zii-imx51-rdu1/board.c +0 -2
index 42c99ecc1e..0b5271b8de 100644
@@ -27,8 +27,6 @@
 #include <linux/sizes.h>
 #include <linux/nvmem-consumer.h>
 
-#include <envfs.h>
-
 static int zii_rdu1_init(void)
 {
 	const char *hostname;
arch/arm/mach-imx/cpu_init.c +0 -1
index 559692c765..ea36215419 100644
@@ -10,7 +10,6 @@
 #include <mach/imx7-regs.h>
 #include <mach/imx8mq-regs.h>
 #include <mach/imx8m-ccm-regs.h>
-#include <common.h>
 #include <io.h>
 #include <asm/syscounter.h>
 #include <asm/system.h>
arch/arm/mach-imx/imx8m.c +0 -1
index 6b7cdac541..8b275bd6f6 100644
@@ -13,7 +13,6 @@
 #include <mach/ocotp.h>
 #include <mach/imx8mp-regs.h>
 #include <mach/imx8mq-regs.h>
-#include <mach/imx8m-ccm-regs.h>
 #include <soc/imx8m/clk-early.h>
 
 #include <linux/iopoll.h>
arch/arm/mach-stm32mp/ddrctrl.c +0 -1
index ed211cf58e..31bddba764 100644
@@ -5,7 +5,6 @@
 
 #include <common.h>
 #include <init.h>
-#include <mach/stm32.h>
 #include <mach/ddr_regs.h>
 #include <mach/entry.h>
 #include <mach/stm32.h>
arch/sandbox/board/devices.c +0 -1
index 26152a8b90..f7305a8ead 100644
@@ -6,7 +6,6 @@
 
 #include <common.h>
 #include <driver.h>
-#include <mach/linux.h>
 #include <init.h>
 #include <mach/linux.h>
 #include <asm/io.h>
arch/sandbox/board/hostfile.c +0 -2
index 7df69f8cfc..52165adec8 100644
@@ -26,8 +26,6 @@
 #include <mach/hostfile.h>
 #include <xfuncs.h>
 
-#include <linux/err.h>
-
 struct hf_priv {
 	union {
 		struct block_device blk;
arch/sandbox/os/common.c +0 -1
index e36e3972bc..2878eda29e 100644
@@ -40,7 +40,6 @@
 #include <sys/ioctl.h>
 #include <linux/fs.h>
 #include <sys/time.h>
-#include <signal.h>
 /*
  * ...except the ones needed to connect with barebox
  */
commands/bootm.c +0 -1
index f54a4827eb..95d267135c 100644
@@ -17,7 +17,6 @@
 #include <fs.h>
 #include <errno.h>
 #include <bootm.h>
-#include <of.h>
 #include <rtc.h>
 #include <init.h>
 #include <of.h>
common/efi/payload/init.c +0 -1
index 1541683186..e2bddabc9a 100644
@@ -31,7 +31,6 @@
 #include <binfmt.h>
 #include <wchar.h>
 #include <envfs.h>
-#include <efi.h>
 #include <efi/efi-payload.h>
 #include <efi/efi-device.h>
 #include <libfile.h>
common/hush.c +0 -1
index d80df7a181..6a089fabf1 100644
@@ -112,7 +112,6 @@
 #include <slice.h>
 #include <getopt.h>
 #include <libfile.h>
-#include <libbb.h>
 #include <magicvar.h>
 #include <linux/list.h>
 #include <binfmt.h>
common/state/backend_format_raw.c +0 -2
index 1fecdeb9cf..7835f977c9 100644
@@ -15,7 +15,6 @@
  *
  */
 
-#include <common.h>
 #include <common.h>
 #include <crypto/keystore.h>
 #include <digest.h>
@@ -23,7 +22,6 @@
 #include <malloc.h>
 #include <crc.h>
 #include <of.h>
-#include <crc.h>
 
 #include "state.h"
 
crypto/rsa.c +0 -1
index e97e5192ab..fc21efdb6d 100644
@@ -15,7 +15,6 @@
 #include <asm/byteorder.h>
 #include <errno.h>
 #include <rsa.h>
-#include <asm/types.h>
 #include <asm/unaligned.h>
 
 #define UINT64_MULT32(v, multby)  (((uint64_t)(v)) * ((uint32_t)(multby)))
drivers/clk/imx/clk-imx6sl.c +0 -1
index 8d0766c055..466893f82f 100644
@@ -7,7 +7,6 @@
 #include <common.h>
 #include <init.h>
 #include <driver.h>
-#include <linux/clk.h>
 #include <io.h>
 #include <of.h>
 #include <linux/clkdev.h>
drivers/clk/imx/clk-imx6sx.c +0 -1
index bacde8b893..c11829259e 100644
@@ -7,7 +7,6 @@
 #include <common.h>
 #include <init.h>
 #include <driver.h>
-#include <linux/clk.h>
 #include <io.h>
 #include <of.h>
 #include <linux/clkdev.h>
drivers/mtd/nand/nand_s3c24xx.c +0 -2
index dfe570086f..b0f16f1d62 100644
@@ -592,8 +592,6 @@ void __nand_boot_init s3c24x0_nand_load_image(void *dest, int size, int page)
 	disable_nand_controller(host);
 }
 
-#include <asm/sections.h>
-
 void __nand_boot_init nand_boot(void)
 {
 	void *dest = _text;
drivers/net/cpsw.c +0 -1
index 748aa861f1..73671ae2d4 100644
@@ -9,7 +9,6 @@
 
 #include <command.h>
 #include <dma.h>
-#include <net.h>
 #include <malloc.h>
 #include <net.h>
 #include <linux/phy.h>
drivers/net/phy/phy.c +0 -1
index adff9dadd1..60b5839b40 100644
@@ -18,7 +18,6 @@
 #include <net.h>
 #include <malloc.h>
 #include <linux/phy.h>
-#include <linux/phy.h>
 #include <linux/err.h>
 
 #define PHY_AN_TIMEOUT	10
drivers/net/virtio.c +0 -1
index b40c948689..8605f67ae2 100644
@@ -9,7 +9,6 @@
 #include <malloc.h>
 #include <net.h>
 #include <init.h>
-#include <net.h>
 #include <linux/virtio.h>
 #include <linux/virtio_ring.h>
 #include <uapi/linux/virtio_net.h>
drivers/nvmem/eeprom_93xx46.c +0 -2
index 2f598fbc97..0d19bc2877 100644
@@ -10,8 +10,6 @@
 #include <driver.h>
 #include <of.h>
 #include <spi/spi.h>
-#include <of.h>
-#include <spi/spi.h>
 #include <malloc.h>
 #include <gpio.h>
 #include <of_gpio.h>
drivers/spi/atmel-quadspi.c +0 -2
index bf6d17cc5c..55ebccc877 100644
@@ -27,8 +27,6 @@
 #include <linux/clk.h>
 #include <linux/err.h>
 
-#include <linux/clk.h>
-#include <linux/err.h>
 #include <linux/kernel.h>
 #include <linux/spi/spi-mem.h>
 #include <of_device.h>
drivers/usb/gadget/fsl_udc.c +0 -1
index ec004f1939..e8bdab5765 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
 #include <common.h>
-#include <dma.h>
 #include <errno.h>
 #include <dma.h>
 #include <init.h>
drivers/usb/host/ohci-hcd.c +0 -1
index f277f65b97..ce5d39166b 100644
@@ -27,7 +27,6 @@
  *     to activate workaround for bug #41 or this driver will NOT work!
  */
 #include <common.h>
-#include <dma.h>
 #include <clock.h>
 #include <dma.h>
 #include <malloc.h>
drivers/video/imx-ipu-v3/imx-hdmi.c +0 -1
index f454303fd8..d63f2c2111 100644
@@ -15,7 +15,6 @@
 #include <linux/clk.h>
 #include <linux/err.h>
 #include <linux/math64.h>
-#include <linux/clk.h>
 #include <i2c/i2c.h>
 #include <video/media-bus-format.h>
 #include <video/vpl.h>
drivers/video/imx-ipu-v3/imx-ldb.c +0 -1
index ba34349d62..4c934bc72e 100644
@@ -19,7 +19,6 @@
 #include <linux/clk.h>
 #include <linux/err.h>
 #include <linux/math64.h>
-#include <linux/clk.h>
 #include <mach/imx6-regs.h>
 #include <mach/imx53-regs.h>
 
drivers/video/omap.c +0 -1
index ca41ab36fc..189b95d241 100644
@@ -16,7 +16,6 @@
 #include <io.h>
 #include <common.h>
 #include <malloc.h>
-#include <common.h>
 #include <clock.h>
 #include <linux/err.h>
 
drivers/virtio/virtio_pci_common.h +0 -1
index 8f97d12188..b4720fa1fc 100644
@@ -16,7 +16,6 @@
  *  Michael S. Tsirkin <[email protected]>
  */
 
-#include <linux/list.h>
 #include <linux/list.h>
 #include <linux/pci.h>
 #include <linux/slab.h>
fs/fs.c +0 -1
index 5fb9f1402e..460fc2f7f1 100644
@@ -3215,7 +3215,6 @@ static int automount_mount(struct dentry *dentry)
 /*
  * Some debug commands, helpful to debug the dcache implementation
  */
-#include <command.h>
 
 static int do_lookup_dentry(int argc, char *argv[])
 {
fs/nfs.c +0 -1
index 057641edc8..fae7b722f5 100644
@@ -26,7 +26,6 @@
 #include <errno.h>
 #include <libgen.h>
 #include <fcntl.h>
-#include <fs.h>
 #include <init.h>
 #include <linux/stat.h>
 #include <linux/err.h>
fs/pstore/fs.c +0 -2
index e9c7ae7adb..b41c87665c 100644
@@ -21,7 +21,6 @@
 #include <fs.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <fs.h>
 #include <malloc.h>
 #include <init.h>
 #include <linux/stat.h>
@@ -30,7 +29,6 @@
 #include <libbb.h>
 #include <rtc.h>
 #include <libfile.h>
-#include <linux/pstore.h>
 #include "internal.h"
 
 struct list_head allpstore = LIST_HEAD_INIT(allpstore);
fs/pstore/ram_core.c +0 -1
index 06be47ce53..76b8a109be 100644
@@ -20,7 +20,6 @@
 #include <linux/rslib.h>
 #include <linux/pstore_ram.h>
 #include <linux/string.h>
-#include <linux/rslib.h>
 #include <stdio.h>
 #include <malloc.h>
 #include <memory.h>
fs/uimagefs.c +0 -1
index 72641c58b5..daaa3ad24b 100644
@@ -9,7 +9,6 @@
 #include <fs.h>
 #include <errno.h>
 #include <fcntl.h>
-#include <fs.h>
 #include <malloc.h>
 #include <init.h>
 #include <linux/stat.h>
lib/decompress_unlz4.c +0 -1
index 46a010ad4c..2c04eac71c 100644
@@ -10,7 +10,6 @@
 
 #ifdef STATIC
 #define PREBOOT
-#include <linux/decompress/mm.h>
 #include "lz4/lz4_decompress.c"
 #else
 #include <linux/decompress/unlz4.h>
net/ifup.c +0 -1
index 1870f74017..e4d5374db3 100644
@@ -17,7 +17,6 @@
 #include <string.h>
 #include <driver.h>
 #include <init.h>
-#include <globalvar.h>
 #include <magicvar.h>
 #include <linux/stat.h>
 
net/nfs.c +0 -1
index 9bd0b8f05f..df0840e4e7 100644
@@ -31,7 +31,6 @@
 #include <malloc.h>
 #include <libgen.h>
 #include <fs.h>
-#include <libgen.h>
 #include <fcntl.h>
 #include <errno.h>
 #include <progress.h>
scripts/bareboximd.c +0 -2
index d01bd27007..ab47ad27e4 100644
@@ -4,7 +4,6 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <stdint.h>
-#include <sys/types.h>
 #include <sys/stat.h>
 #include <fcntl.h>
 #include <stdlib.h>
@@ -15,7 +14,6 @@
 #include <stdarg.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
-#include <sys/mman.h>
 
 #include "common.h"
 #include "common.c"
scripts/common.c +0 -1
index 0eb263d041..e2c53c5aef 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-or-later
 #include <stdio.h>
-#include <sys/types.h>
 #include <stdint.h>
 #include <sys/types.h>
 #include <sys/stat.h>
scripts/kwbimage.c +0 -1
index 28c9a68e18..f9d052752d 100644
@@ -38,7 +38,6 @@
 #include <fcntl.h>
 #include <unistd.h>
 #include <sys/mman.h>
-#include <unistd.h>
 #include <stdlib.h>
 #include <string.h>
 #include <libgen.h>
scripts/stb_image.h +0 -4
index 742fac74f7..cad4fe2901 100644
@@ -561,10 +561,6 @@ STBIDEF int   stbi_zlib_decode_noheader_buffer(char *obuffer, int olen, const ch
 #include <math.h>  // ldexp, pow
 #endif
 
-#ifndef STBI_NO_STDIO
-#include <stdio.h>
-#endif
-
 #ifndef STBI_ASSERT
 #include <assert.h>
 #define STBI_ASSERT(x) assert(x)
Signature · 7 lines
2.32.0


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox