From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Tue, 07 Jun 2022 07:22:07 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nyRfI-0061og-So for lore@lore.pengutronix.de; Tue, 07 Jun 2022 07:22:07 +0200 Received: from bombadil.infradead.org ([2607:7c80:54:3::133]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nyRfG-0005UL-L7 for lore@pengutronix.de; Tue, 07 Jun 2022 07:22:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=48Ib1DPyUQfh+fMD+Ji17fPWytCG7+mtdWg3XVRMVSU=; b=yUbBkk8YCIN6zB CVPoLBYX5pDZWW1wdejcN7G32TYv+Ec3kNxwTgzJ1c3fN+NDtYgPdUJtltskdws3+Gkfc6X7Wr079 rYm+0K6Zzfw0IE+hj+WcyDp9wC37mNqiMysp3UAJq1fG9OLgUCrDO5opLNB7Olzudvcag/idoIC0i zRXbGv3h4kJ62xOTtbkqsPJBelsiml9b/uxX2WvQvKTEnKJWNWKvwSpSWh/UU5oE5PlgsEm/v3oc3 mxLESJ9wrYhMzEF0wdJNXepZ3mA0L7YMs0kWSDiYMaWrZcJ4xvdFTxma+1TafQtyv7Xeh04WYzn3k UfNqJBfyPVzl+bUAy12w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyRdR-004oIb-RK; Tue, 07 Jun 2022 05:20:09 +0000 Received: from mail-lf1-x130.google.com ([2a00:1450:4864:20::130]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyRdM-004oHN-G0 for barebox@lists.infradead.org; Tue, 07 Jun 2022 05:20:07 +0000 Received: by mail-lf1-x130.google.com with SMTP id w20so4879786lfa.11 for ; Mon, 06 Jun 2022 22:20:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5FHq4KaUD2HOgQlL+f9LegvNJNeC3ricqMLXh5X8dcY=; b=f7DnqyIkr1TCO9Gaz6T4sP6Ys4Cs+/fJVGbVYo2JEhtFd0s5OpAk0AzptjMaeGbThg x0vqRYkr2/ov3cxTBD6Kc+KftDm6CF9OvgNwN18bmupjWQkoTS5JJRCZ/CuHWkvbCerh oHS6qHfuSnypH6OoPfQ5c+l6m8g9IU+aiimBqRwRj4OTqPmRr6+HoKIZK9CNtytbNEvz wKqbHchcKqdpMqMNDpV3VHCw3ItFHlByNN0KDCS5qd1Uab3+73sdn9cqLySYCF1XcKw8 +wAeBrQyI/4KOgzyccXG4kXFCRVBX2kB3hEP8KQGlwyxTgP8XEOl7LZwx9AdS8CxUd9S HqDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5FHq4KaUD2HOgQlL+f9LegvNJNeC3ricqMLXh5X8dcY=; b=f3B9do4MBNWHAM1m219HMQ3LA/BFd3YZjTpu8UyIXzK/30YSyfPtk8dA7fxvq051w9 lId17oW1pLTIdcHkapWszNV3uqxyAY6f2Uz2NpDs3NFiI4RygOQfXi9Pu8ccOB5MqsmH gU/+bLN4tEKF02Ujfy3u6XOQKV/B1Nu6YaQ4Bl3gE+9JDvoKQJlLAi9iJhezFxPzbDmy nbcDl5kttBFgiEkFU5TKfIPwm/JN1O820a7dppaIj76IoybBcBykJ5aoCnFNskATV/pI cNwyj4q7u5KlHaHbW7K85Sy0jlz2y06y4rvHe+3EqNmy2OeH9lYo4WC0jWNsBe/OXfsA VKmw== X-Gm-Message-State: AOAM531jRBoyn8k00XAyPYYztKq6Pg6MHkVSTgUUY8p1wJ/R1m0101xE CjXRW2xcQDZqvs20ZcWCWV3CgKUl6Dg= X-Google-Smtp-Source: ABdhPJyDuULwX91Iqohu7dBFKRLYnQcKJRPsudF6P69uVBcnh3W5YwCNWp8zmagIUiieuMV/59nMLg== X-Received: by 2002:a05:6512:33c3:b0:479:374c:a8bb with SMTP id d3-20020a05651233c300b00479374ca8bbmr7852215lfg.264.1654579200039; Mon, 06 Jun 2022 22:20:00 -0700 (PDT) Received: from shc.milas.spb.ru ([188.243.217.78]) by smtp.gmail.com with ESMTPSA id m1-20020a056512014100b0047255d211bbsm3125087lfo.234.2022.06.06.22.19.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 22:19:59 -0700 (PDT) From: Alexander Shiyan To: barebox@lists.infradead.org Cc: Alexander Shiyan Date: Tue, 7 Jun 2022 08:19:57 +0300 Message-Id: <20220607051957.2497-1-eagle.alexander923@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220606_222004_607478_A3E83700 X-CRM114-Status: GOOD ( 11.16 ) X-BeenThere: barebox@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" X-SA-Exim-Connect-IP: 2607:7c80:54:3::133 X-SA-Exim-Mail-From: barebox-bounces+lore=pengutronix.de@lists.infradead.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on metis.ext.pengutronix.de X-Spam-Level: X-Spam-Status: No, score=-2.9 required=4.0 tests=AWL,BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH] treewide: Remove duplicate incudes X-SA-Exim-Version: 4.2.1 (built Wed, 08 May 2019 21:11:16 +0000) X-SA-Exim-Scanned: Yes (on metis.ext.pengutronix.de) 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. Signed-off-by: Alexander Shiyan --- 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(-) diff --git a/arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c b/arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c index 14100747e0..350576fa52 100644 --- a/arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c +++ b/arch/arm/boards/imx233-olinuxino/imx23-olinuxino.c @@ -25,7 +25,6 @@ #include #include #include -#include static struct mxs_mci_platform_data mci_pdata = { .caps = MMC_CAP_4_BIT_DATA | MMC_CAP_SD_HIGHSPEED | MMC_CAP_MMC_HIGHSPEED, diff --git a/arch/arm/boards/zii-imx51-rdu1/board.c b/arch/arm/boards/zii-imx51-rdu1/board.c index 42c99ecc1e..0b5271b8de 100644 --- a/arch/arm/boards/zii-imx51-rdu1/board.c +++ b/arch/arm/boards/zii-imx51-rdu1/board.c @@ -27,8 +27,6 @@ #include #include -#include - static int zii_rdu1_init(void) { const char *hostname; diff --git a/arch/arm/mach-imx/cpu_init.c b/arch/arm/mach-imx/cpu_init.c index 559692c765..ea36215419 100644 --- a/arch/arm/mach-imx/cpu_init.c +++ b/arch/arm/mach-imx/cpu_init.c @@ -10,7 +10,6 @@ #include #include #include -#include #include #include #include diff --git a/arch/arm/mach-imx/imx8m.c b/arch/arm/mach-imx/imx8m.c index 6b7cdac541..8b275bd6f6 100644 --- a/arch/arm/mach-imx/imx8m.c +++ b/arch/arm/mach-imx/imx8m.c @@ -13,7 +13,6 @@ #include #include #include -#include #include #include diff --git a/arch/arm/mach-stm32mp/ddrctrl.c b/arch/arm/mach-stm32mp/ddrctrl.c index ed211cf58e..31bddba764 100644 --- a/arch/arm/mach-stm32mp/ddrctrl.c +++ b/arch/arm/mach-stm32mp/ddrctrl.c @@ -5,7 +5,6 @@ #include #include -#include #include #include #include diff --git a/arch/sandbox/board/devices.c b/arch/sandbox/board/devices.c index 26152a8b90..f7305a8ead 100644 --- a/arch/sandbox/board/devices.c +++ b/arch/sandbox/board/devices.c @@ -6,7 +6,6 @@ #include #include -#include #include #include #include diff --git a/arch/sandbox/board/hostfile.c b/arch/sandbox/board/hostfile.c index 7df69f8cfc..52165adec8 100644 --- a/arch/sandbox/board/hostfile.c +++ b/arch/sandbox/board/hostfile.c @@ -26,8 +26,6 @@ #include #include -#include - struct hf_priv { union { struct block_device blk; diff --git a/arch/sandbox/os/common.c b/arch/sandbox/os/common.c index e36e3972bc..2878eda29e 100644 --- a/arch/sandbox/os/common.c +++ b/arch/sandbox/os/common.c @@ -40,7 +40,6 @@ #include #include #include -#include /* * ...except the ones needed to connect with barebox */ diff --git a/commands/bootm.c b/commands/bootm.c index f54a4827eb..95d267135c 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include diff --git a/common/efi/payload/init.c b/common/efi/payload/init.c index 1541683186..e2bddabc9a 100644 --- a/common/efi/payload/init.c +++ b/common/efi/payload/init.c @@ -31,7 +31,6 @@ #include #include #include -#include #include #include #include diff --git a/common/hush.c b/common/hush.c index d80df7a181..6a089fabf1 100644 --- a/common/hush.c +++ b/common/hush.c @@ -112,7 +112,6 @@ #include #include #include -#include #include #include #include diff --git a/common/state/backend_format_raw.c b/common/state/backend_format_raw.c index 1fecdeb9cf..7835f977c9 100644 --- a/common/state/backend_format_raw.c +++ b/common/state/backend_format_raw.c @@ -15,7 +15,6 @@ * */ -#include #include #include #include @@ -23,7 +22,6 @@ #include #include #include -#include #include "state.h" diff --git a/crypto/rsa.c b/crypto/rsa.c index e97e5192ab..fc21efdb6d 100644 --- a/crypto/rsa.c +++ b/crypto/rsa.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #define UINT64_MULT32(v, multby) (((uint64_t)(v)) * ((uint32_t)(multby))) diff --git a/drivers/clk/imx/clk-imx6sl.c b/drivers/clk/imx/clk-imx6sl.c index 8d0766c055..466893f82f 100644 --- a/drivers/clk/imx/clk-imx6sl.c +++ b/drivers/clk/imx/clk-imx6sl.c @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/clk/imx/clk-imx6sx.c b/drivers/clk/imx/clk-imx6sx.c index bacde8b893..c11829259e 100644 --- a/drivers/clk/imx/clk-imx6sx.c +++ b/drivers/clk/imx/clk-imx6sx.c @@ -7,7 +7,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/mtd/nand/nand_s3c24xx.c b/drivers/mtd/nand/nand_s3c24xx.c index dfe570086f..b0f16f1d62 100644 --- a/drivers/mtd/nand/nand_s3c24xx.c +++ b/drivers/mtd/nand/nand_s3c24xx.c @@ -592,8 +592,6 @@ void __nand_boot_init s3c24x0_nand_load_image(void *dest, int size, int page) disable_nand_controller(host); } -#include - void __nand_boot_init nand_boot(void) { void *dest = _text; diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c index 748aa861f1..73671ae2d4 100644 --- a/drivers/net/cpsw.c +++ b/drivers/net/cpsw.c @@ -9,7 +9,6 @@ #include #include -#include #include #include #include diff --git a/drivers/net/phy/phy.c b/drivers/net/phy/phy.c index adff9dadd1..60b5839b40 100644 --- a/drivers/net/phy/phy.c +++ b/drivers/net/phy/phy.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #define PHY_AN_TIMEOUT 10 diff --git a/drivers/net/virtio.c b/drivers/net/virtio.c index b40c948689..8605f67ae2 100644 --- a/drivers/net/virtio.c +++ b/drivers/net/virtio.c @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/nvmem/eeprom_93xx46.c b/drivers/nvmem/eeprom_93xx46.c index 2f598fbc97..0d19bc2877 100644 --- a/drivers/nvmem/eeprom_93xx46.c +++ b/drivers/nvmem/eeprom_93xx46.c @@ -10,8 +10,6 @@ #include #include #include -#include -#include #include #include #include diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index bf6d17cc5c..55ebccc877 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -27,8 +27,6 @@ #include #include -#include -#include #include #include #include diff --git a/drivers/usb/gadget/fsl_udc.c b/drivers/usb/gadget/fsl_udc.c index ec004f1939..e8bdab5765 100644 --- a/drivers/usb/gadget/fsl_udc.c +++ b/drivers/usb/gadget/fsl_udc.c @@ -1,6 +1,5 @@ // SPDX-License-Identifier: GPL-2.0-only #include -#include #include #include #include diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index f277f65b97..ce5d39166b 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c @@ -27,7 +27,6 @@ * to activate workaround for bug #41 or this driver will NOT work! */ #include -#include #include #include #include diff --git a/drivers/video/imx-ipu-v3/imx-hdmi.c b/drivers/video/imx-ipu-v3/imx-hdmi.c index f454303fd8..d63f2c2111 100644 --- a/drivers/video/imx-ipu-v3/imx-hdmi.c +++ b/drivers/video/imx-ipu-v3/imx-hdmi.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include