Re: [PATCH v3 1/2] x86/mm: Handle alloc failure in phys_*_init()

From: Dave Hansen
Date: Wed Jun 11 2025 - 10:17:13 EST


On 6/11/25 01:38, Em Sharnoff wrote:
>> Could you please find a way to reduce the number of casts?
> What do you think about changing the return for these functions to just 'int'
> for errors?
> It's a larger change (especially if all callers should be updated to check the
> return value), but I think much cleaner in the end.

Fine with me. No reason to cram errno's into a physical address that's
never used as a physical address.