From nobody Thu Oct 2 19:01:35 2025 Received: from mail-ed1-f53.google.com (mail-ed1-f53.google.com [209.85.208.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 694BC11CA9 for ; Sat, 13 Sep 2025 00:53:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757724792; cv=none; b=nVb4jb2BM9qjKJdvWSx+3DnT/1AntDkteACjBwhH/D/qhqoZcNrzBXJWylpBhAVMX09Y6wIYjuyXubyaWEXhl74WmMwb48TISI2/nsdIRyUESjG92ltAJoL+47+3DM5sC/kdL9pwBeYipt6NNu2qnyPpzi2tpj1qiVqHgArsWh0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757724792; c=relaxed/simple; bh=x5NNVyIF1R5eB/2ANpkfxinDkMZ4lHIXMUphyEE4B54=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=M9UW7n3OvxtWikFUrjrYODmMdXcaWvLaBzoEJgTjoM9zxigEJSW9ZIdUdAeMke5IzXcebEOghF6qi9Z39xE8bxZc+HLBCRsbWJTPLV3k7vrm7bJYx3f8jqDY0e4uCm+7kKtHd7cKVPDCPf//pOwmd3KgRg5kRX4nEtKjlNKg6Vw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=KGKxaKJJ; arc=none smtp.client-ip=209.85.208.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KGKxaKJJ" Received: by mail-ed1-f53.google.com with SMTP id 4fb4d7f45d1cf-628f29d68ecso4906948a12.3 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=vger.kernel.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=KGKxaKJJAEmQb6XUp3nRwdDCCxc+u+hiDne6Z/NPf1uixihci6LE3WqQK66IqjXdY4 Xb/SIK40YfVhek6ziJiApcg4teUqoYD+EUABCY4ZDilpIOpcxVeVt4xnP8Y3hMV830Jd BgRCzsXLuAt/64gYNvjWjTt0faQGDNZq5VES2V7LFxosLo+CyBxCqy0cFlgLTUfnd41y g5A5xGHGNE2ZrRJQWf4a4OG0sSfOVWqShG7OAgFkdiIQMVcQX7NExVIHdtllyNXyAyPe SXalYa6zfu1Jnx/pFPicmNaDPB3e4ynKFhUSu4lO0eWu8UaD73J3NMjlvmNcETXjIJLv jaTQ== 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=a2ivUH85kxw4CXkyJrvbmPP3+6Mu6eHozba0y2MOzxkJlOscvhwF9tRCDahkkzqKxW D2MP5Ia9qDowBfjNdlCPwUIQnmECAYIc8mUT9TB1AF6JfVBlvnyzt6PBwwkVCy+VaU1/ +GhHouWXJG/jdvAy2uvEei6JEH8CRRy0WsBOFfEqhKOYMOhU57FwXVFSgcxR5vtSukY3 ka46Jj18OqvHOZZFiX7jp5dVVDQKBc6Yf4deXbEGCsmjd4JmXv2zeISOwYk0kXX8U2qD dJcB6LkRT+dScQMYItv9m7QAwRhO3s400sTTu4xqAR095fxPvGd+SDdfycPXAwLk/Bdy +YLQ== X-Forwarded-Encrypted: i=1; AJvYcCUV/QahGMKshXxohO1mVkHY6Ta2L0UTnzErxnfjkf86166f3UlC/RGuL67/0e6kWZU4NsQbGKAmVcqJb5c=@vger.kernel.org X-Gm-Message-State: AOJu0YyXZmzoo5P7r7HhR9Jt+ReiLwqsmt8IAAUIrVycWnATe0dRZkhe sEVIB9+9Y92MTKY0TFORxecho+xSnGV+kpzKumdAcCpjtBkye2+1kq74 X-Gm-Gg: ASbGncvdhYPEuCWJtC6YoI3aesMRYuX5GciRRtJ6Oszu0kwOd4VDQZ4Pw7lJt4Cw1fT 5QPBc55395NI08dSYtMJf6eBg6+uNMvMWX3GN/JSy2CROsgoKUR/y5lZKunUKNGWC+bH/GXzTqT N5iEMnyrlcVN5mvDkjHW4W+Jn4uqAfTsrHdyHai0kXUrfmnog7orie/DFR5JqZOjAHWy+zzVRYU MFvyGO7y7AEWV1ttV+x/2y4IlSvdYVomevPD17iW3QvQihHf7szI55KT71LNVcj/NPwP5pLwwMK grfUk07jiH1nPXTa1APdRQIkukRmuvHNTPMIgXPE9Ma9//jRyTSHCRiCbDNbyj4j0sWMa5EV8yW fe0jqpePk51cLh3I861FRZB4/LNp02A== 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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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/ad= min-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. =3D=3D =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D =20 =20 -real-root-dev -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D - -See Documentation/admin-guide/initrd.rst. - - reboot-cmd (SPARC only) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 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=3D8, /* string: domainname */ =20 KERN_PANIC=3D15, /* int: panic timeout */ - KERN_REALROOTDEV=3D16, /* real root device to mount after initrd */ =20 KERN_SPARC_REBOOT=3D21, /* reboot command on Sparc */ KERN_CTLALTDEL=3D22, /* 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 @@ =20 unsigned long initrd_start, initrd_end; int initrd_below_start_ok; -static unsigned int real_root_dev; /* do_proc_dointvec cannot handle kdev_= t */ =20 phys_addr_t phys_initrd_start __initdata; unsigned long phys_initrd_size __initdata; =20 -#ifdef CONFIG_SYSCTL -static const struct ctl_table kern_do_mounts_initrd_table[] =3D { - { - .procname =3D "real-root-dev", - .data =3D &real_root_dev, - .maxlen =3D sizeof(int), - .mode =3D 0644, - .proc_handler =3D 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; --=20 2.47.2