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 CAB48CA101F for ; Sat, 13 Sep 2025 00:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=4fVjgLbGK8Q3VzkUirE6fakA1teoXIVC6opbXGA1ZT4=; b=KafuZy0J+YaO2gNhFMjwmmSSL8 KMcw1aTd986CBgPlPfLxy2LLunp36FDEPGbSqOoTqloQewXlZRX9hhqw470jGz6JFAZdbMPQ5UpvF WHwGVS1Ubd3Er9HOBzNi43HkwiXf/a8EPQL0/IU52dVv7sGcCvBII6iSY04aKrPWWeyUxhDtobXvc 85DNtN/qBNgiz2r3ugkH5ScJbHL97/kt4X+mKTuuHWMyKmAfEbL/oCs6CjcVXMj8g3n8r2Gn4JvP1 D0u2sFEwt/MLFXEs9+qcDhtZmSFrzDrS+aTeH/lJtLUsh35kKJJVyTnlZGYKuknMyDqMS7qDID6Dg 8o7OF1qw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1uxEQb-0000000COom-2JXN; Sat, 13 Sep 2025 00:47:45 +0000 Received: from mail-ed1-x52b.google.com ([2a00:1450:4864:20::52b]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1uxEQY-0000000COm1-0wB0 for linux-um@lists.infradead.org; Sat, 13 Sep 2025 00:47:43 +0000 Received: by mail-ed1-x52b.google.com with SMTP id 4fb4d7f45d1cf-62ecd3c21d3so3049008a12.0 for ; Fri, 12 Sep 2025 17:47:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1757724460; x=1758329260; 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=4fVjgLbGK8Q3VzkUirE6fakA1teoXIVC6opbXGA1ZT4=; b=PLg9NsILWGDQ6WClNT/6Rwf2IxI9Y5hrj0cUjrfKCzVof2Xu/fDDXIwuF9/oGgJKt0 um6+xRTfazU4mEqu+BRqQ5uAlUIKt7E2mKYkWW3MOTUksjFsm37odG2ZZAhoxSwkGDT1 G4DYTClhVXZKZchVzOVnWXrXNzYtsk2D4sRY1NhrADXc0+/C928p6Q9qcLci6Q0IbKqr Xk0lu3s3iKgpiPoh7QKMB/suEaqgvLQ/SY+Z1I4UIX/2+Ah8ivuRJFlQWuqn5Bfo05zS eyxCot+p95JfZG7midfn68fjEmm01FEwtUHnzJVevxV0aiU9/6HMB4mRtQJ07jjO3ClZ rUtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1757724460; x=1758329260; 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=4fVjgLbGK8Q3VzkUirE6fakA1teoXIVC6opbXGA1ZT4=; b=gNAEZUhQNsIk/ChYeZelRQpIQlZ9s4U+uWzHqCGWRSVzZK0PPVmOxwTHm9LvBj3A7X p7XsQ1kOOEuTeuYs6KG0GsvcUuO8iwcoSRjmlsqUYA4WnUYtmaVaBh6kRbHaL5Hq5+R7 qVQloSKsdMxM+z0yb+7ByBU/3TSg2M9nuHyOH+GaAvGKcVsRPIuCd4CDGbr00wh32tXR y1ijP2a057psvjEG9GhOuRf3GSqf3K7OKyPt68OOOBfC8FKK0v3GAHqqO4uJoQViFn7Q MJ+/zzlEWHExTnVugPjGJoi0SfLoYZm6DOIShgr39nY6mv+hq2ujskUKpUBZXMwwbYWJ A+Ag== X-Forwarded-Encrypted: i=1; AJvYcCUUsh0Psas1CbS4ZbmKAyLeLzIpLBkwHcnU1oCFGpQ0bk+mjFosHeHlmmrzZccEFoGfxMKCt1eoYQ==@lists.infradead.org X-Gm-Message-State: AOJu0YzekD8t1XIvE2zjWZnlefuGVaGq6hE2wIApKb5iBGtHYQGMnXp2 LpQLazTtXOMTo8gK+svLyTAe5TE/t/fWAS0/xXjsBt5VvqL6Hro3isqE X-Gm-Gg: ASbGncu/3BAcXe4SykiKWmyZehrqBNayqc868EVLhj3yP2eNLC+oDMGPkTI0Bi4nSeX kA7YQB0VjxHwJhLAZCqQ8yneQ7n4BqJW1cZDvtftwsncrF36zS13ESY+MFfe6MkcvFQFvLLlBQ+ Vd7o+/mSKex07KekHWuENRa9K0mubJFoCXDFztb92a0g+adFlu8cjbQu8fLpmiN4m63Qf36aXkM XAah3ZXq/i8saG3L9VUIQGWztW0ugUQupDIAdJyIxdTollB1VhPuMjIOnZfai26pb6G3VCKQUk+ h6MeO/CZRwEwqXJCb/haRrLBmSQB2TohrZOR6ZI6dEkLgifZZS8EpYBUdFWCbuTCGyrPbXum1wO PBIG4aAoosy8C/2291oA= X-Google-Smtp-Source: AGHT+IEn7MCXvWnM/H721JcTSYIJ22gozO3aCU54l5QL6th5VdkTEU9iyn+bkfXPUmCFMabMmsyKeA== X-Received: by 2002:a05:6402:40c9:b0:62e:ed71:601a with SMTP id 4fb4d7f45d1cf-62eed71640amr2549162a12.36.1757724460211; Fri, 12 Sep 2025 17:47:40 -0700 (PDT) Received: from localhost ([212.73.77.104]) by smtp.gmail.com with UTF8SMTPSA id 4fb4d7f45d1cf-62ec33f3c01sm4224385a12.34.2025.09.12.17.47.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Sep 2025 17:47:39 -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 07/62] arm: init: remove ATAG_RAMDISK Date: Sat, 13 Sep 2025 00:37:46 +0000 Message-ID: <20250913003842.41944-8-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 Content-Transfer-Encoding: 8bit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250912_174742_287827_A97A1A39 X-CRM114-Status: GOOD ( 16.70 ) X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-um" Errors-To: linux-um-bounces+linux-um=archiver.kernel.org@lists.infradead.org Previous commit removed last reference to ATAG_RAMDISK, so let's remove it Signed-off-by: Askar Safin --- arch/arm/Kconfig | 2 +- arch/arm/include/uapi/asm/setup.h | 10 ---------- arch/arm/kernel/atags_compat.c | 8 -------- 3 files changed, 1 insertion(+), 19 deletions(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index b1f3df39ed40..afc161d76c5f 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1479,7 +1479,7 @@ config ARM_ATAG_DTB_COMPAT depends on ARM_APPENDED_DTB help Some old bootloaders can't be updated to a DTB capable one, yet - they provide ATAGs with memory configuration, the ramdisk address, + they provide ATAGs with memory configuration, the kernel cmdline string, etc. Such information is dynamically provided by the bootloader and can't always be stored in a static DTB. To allow a device tree enabled kernel to be used with such diff --git a/arch/arm/include/uapi/asm/setup.h b/arch/arm/include/uapi/asm/setup.h index 8e50e034fec7..3a70890ce80f 100644 --- a/arch/arm/include/uapi/asm/setup.h +++ b/arch/arm/include/uapi/asm/setup.h @@ -59,15 +59,6 @@ struct tag_videotext { __u16 video_points; }; -/* describes how the ramdisk will be used in kernel */ -#define ATAG_RAMDISK 0x54410004 - -struct tag_ramdisk { - __u32 flags; /* bit 0 = load, bit 1 = prompt */ - __u32 size; /* decompressed ramdisk size in _kilo_ bytes */ - __u32 start; /* starting block of floppy-based RAM disk image */ -}; - /* describes where the compressed ramdisk image lives (virtual address) */ /* * this one accidentally used virtual addresses - as such, @@ -150,7 +141,6 @@ struct tag { struct tag_core core; struct tag_mem32 mem; struct tag_videotext videotext; - struct tag_ramdisk ramdisk; struct tag_initrd initrd; struct tag_serialnr serialnr; struct tag_revision revision; diff --git a/arch/arm/kernel/atags_compat.c b/arch/arm/kernel/atags_compat.c index 10da11c212cc..b9747061fa97 100644 --- a/arch/arm/kernel/atags_compat.c +++ b/arch/arm/kernel/atags_compat.c @@ -122,14 +122,6 @@ static void __init build_tag_list(struct param_struct *params, void *taglist) tag->u.core.pagesize = params->u1.s.page_size; tag->u.core.rootdev = params->u1.s.rootdev; - tag = tag_next(tag); - tag->hdr.tag = ATAG_RAMDISK; - tag->hdr.size = tag_size(tag_ramdisk); - tag->u.ramdisk.flags = (params->u1.s.flags & FLAG_RDLOAD ? 1 : 0) | - (params->u1.s.flags & FLAG_RDPROMPT ? 2 : 0); - tag->u.ramdisk.size = params->u1.s.ramdisk_size; - tag->u.ramdisk.start = params->u1.s.rd_start; - tag = tag_next(tag); tag->hdr.tag = ATAG_INITRD; tag->hdr.size = tag_size(tag_initrd); -- 2.47.2