[PATCH 4/4] mm/cma: drop the duplicate alignment check in rmem_cma_setup()
sashiko-bot at kernel.org
sashiko-bot at kernel.org
Wed Nov 4 08:29:51 PST 2026
> cma_init_reserved_mem() already refuses a base or size that is not aligned
> to CMA_MIN_ALIGNMENT_BYTES, so the identical test in rmem_cma_setup() only
> repeats it one call earlier. Remove it and report the failure from
> cma_init_reserved_mem() instead, where the area name is available: the
> message now says which pool is misaligned, and every caller gets the
> diagnostic rather than just the device-tree path.
>
> Suggested-by: Mike Rapoport <rppt at kernel.org>
> Signed-off-by: Radhey Shyam Pandey <radhey.shyam.pandey at amd.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261103162429.2053989-1-radhey.shyam.pandey@amd.com?part=4
More information about the kexec
mailing list