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 345C9CAC582 for ; Sat, 13 Sep 2025 00:53:21 +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=b8cmz/dFk3ugtYx2av6yA1WYhGZ8Fu3/nrRUs5ma/Rw=; b=DflKLEc+8RNoGb +NbA4lWOF8kMNxfXU4TgxVGxsbSezhBwzaD6vIv2uUYgwhMpLHnG+ax/LX6sF/yw4dG6wink8aM7r Awfem3RYY/amHmoMYcshxEuoXNW+S9VocW5mVBA36YgrdP5kmteZuI1w+3cfxkmxNqhoujqtrktpp N9WbDeg6sXyJbz7cbX6ZnCH1Wey4R+BAQ9w659omHxP3gxWKjJ+jGSfQamCrCNGm0F924gMo/8BpH OvFFqvanujuCkxF6TflsaTPIwG3BRGTHjtOyTTU4ce9DUQ0jM4xNBrNpdVHSjQ2Y6HSYtjtxn3ioQ N1fWSp7lw1ltehSLJKpQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uxEVu-0000000CQxH-0URW; Sat, 13 Sep 2025 00:53:14 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uxEVs-0000000CQw9-25Yk for linux-riscv@bombadil.infradead.org; Sat, 13 Sep 2025 00:53:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; 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=qPSAK5Fj4YQSUyCSJit30V41XYzOMHEP2qtV3SbNp88=; b=EhuuL/NVUbT7G+ew8/PRa9MyFE HSJhZfLuOTSvAVFxpze11JudFZLE/LrRILy8WwM5nhYmeI+FWdKXrCUzfu6cPhn0a1s4+XYQTifch 88ROIJrXdsodUdTZRYPOzyUQcuQhu6lXUFxkxxoa1tYa+5YG+JflW77wr+IxRPdy2r9DAFMRdyyI0 ye/9Wv3rkPeJ0ob8vKqo3ET5o/RXhCimrOQqejZ9+FJ9oNIl4dMsx7lwpkYeZOzy7pX5pFYB5qHV9 C0h/OUxc2vlre/2tfL7oOV/XUouYUi3mFbWKiWUYXte1Hjq7+rN8785m3TBeEfBGSZnwfI+xDKBAW +6pxzuew==; Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by desiato.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uxEVp-00000006UtK-1Y8h for linux-riscv@lists.infradead.org; Sat, 13 Sep 2025 00:53:11 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-b07e081d852so67609666b.2 for ; Fri, 12 Sep 2025 17:53:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757724788; x=1758329588; 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=qPSAK5Fj4YQSUyCSJit30V41XYzOMHEP2qtV3SbNp88=; b=hU8YTgMUBBecnPhuDIoi5Ht3UrknAGU4uwUtoW3eo2ZeNjckhKMflHK+VKStajJqHS FzOEESnb0QQxGYPgcWmsKLcWBD6HpkV0i8QQu6tLzx2sFd+ohBFb6sP2J65VgfsdgIKI eA7nnA3NjuGdCqpVLsjlEra75U0IdHLCUEjvkVycwlsCgW2u8vyxb7tL4nfBhG0a70Cs MXxBYgWJw9OglRUSE6p4Auu+dnvkSHWxcfmSJow5ajWp/mn3cYLnfDqd2GOjjN9QbiaY sTrYI22hH9Jy+eGC0drTA8xj9BsrKT8ifjt4Qy654Gac6iAwIF6uIk9fquY+H1Hdglhk 6juQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757724788; x=1758329588; 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=qPSAK5Fj4YQSUyCSJit30V41XYzOMHEP2qtV3SbNp88=; b=t95AOaRR4ue3tfqMjcT3L5lJNTvY12Uj4391RV2Xc0QTZw6Xlmw5kgdkdK7jssyt7a caGcQGgFDozLobhY95nFAo1NVrv2DDiMVU3pYLVb3KPwmPwJjuPibkSEQX6uZuaFO9ze VpYYBevIH8A5Ig9DShiRZ9j98MIDchQ2TzLZjGMQfyVDZu3KKYmS2NxKXAtAqrhhDJxx oecmkkDv9wQ8zGrw5mFNlEggJQauEfEPtuUK/xLOTItEYE3NtjL58jqBdjXZ2IPcKIha 6iSd+PGih1B3oX/d86jBttpmxQPqvdT7GZZ4CpDbvwTwd40ojxfA5FCsmEGbEZw4h0vt xCvQ== X-Forwarded-Encrypted: i=1; AJvYcCVozPNcuH6+vcTlumZaXOxMvAlW2b9l8ZP0AGkZy78bIEkZ6DvzMtpM76/qe0vAZs1rrL0O9pvq3zAxNw==@lists.infradead.org X-Gm-Message-State: AOJu0Yw9rCSOwrN75NZiDxvKVe+d8f9MN0ELVhkCVy2/81D/HrNMBOyl IvoJiSOeKZNUzpW1OGiitVxIadJEwWWlyE40GspGIvitfbdX8E/XDUq1 X-Gm-Gg: ASbGncu0WCx7mDVDxhs9DIdCMcpqDes7Ce2A2QYaqRiCqEiptgvWBjOW19D+CNlgANM fmusC0DQj5GRp1jhxfFSFMsrkIyPJ8tPdZfKeOtceqO4LBx0FOlZygpBY9Lx0TE84Tmj5biQskR oynqZzVM9os/dLxD44lKCc5+MSp6kO8m+hqOJK6ZnUAGifvUhUHPuM4JZy9yMbqvY2Aa3QenZp9 7g62baWS+b4k8UUu0ZEfdeyQD8360zCeO6PvpvFIS75qLWwkglXZRzN64NYoSNeuucOmOUJX+vc 08bftdVLa9BECqzLEO5BpZ642wOxp0Mk+MAqRJh2LvYDnCn7IdG6fBh58/75Vs+SEfOB8L8QJT4 hy6bLeNISD1K6M0TswCCt7FQmq6tOQg== X-Google-Smtp-Source: AGHT+IFLH7pCvIgBYHEI5BCYMw7iR++gatKVbesXKTxSAgJfhChwCe/V59YIUp3mRnJ55soXUGFMnw== X-Received: by 2002:a17:907:da4:b0:b04:2cc2:e49c with SMTP id a640c23a62f3a-b07c35bbcbbmr535243766b.19.1757724787764; Fri, 12 Sep 2025 17:53:07 -0700 (PDT) Received: from localhost ([212.73.77.104]) by smtp.gmail.com with UTF8SMTPSA id a640c23a62f3a-b07b32f22e8sm477916866b.87.2025.09.12.17.53.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Sep 2025 17:53: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 12/62] init: remove /proc/sys/kernel/real-root-dev Date: Sat, 13 Sep 2025 00:37:51 +0000 Message-ID: <20250913003842.41944-13-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_015309_802581_475CE221 X-CRM114-Status: GOOD ( 11.89 ) 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 It was used for initrd support, which was removed in previous commits Signed-off-by: Askar Safin --- Documentation/admin-guide/sysctl/kernel.rst | 6 ------ include/uapi/linux/sysctl.h | 1 - init/do_mounts_initrd.c | 20 -------------------- 3 files changed, 27 deletions(-) diff --git a/Documentation/admin-guide/sysctl/kernel.rst b/Documentation/admin-guide/sysctl/kernel.rst index 8b49eab937d0..cc958c228bc2 100644 --- a/Documentation/admin-guide/sysctl/kernel.rst +++ b/Documentation/admin-guide/sysctl/kernel.rst @@ -1215,12 +1215,6 @@ that support this feature. == =========================================================================== -real-root-dev -============= - -See Documentation/admin-guide/initrd.rst. - - reboot-cmd (SPARC only) ======================= diff --git a/include/uapi/linux/sysctl.h b/include/uapi/linux/sysctl.h index 63d1464cb71c..1c7fe0f4dca4 100644 --- a/include/uapi/linux/sysctl.h +++ b/include/uapi/linux/sysctl.h @@ -92,7 +92,6 @@ enum KERN_DOMAINNAME=8, /* string: domainname */ KERN_PANIC=15, /* int: panic timeout */ - KERN_REALROOTDEV=16, /* real root device to mount after initrd */ KERN_SPARC_REBOOT=21, /* reboot command on Sparc */ KERN_CTLALTDEL=22, /* int: allow ctl-alt-del to reboot */ diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c index bec1c5d684a3..d5264e9a52e0 100644 --- a/init/do_mounts_initrd.c +++ b/init/do_mounts_initrd.c @@ -14,30 +14,10 @@ unsigned long initrd_start, initrd_end; int initrd_below_start_ok; -static unsigned int real_root_dev; /* do_proc_dointvec cannot handle kdev_t */ phys_addr_t phys_initrd_start __initdata; unsigned long phys_initrd_size __initdata; -#ifdef CONFIG_SYSCTL -static const struct ctl_table kern_do_mounts_initrd_table[] = { - { - .procname = "real-root-dev", - .data = &real_root_dev, - .maxlen = sizeof(int), - .mode = 0644, - .proc_handler = proc_dointvec, - }, -}; - -static __init int kernel_do_mounts_initrd_sysctls_init(void) -{ - register_sysctl_init("kernel", kern_do_mounts_initrd_table); - return 0; -} -late_initcall(kernel_do_mounts_initrd_sysctls_init); -#endif /* CONFIG_SYSCTL */ - static int __init early_initrdmem(char *p) { phys_addr_t start; -- 2.47.2 _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv