diff options
| author | Danish Khateeb <danishkhateeb03@gmail.com> | 2026-09-02 15:13:40 -0500 |
|---|---|---|
| committer | Ard Biesheuvel <ardb@kernel.org> | 2026-09-03 11:26:47 +0200 |
| commit | 8a854a750875ac4949a264eb3af47a1ba67a59a2 (patch) | |
| tree | 49b2885fbc45c1e054df69fe75c93f0b711912c8 /scripts/Makefile.thinlto | |
| parent | cee9395acd8043be0644b25c34bfa86623f2b935 (diff) | |
| download | linux-next-8a854a750875ac4949a264eb3af47a1ba67a59a2.tar.gz linux-next-8a854a750875ac4949a264eb3af47a1ba67a59a2.zip | |
efi/capsule: Replace kmap_atomic() with kmap_local_page()
kmap_atomic() is deprecated in favour of kmap_local_page(), as described
in Documentation/mm/highmem.rst.
The conversion is safe here: the mapping is created and torn down within a
single iteration of the sg_count loop, preserving the strict stack-based
ordering that kmap_local_page() requires, and the mapped region is only
written to, so neither pagefault_disable() nor preempt_disable() is needed.
The surrounding code already sleeps (it allocates the pages with
alloc_page(GFP_KERNEL) and later takes capsule_mutex), so there is no
atomic context to preserve.
Build-tested only.
Assisted-by: LLM sparse
Signed-off-by: Danish Khateeb <danishkhateeb03@gmail.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
