From patchwork Tue Feb 8 19:17:26 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nathan Chancellor X-Patchwork-Id: 12739257 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4D1FBC433EF for ; Tue, 8 Feb 2022 19:17:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385954AbiBHTRz (ORCPT ); Tue, 8 Feb 2022 14:17:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60162 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385929AbiBHTRz (ORCPT ); Tue, 8 Feb 2022 14:17:55 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA7A7C0612C0; Tue, 8 Feb 2022 11:17:54 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8228DB81CBE; Tue, 8 Feb 2022 19:17:53 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E30DDC004E1; Tue, 8 Feb 2022 19:17:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1644347872; bh=tM3+yTNfndQKhKxV0q8n28hJCRchdQiyxSD4fHX/LUs=; h=From:To:Cc:Subject:Date:From; b=bxWFxuFCPOdRvgaYNBs/mKRcWsM4tX71d978uaf5gB+B2EP+NuYva09aLB2QafYS6 heBjMhyM254fh69jsPIxS4xUX8sFXMNA1X7OdziR18Qn4FR5Iw2KLd/JWYcvEHg1LL S5zLxThkyfJuvI/Cs0MPeufE6F4f1q53XaqcDBu1zZRgQPf8a5MQgWzS2mwNkItGnW pQ8lidZqtYxa0Lekfun8QLLkVfwB5wlfUKh7UvIOK/VvHcE43sH72h3HwojK7XkuwH 6pTLLtlLkOMvAsI+Aq4zi/CpdAYttZ4GOWHpQ3rh8gcXlQvkxygr5n3Ay9rPScmZuB uFOW1mO7mqo5Q== From: Nathan Chancellor To: Thomas Bogendoerfer Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org, Nick Desaulniers , Kees Cook , Nathan Chancellor Subject: [PATCH] MIPS: Malta: Enable BLK_DEV_INITRD Date: Tue, 8 Feb 2022 12:17:26 -0700 Message-Id: <20220208191726.1304731-1-nathan@kernel.org> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org This configuration is useful for boot testing malta_defconfig in QEMU with just a simple cpio initrd, instead of a full ext4 rootfs. This results in an increase of ~164KB of vmlinux (with GCC 11.2.0): $ diskus vmlinux.before 11.19 MB (11,194,368 bytes) $ diskus vmlinux.after 11.36 MB (11,358,208 bytes) This size increase comes from the fact that usr/Kconfig is sourced when CONFIG_BLK_DEV_INITRD is enabled, which defaults to supporting several decompression algorithms for compressed initrds. This seems like a reasonable tradeoff but these configurations could be disabled in the future if there are complaints about the size increase. Signed-off-by: Nathan Chancellor Reviewed-by: Kees Cook --- arch/mips/configs/malta_defconfig | 1 + 1 file changed, 1 insertion(+) base-commit: dfd42facf1e4ada021b939b4e19c935dcdd55566 diff --git a/arch/mips/configs/malta_defconfig b/arch/mips/configs/malta_defconfig index 3321bb576944..3456ac8ded6c 100644 --- a/arch/mips/configs/malta_defconfig +++ b/arch/mips/configs/malta_defconfig @@ -4,6 +4,7 @@ CONFIG_HIGH_RES_TIMERS=y CONFIG_LOG_BUF_SHIFT=15 CONFIG_NAMESPACES=y CONFIG_RELAY=y +CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y # CONFIG_COMPAT_BRK is not set CONFIG_SLAB=y