Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2615663pxu; Mon, 7 Dec 2020 10:52:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBvm1AUsP8aPVhhVUhR7AsVyqVJgS1+vthKpn965gnL2KqoZUNGd4iitJr7RvRKIQguxSp X-Received: by 2002:a50:eb44:: with SMTP id z4mr7638170edp.167.1607367179211; Mon, 07 Dec 2020 10:52:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607367179; cv=none; d=google.com; s=arc-20160816; b=eX39xxH2agwWHrWXpFyJpelOV2pNLBKHM+HwNAl9BSxtvgDW218IjcCh8ajQab2bme Ofi0EsAJnSBLLIuW9mYeoDamGe/D1vjhk9MVD/6Xzvsfdv+htaTfjJS7lh8MB+En84Cf PMA97yleNtX8/9J8Bo8ov0aIRaRR2NIOrIi68rtqtETu+1r9ynSE7gvpWDlsHU4lNM86 UxBg9z3lNUEZoGleO6Ej9B166gsJZbWTM1jeO0LtLVIK91nEe3hjP/JTXoW/2dA5Fmlm AHjPlG/KmToxnmfoNGeRjT06cy3fLiFtudeaWnjJT2/ocTudiycC4IOIqjYpeUFuG5/1 Ig4g== 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 :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=sn76C4SZBxRsehpn3BS4ft1oMvJC+pgw5mBwX0AZxTo=; b=S7wI66Sf3geEg6i3+FsIdyo2dQIVAWbPQOB1flnp99dagVDoOgQF33PWWwFgHwVQZP y/zRbpHGY4N4vOJ8nyTYM7kQCX1EuyvRQi7qzCccp/F4HknVAj+wGyGiHc3E3ibH5caD A56nqUOOBFELHj8njWAtpGk9ZtefNdErDPPCg1CBsOLKkJgcItz+LSGQr4t05+TlQDHk NfLXdj7i9RFWbNAbUZnxy5kE706UXT4MrXvuq+E/iJc4FrC0uLXcq+NH8WCCGxtZ4oVx VWd0+K44HaPpvH9R/E4ajUNIu0q1wow9kJo5Rl+r+LhKqi6VDu3C2+7K9iyju4R2Idmx KDFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@yahoo.ca header.s=s2048 header.b=HqkKAjPT; 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=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si9654480edl.270.2020.12.07.10.52.35; Mon, 07 Dec 2020 10:52:59 -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=@yahoo.ca header.s=s2048 header.b=HqkKAjPT; 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=REJECT sp=REJECT dis=NONE) header.from=yahoo.ca Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725852AbgLGSuM (ORCPT + 99 others); Mon, 7 Dec 2020 13:50:12 -0500 Received: from sonic304-24.consmr.mail.gq1.yahoo.com ([98.137.68.205]:39023 "EHLO sonic304-24.consmr.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725774AbgLGSuM (ORCPT ); Mon, 7 Dec 2020 13:50:12 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s2048; t=1607366935; bh=sn76C4SZBxRsehpn3BS4ft1oMvJC+pgw5mBwX0AZxTo=; h=From:To:Subject:Date:In-Reply-To:References:From:Subject; b=HqkKAjPTLqAaR7MGQSnv5BD6MvoVdPLXDQC8KPHbhs6kuzV18jvEQm7O08j40+1nUbkzO/UwH88lxyMRQXST/ifCQ9rPLNiTAwpAh26gviFLoJSb8oms0uDjnpu2d4gw/HkDckhwZwJFx53TASVlFcALND13ynv2kKqoA3vpd/kZ8hBv7zntPdNUJOppF9J14XnNsTY9a/c/C27Fq+k/7gvzAe+R4Hs0AiwEur5m/wrtk84KdEfGK5ISEtpeUCFCbLi3b8QX/EQHDlarOfR2yIIJZIBoefodVgNoq9uYf0zYPKZ2z5iBOCajL5qGw/LyNuBxOozXLvS5bVjrew5BuQ== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1607366935; bh=OawfeLwdYMigW43uDGYgLLxUuaLhR8fIQmuLTk3d4td=; h=From:To:Subject:Date:From:Subject; b=ujSIHTM54d68+GBWtVVtWg9isDPDHSh/5cOKnlCv+waU+4Ss8Lu46xwgyaQXyD7P996DcW9yhXX8m3bXPI6mQAoB79p15/d+q28xNel7rJnuGyPq7UQm1H3Fp7n4SlScUTo5aHoe9ee2aZcJxYDX5dAZYjbrsRUgs94kXEZEs6KnkkLIU0oiC1yy5nYzsAFV9Rh0gqLtgiOg8IqCzLk9x/TUCWDvBjwu07n4BJnhXvDYvb0rcretnWfCVhvzMJY64/RBMrvN0cG00ukisboFQ5XXs+y3XoEZovN6xrD5E2DYsG2Se2mLOu6mADqt3C9MWGl4cO/6MuGM1enl+0a16w== X-YMail-OSG: 4ESKiWQVM1lpFhkruvK9opa.4EX764pS3rJNO4t2X2kSFgPzl1.90k1iQtA.9Qu .yPe6CGQ3pAcq45t_0vfg4ejyobRY5DkG_0_R0.uOFcbHlz7Y74zq0npMXHmGqwyE38hfdfSJoIx 7m0ukB8APpZuYMvlcayrc.JNSIFmPIDT2z3eG6sRo.A.QKXbZi4Ze2bz2uDy.v4JAnmYd4awRx2n x4njnUh6TvNRNqWsWCyKzy75GvZKbWbrslcp508FpB_7mY1CqrVcSV4j9ziaPPOrjyohPNoNGplD hhSMmSPxjvyaZz6p18ejtJLE1iwL3npNL3aCQx8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68pqgVi45nYPBIxnHMKuRSq oHwS9mGCsgZefLYixw6hqE3ndDm72DXv8UgXyvii_Le2yz12kBgRPm90ywE9JP.h0CYKjD6Fv851 yFpZRPrCiGLowNTYYC6edExnv2gKkHQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.gq1.yahoo.com with HTTP; Mon, 7 Dec 2020 18:48:55 +0000 Received: by smtp403.mail.gq1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d44ea59901fdfd830ef88befde40b9be; Mon, 07 Dec 2020 18:48:50 +0000 (UTC) From: "Alex Xu (Hello71)" To: "Alex Xu (Hello71)" , Dominik Brodowski , Song Liu , "Theodore Ts'o" , Jens Axboe , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] init: remove root_device_name Date: Mon, 7 Dec 2020 13:48:35 -0500 Message-Id: <20201207184835.63538-3-alex_y_xu@yahoo.ca> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201207184835.63538-1-alex_y_xu@yahoo.ca> References: <20201207184835.63538-1-alex_y_xu@yahoo.ca> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Length: 1377 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org root_device_name has gone through many iterations, but is now solely used for removing a /dev/ prefix off root= parameter. It's time for it to be removed. Signed-off-by: Alex Xu (Hello71) --- init/do_mounts.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/init/do_mounts.c b/init/do_mounts.c index a2a273b9866f..544614279281 100644 --- a/init/do_mounts.c +++ b/init/do_mounts.c @@ -29,7 +29,6 @@ #include "do_mounts.h" int root_mountflags = MS_RDONLY | MS_SILENT; -static char * __initdata root_device_name; static char __initdata saved_root_name[64]; static int root_wait; @@ -449,7 +448,7 @@ void __init mount_block_root(char *name, int flags) * and give them a list of the available devices */ printk("VFS: Cannot open root device \"%s\" or %s: error %d\n", - root_device_name, b, err); + saved_root_name, b, err); printk("Please append a correct \"root=\" boot option; here are the available partitions:\n"); printk_all_partitions(); @@ -602,10 +601,7 @@ void __init prepare_namespace(void) md_run_setup(); if (saved_root_name[0]) { - root_device_name = saved_root_name; - ROOT_DEV = name_to_dev_t(root_device_name); - if (strncmp(root_device_name, "/dev/", 5) == 0) - root_device_name += 5; + ROOT_DEV = name_to_dev_t(saved_root_name); } if (initrd_load()) -- 2.29.2