From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Fri, 30 Apr 2021 15:31:46 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1lcTFC-00050v-IO for lore@lore.pengutronix.de; Fri, 30 Apr 2021 15:31:46 +0200 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcTFA-00078B-Uz for lore@pengutronix.de; Fri, 30 Apr 2021 15:31:46 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: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:List-Owner; bh=r7jfxb17oU42ZoRX5PSNX60Qqm3uE0ZaO/AtPabtv5s=; b=SAFSgxxMc9EOfpCFyMhdqPDp5 LggHpqj2bklgK4KACebxj71K8Idwul9hRpaNLt7alBNfZblktAY7soq0JMSlenGOj1BYB4WCBLPVa Q4Cx4A3/VEJ5OI/XMV1UnIyjTV0g083U6w3XRpBH5ZU0huVofG/Yw0wTsG2jy/PO7i90NJbu/qa1P Qq0Jy4GLoNBcAd+IV50MSEu99OkoWnzLv6v1j7cuhFeoGDkL1C30+m4RzrTRrEocJcznUteR8D3rT X2gT9cIlLdeSGwDpkXNwYrNwE1EJijShqrjnFBwTC8mK3aDyt2iuv3xfD/Qu7Xv6VLa1otidSpT0R Um4kmx2pg==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lcTEI-007ulW-52; Fri, 30 Apr 2021 13:30:50 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lcTDb-007uZ9-6J for barebox@desiato.infradead.org; Fri, 30 Apr 2021 13:30:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=SVU5O0nNmok24Z/HBR4GX05j23uXBsHVURfMlWMlaPc=; b=em1Z/ce3BS6VDg9To9Xn+9MvgG A6xieSPmNt6ZMmcufnaPZgpgq4p5fgG1sfZoN6Pk6fgVjQuzZhT94FquJKcx7eqOiLCLTkN/w2qVJ 91gmv9Dqyx+BIWCguOpVhiHzxQMv7ETGFTSCzvwF3v99k/O/4lJ8qXP/A0DeTgS9ku15oGpuyDyqh fck/j9U1R60pl4RB0e/8zm5kRsf/1PBD5ER4BGo+lUxc7wxgSgpPdRNFuZMt0pqPZlkCdEN3H9s7B y7QBK8QgvhugaOn25M0jROEJWqgJwXfz979AX3oOMFA0f/wJstR9v+WNg0ezp0b5k5QsKmjCAns5u tBviUY4w==; Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lcTDX-001PJW-Eg for barebox@lists.infradead.org; Fri, 30 Apr 2021 13:30:06 +0000 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lcTDO-00069z-4Q; Fri, 30 Apr 2021 15:29:54 +0200 Received: from afa by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lcTDN-0003rd-7F; Fri, 30 Apr 2021 15:29:53 +0200 From: Ahmad Fatoum To: barebox@lists.infradead.org Cc: Ahmad Fatoum Date: Fri, 30 Apr 2021 15:29:48 +0200 Message-Id: <20210430132949.14617-15-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210430132949.14617-1-a.fatoum@pengutronix.de> References: <20210430132949.14617-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210430_063003_533935_593DA88B X-CRM114-Status: GOOD ( 11.29 ) 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: 2001:8b0:10b:1:d65d:64ff:fe57:4e05 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=-3.4 required=4.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Subject: [PATCH v2 14/15] common: make FILE_LIST feature unconditional 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) CONFIG_FILE_LIST controls whether the file_list_* family of functions are compiled. common/file-list.o does not register any initcalls and there is no code that is dependent on it being available: it's selected as required. This means linker GC can completely get rid of it if required, so drop the symbol. Signed-off-by: Ahmad Fatoum --- common/Kconfig | 4 ---- common/Makefile | 2 +- drivers/usb/gadget/Kconfig | 2 -- net/Kconfig | 1 - 4 files changed, 1 insertion(+), 8 deletions(-) diff --git a/common/Kconfig b/common/Kconfig index 3c841fb4fd5e..5eb74cabd0d8 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -91,9 +91,6 @@ config EFI_GUID config EFI_DEVICEPATH bool -config FILE_LIST - bool - config ARCH_DMA_ADDR_T_64BIT bool @@ -117,7 +114,6 @@ config USBGADGET_START bool depends on CMD_USBGADGET || USB_GADGET_AUTOSTART select ENVIRONMENT_VARIABLES - select FILE_LIST default y config BOOT diff --git a/common/Makefile b/common/Makefile index dc1c6b9afdd7..c2c15817badf 100644 --- a/common/Makefile +++ b/common/Makefile @@ -66,7 +66,7 @@ obj-$(CONFIG_EFI_GUID) += efi-guid.o obj-$(CONFIG_EFI_DEVICEPATH) += efi-devicepath.o lwl-$(CONFIG_IMD) += imd-barebox.o obj-$(CONFIG_IMD) += imd.o -obj-$(CONFIG_FILE_LIST) += file-list.o +obj-y += file-list.o obj-$(CONFIG_FIRMWARE) += firmware.o obj-$(CONFIG_UBIFORMAT) += ubiformat.o obj-$(CONFIG_BAREBOX_UPDATE_IMX_NAND_FCB) += imx-bbu-nand-fcb.o diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 7e0c570914d7..4ed6cbbee1b9 100644 --- a/drivers/usb/gadget/Kconfig +++ b/drivers/usb/gadget/Kconfig @@ -45,7 +45,6 @@ comment "USB Gadget drivers" config USB_GADGET_DFU bool - select FILE_LIST prompt "Device Firmware Update Gadget" config USB_GADGET_SERIAL @@ -56,7 +55,6 @@ config USB_GADGET_SERIAL config USB_GADGET_FASTBOOT bool select BANNER - select FILE_LIST select FASTBOOT_BASE prompt "Android Fastboot USB Gadget" endif diff --git a/net/Kconfig b/net/Kconfig index 1549c9af6bc1..3512055c456a 100644 --- a/net/Kconfig +++ b/net/Kconfig @@ -35,7 +35,6 @@ config NET_SNTP config NET_FASTBOOT bool select BANNER - select FILE_LIST select FASTBOOT_BASE prompt "Android Fastboot support" help -- 2.29.2 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox