Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1682046pxb; Wed, 9 Feb 2022 02:04:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJz/+soapgOum8jynaSr78LYpb5sJJImjHq6uRnX7zOCGvxcvjnU8Img51hZg/mJf4irfgbr X-Received: by 2002:a17:90a:f414:: with SMTP id ch20mr2582212pjb.146.1644401051229; Wed, 09 Feb 2022 02:04:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644401051; cv=none; d=google.com; s=arc-20160816; b=wktBjUfybpDT/e+kyOgJIUrhuewElhVohpnXSzobsMKB4e6CNQ7kbUHON+/oWM4zjp +mBJ2aUXBE8Hd2+8X0TBsFnxTNht1Rkf8d/BlTrTDTEI/rppkwvX0TNV/lwJPkLE8Ixp 0/2gNyLF/3SqDjVRkqAkobqRdeeSm54Ht2viUuKZIxpuAG78SOu9PamVQz4Pr1zGIOgB kLlbfjQMK5cw3TjxmklQkAxUtu+1RhxIcrPQjytWmdA9CAfwZh8Jf0k4wLEjWIrTBn6Z ff6+5fkOzFnGu08TxfQfRnJyPHvZoIYf0eKDkaEc8xqXSw+gAjh2VPf6fPtE9EKn7+i+ 7jjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=OPGlCxEirF4TPcPZhmk6rX9VMwrUS+R/dOlcPh4TA4k=; b=MKYTlUpfhfuWWhx4o4kev0Yz4sXX/0Rba0u7R1h+/S4AmIVm3aqhqYwCzFhC/DuC5Z LK2Nm4u6s3HnffAi6jYLm0vYKpsvNR+tAd4MryNzbEJxznqBHV0M+wGLZBpiEP9JVHhz CGrQEJJxpzrcmhVwhyzipOj4FZGlCLD6kVzDFRQSSFg1we6/F+uHawnW6FfXf3GrIVON T63XxBF4wxms6U3eQkwHP9qQdY9bKT3vGKKni0DUEqSN7uxLufPvyMcL3cs//nWOGk3V sxTRAz3KOeHpYMEZYiKjBF8zpVaMsLERmIN4Gf2pUwXUWgHQYODaodzFs6pTiiiA5a4a v79g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bxWFxuFC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l189si14794606pgd.409.2022.02.09.02.03.57; Wed, 09 Feb 2022 02:04:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=bxWFxuFC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385960AbiBHTR4 (ORCPT + 99 others); Tue, 8 Feb 2022 14:17:56 -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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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 --- arch/mips/configs/malta_defconfig | 1 + 1 file changed, 1 insertion(+) 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 base-commit: dfd42facf1e4ada021b939b4e19c935dcdd55566 -- 2.35.1