From: Pratyush Yadav <pratyush@kernel.org>
To: Mike Rapoport <rppt@kernel.org>,
Pasha Tatashin <pasha.tatashin@soleen.com>,
Pratyush Yadav <pratyush@kernel.org>,
Alexander Graf <graf@amazon.com>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
David Matlack <dmatlack@google.com>,
Bjorn Helgaas <bhelgaas@google.com>
Cc: kexec@lists.infradead.org, linux-mm@kvack.org,
linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-pci@vger.kernel.org
Subject: [PATCH 4/6] kho: use unsigned long for kho_preserve_pages() and co when KHO=n
Date: Fri, 27 Nov 2026 12:25:30 +0000 [thread overview]
Message-ID: <20261127122536.3708770-5-pratyush@kernel.org> (raw)
In-Reply-To: <20261127122536.3708770-1-pratyush@kernel.org>
From: "Pratyush Yadav (Google)" <pratyush@kernel.org>
Commit 840fe43d371f ("kho: use unsigned long for nr_pages") changed
nr_pages to unsigned long, but it forgot to update the KEXEC_HANDOVER=n
stubs.
Fixes: 840fe43d371f ("kho: use unsigned long for nr_pages")
Signed-off-by: Pratyush Yadav (Google) <pratyush@kernel.org>
---
I don't think this is stable material since there is no problem in
practice.
---
include/linux/kexec_handover.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/linux/kexec_handover.h b/include/linux/kexec_handover.h
index ef2b188c8ed0..a20456b8da20 100644
--- a/include/linux/kexec_handover.h
+++ b/include/linux/kexec_handover.h
@@ -66,12 +66,12 @@ static inline int kho_preserve_folio(struct folio *folio)
static inline void kho_unpreserve_folio(struct folio *folio) { }
-static inline int kho_preserve_pages(struct page *page, unsigned int nr_pages)
+static inline int kho_preserve_pages(struct page *page, unsigned long nr_pages)
{
return -EOPNOTSUPP;
}
-static inline void kho_unpreserve_pages(struct page *page, unsigned int nr_pages) { }
+static inline void kho_unpreserve_pages(struct page *page, unsigned long nr_pages) { }
static inline int kho_preserve_vmalloc(void *ptr,
struct kho_vmalloc *preservation)
@@ -95,7 +95,7 @@ static inline struct folio *kho_restore_folio(phys_addr_t phys)
}
static inline struct page *kho_restore_pages(phys_addr_t phys,
- unsigned int nr_pages)
+ unsigned long nr_pages)
{
return NULL;
}
--
2.56.1.839.g22a8290db9-goog
next prev parent reply other threads:[~2026-11-27 12:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 12:25 [PATCH 0/6] kho: housekeeping Pratyush Yadav
2026-11-27 12:25 ` [PATCH 1/6] kho: build KHO objects into a single kho.o Pratyush Yadav
2026-11-27 12:25 ` [PATCH 2/6] kho: use acronym for KHO .c files Pratyush Yadav
2026-11-27 12:25 ` [PATCH 3/6] kho: move kho_{block,radix_tree}.h into include/linux/kho/ Pratyush Yadav
2026-11-27 12:25 ` Pratyush Yadav [this message]
2026-11-27 12:25 ` [PATCH 5/6] kho: fix kernel-doc return for kho_alloc_preserve() Pratyush Yadav
2026-11-27 12:25 ` [PATCH 6/6] kho: don't reference subtree blobs as FDTs Pratyush Yadav
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=20261127122536.3708770-5-pratyush@kernel.org \
--to=pratyush@kernel.org \
--cc=bhelgaas@google.com \
--cc=corbet@lwn.net \
--cc=dmatlack@google.com \
--cc=graf@amazon.com \
--cc=kexec@lists.infradead.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-pci@vger.kernel.org \
--cc=pasha.tatashin@soleen.com \
--cc=rdunlap@infradead.org \
--cc=rppt@kernel.org \
--cc=skhan@linuxfoundation.org \
/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