From: Sourabh Jain <sourabhjain@linux.ibm.com>
To: linuxppc-dev@lists.ozlabs.org, maddy@linux.ibm.com,
mpe@ellerman.id.au, ritesh.list@gmail.com
Cc: npiggin@gmail.com, chleroy@kernel.org, shivangu@linux.ibm.com,
hbathini@linux.ibm.com, mahesh@linux.ibm.com,
adityag@linux.ibm.com, venkat88@linux.ibm.com,
Sourabh Jain <sourabhjain@linux.ibm.com>
Subject: [PATCH v2 1/2] powerpc/fadump: remove old sysfs symlink
Date: Mon, 13 Jul 2026 09:56:34 +0530 [thread overview]
Message-ID: <20260713042636.1599868-2-sourabhjain@linux.ibm.com> (raw)
In-Reply-To: <20260713042636.1599868-1-sourabhjain@linux.ibm.com>
Commit d418b19f34ed ("powerpc/fadump: Reorganize /sys/kernel/fadump_*
sysfs files") and commit 3f5f1f22ef10 ("Documentation/ABI: Mark
/sys/kernel/fadump_* sysfs files deprecated") moved the
/sys/kernel/fadump_* sysfs files to /sys/kernel/fadump/ and deprecated
the old files in 2019.
To maintain backward compatibility, symlinks were added at the old
locations so existing tools could still work. References [1][2] now use
the new sysfs interface, so we can safely remove the old symlinks.
Link: https://github.com/rhkdump/kdump-utils/commit/fc7c65312a5bef115ce40818bf43ddd3b01b8958 [1]
Link: https://github.com/openSUSE/kdump/commit/c274a22ff5f326c8afaa7bba60bd1b86abfc4fab [2]
Signed-off-by: Sourabh Jain <sourabhjain@linux.ibm.com>
---
arch/powerpc/kernel/fadump.c | 36 ------------------------------------
1 file changed, 36 deletions(-)
diff --git a/arch/powerpc/kernel/fadump.c b/arch/powerpc/kernel/fadump.c
index 7f79c9aea4a9..7a23b7e7d643 100644
--- a/arch/powerpc/kernel/fadump.c
+++ b/arch/powerpc/kernel/fadump.c
@@ -1592,43 +1592,7 @@ static void __init fadump_init_files(void)
pr_err("sysfs group creation failed (%d), unregistering FADump",
rc);
unregister_fadump();
- return;
- }
-
- /*
- * The FADump sysfs are moved from kernel_kobj to fadump_kobj need to
- * create symlink at old location to maintain backward compatibility.
- *
- * - fadump_enabled -> fadump/enabled
- * - fadump_registered -> fadump/registered
- * - fadump_release_mem -> fadump/release_mem
- */
- rc = compat_only_sysfs_link_entry_to_kobj(kernel_kobj, fadump_kobj,
- "enabled", "fadump_enabled");
- if (rc) {
- pr_err("unable to create fadump_enabled symlink (%d)", rc);
- return;
- }
-
- rc = compat_only_sysfs_link_entry_to_kobj(kernel_kobj, fadump_kobj,
- "registered",
- "fadump_registered");
- if (rc) {
- pr_err("unable to create fadump_registered symlink (%d)", rc);
- sysfs_remove_link(kernel_kobj, "fadump_enabled");
- return;
}
-
- if (fw_dump.dump_active) {
- rc = compat_only_sysfs_link_entry_to_kobj(kernel_kobj,
- fadump_kobj,
- "release_mem",
- "fadump_release_mem");
- if (rc)
- pr_err("unable to create fadump_release_mem symlink (%d)",
- rc);
- }
- return;
}
static int __init fadump_setup_elfcorehdr_buf(void)
--
2.52.0
next prev parent reply other threads:[~2026-07-13 4:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-13 4:26 [PATCH v2 0/2] powerpc/fadump: remove deprecated sysfs compatibility links Sourabh Jain
2026-07-13 4:26 ` Sourabh Jain [this message]
2026-07-13 4:26 ` [PATCH v2 2/2] Documentation/ABI: remove old fadump sysfs doc Sourabh Jain
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260713042636.1599868-2-sourabhjain@linux.ibm.com \
--to=sourabhjain@linux.ibm.com \
--cc=adityag@linux.ibm.com \
--cc=chleroy@kernel.org \
--cc=hbathini@linux.ibm.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=maddy@linux.ibm.com \
--cc=mahesh@linux.ibm.com \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=ritesh.list@gmail.com \
--cc=shivangu@linux.ibm.com \
--cc=venkat88@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox