From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2BA81CAC58F for ; Sun, 14 Sep 2025 03:51:19 +0000 (UTC) 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: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=W7q3KlIvAwmd8t6iunEID147MQyLTsYO0JAvogpkJ/U=; b=RZni187OvuKt5I QOytkB6RtAqfcrQQgrk50TK/gifUZYm4SYrJd/WCm8wum5uWSezWogAyUGdSTNKHi2R0njHjdpk0P YGChKipcjIRyYxXMWihxCKIUXheIRSIH33T6X4QizwmwQqu/l4/ZrdySn8V3ghqJ49kIXTWMnmrH+ 2Wymy/3HcMd2khB//eXtrbn3MMNAWVQzlUXz6cFteQkJrwneaD/8nE5ekXuE15usTredaMqnytqc/ SjShsTetQc3ifhz18z/FHIq/znsrjVQwIPLi33rJ/0Q5dFdfah3RPTmt6ZBrXyd+CQ5GVYIayGmpn oNCYD8kugqEZCQWXRVkw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uxdlg-0000000HLMa-3LbB; Sun, 14 Sep 2025 03:51:12 +0000 Received: from mail-ej1-x629.google.com ([2a00:1450:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uxdle-0000000HLJc-0hg9 for linux-riscv@lists.infradead.org; Sun, 14 Sep 2025 03:51:11 +0000 Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-b07d4d24d09so262355366b.2 for ; Sat, 13 Sep 2025 20:51:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757821868; x=1758426668; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=cgyNirakXvU+05rXEnyXXLzO67oYWYN1IcZHpjjqHUg=; b=b+kCklqOk80jJFmhqHNvNxZatHK0Nhn6qHl65Gyz+pQx1ARJp6LmacM+nyGf1xlTsp EGp2F8MnF0KLyr4DF3PSkn7WG9sR4iFytRnqLqn3RAjphEJXVmVVj7POIniobjrIn8GA SMArCW3fVtAVq3lVjZWXXjlY1ZP2Gr1oCkRl/GQUDu/m59GSISYvrwvRcfYUhEeiaRxj M6leblZkt3YAX4PooNhZyb5sYRp+EvWrChZA4LCtMzJIdhxczo2PPxS7lVDggJdIhhfS 2/J/ooovVaJaocYckJ5olqJaoZUkkCHQaSUEVWej7sabLQ7UhmUn/9Ro4jKwphrK/If5 zEnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757821868; x=1758426668; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=cgyNirakXvU+05rXEnyXXLzO67oYWYN1IcZHpjjqHUg=; b=bZjq+DRwW4reskHY64/20sbzILu/NH7+hqiRwWv7xCICREydbKCTa45UCxLOXLPJC9 RBTI+wFs3N7EqfgmMAd5BHao8f6JIEN8HAM7sQXZZtkcMghMB4eav9uPjBKhz72Lprzr Te2fXtbsRW1KMadBGF2yNB3t+hlXQqO6x5HZQjeVxEe9aBvVwluZs+tdh0dbkhGe0d6t yIUtu+ttxbXvsA2MG5GNbYPW8GJKCEonZhz3wbaunvkt5JYQmYpbfVHer59x9NJBuXHb k/4VDjrFLHwV8iyX9sBsXXdCDFc12qb5xKvV3Hm5XwOLhoU+9vmP6kJ9cjlAis/ICoJs Q3Fg== X-Forwarded-Encrypted: i=1; AJvYcCXuVrs26ii0gzwiZhiuwsqkkJobsP/yisxfXV3BaHCtZ+9I2838HQhoJ36HMa1eW/cWcXVi9ys6LDNi0Q==@lists.infradead.org X-Gm-Message-State: AOJu0YxaHNz0SgQptfxaKOb4HVleTasXqei8XDE/qHPWM2TQtDNCPdXS n3cJhcq01XV83MsUJevxHjo0elafhv0MZiTFdcCMA9bQu4e5SgOIt58B X-Gm-Gg: ASbGncsZP3wHs2JszOrugrpMRV1+RYDzOVfEqwjZ0/3E0rsMQjVeBpEiZky6qkihXAD F/F4TXBfAFm8jM6CJploW5F09tTUGmplVt79I7JnHv1M4D3OF6bthEx1nortWlgZZ9VFxA7cHCJ Ox+rls9mZYrH/NBcY9Q5P+W2p7hKD6P3k+uleN8j7hI9NGYpKveZ0GZ/B7jiq1liYXbkk6y6xiX iNhAK3tSWd6FaDgG3suRnCrP0EhPpEl1hVs0oQuynT6QbGa4q/rAPP3ZDAlBwiS3HbbYE6GsbHl PNbrHwR5nrnrUqQBolKauihEOEnwNqiyj4lD9ertiVCHn5W9T9V4PP1+n7+NftseUfgtpaRkW5+ OCu/qUrxU4xuvuWivquE= X-Google-Smtp-Source: AGHT+IGYiK6likOM/TjE1BLl/jI3UX22nGT0EQIxF87CUWohx3tkGnMcAa8PzC4lwu+rbC2577QTfw== X-Received: by 2002:a17:906:46c7:b0:b07:da17:79fd with SMTP id a640c23a62f3a-b07da178367mr507229866b.17.1757821868321; Sat, 13 Sep 2025 20:51:08 -0700 (PDT) Received: from localhost ([212.73.77.104]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-b07b3347b6fsm679031866b.111.2025.09.13.20.51.04 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 13 Sep 2025 20:51:07 -0700 (PDT) From: Askar Safin To: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linus Torvalds , Greg Kroah-Hartman , Christian Brauner , Al Viro , Jan Kara , Christoph Hellwig , Jens Axboe , Andy Shevchenko , Aleksa Sarai , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Julian Stecklina , Gao Xiang , Art Nikpal , Andrew Morton , Eric Curtin , Alexander Graf , Rob Landley , Lennart Poettering , linux-arch@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-csky@vger.kernel.org, linux-hexagon@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-openrisc@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-um@lists.infradead.org, x86@kernel.org, Ingo Molnar , linux-block@vger.kernel.org, initramfs@vger.kernel.org, linux-api@vger.kernel.org, linux-doc@vger.kernel.org, linux-efi@vger.kernel.org, linux-ext4@vger.kernel.org, "Theodore Y . Ts'o" , linux-acpi@vger.kernel.org, Michal Simek , devicetree@vger.kernel.org, Luis Chamberlain , Kees Cook , Thorsten Blum , Heiko Carstens , patches@lists.linux.dev Subject: [PATCH RESEND 39/62] init: make console_on_rootfs static Date: Sun, 14 Sep 2025 06:51:03 +0300 Message-ID: <20250914035103.3619203-1-safinaskar@gmail.com> X-Mailer: git-send-email 2.47.2 In-Reply-To: <20250913003842.41944-1-safinaskar@gmail.com> References: <20250913003842.41944-1-safinaskar@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250913_205110_241218_5B3C2DCE X-CRM114-Status: GOOD ( 12.32 ) X-BeenThere: linux-riscv@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: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org This is cleanup after initrd removal Signed-off-by: Askar Safin --- include/linux/initrd.h | 2 -- init/main.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/initrd.h b/include/linux/initrd.h index 364b603215ac..55239701c4e0 100644 --- a/include/linux/initrd.h +++ b/include/linux/initrd.h @@ -23,6 +23,4 @@ extern unsigned long phys_external_initramfs_size; extern char __builtin_initramfs_start[]; extern unsigned long __builtin_initramfs_size; -void console_on_rootfs(void); - #endif /* __LINUX_INITRD_H */ diff --git a/init/main.c b/init/main.c index 58a7199c81f7..f119460bf8e1 100644 --- a/init/main.c +++ b/init/main.c @@ -1533,7 +1533,7 @@ static int __ref kernel_init(void *unused) } /* Open /dev/console, for stdin/stdout/stderr, this should never fail */ -void __init console_on_rootfs(void) +static void __init console_on_rootfs(void) { struct file *file = filp_open("/dev/console", O_RDWR, 0); -- 2.47.2 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv