Re: [PATCH 2/3] soc: qcom: mdt_loader: Rename mdt_phdr_valid()

2025-06-05 Thread Dmitry Baryshkov
On Thu, Jun 05, 2025 at 08:43:01AM -0500, Bjorn Andersson wrote: > The function checks if a program header refers to a PT_LOAD segment, > that isn't a hash segment (which should be PT_LOAD in the first place), > andwith non-zero size. That's not the definition of "valid", but rather > if it's "load

[PATCH 2/3] soc: qcom: mdt_loader: Rename mdt_phdr_valid()

2025-06-05 Thread Bjorn Andersson
The function checks if a program header refers to a PT_LOAD segment, that isn't a hash segment (which should be PT_LOAD in the first place), andwith non-zero size. That's not the definition of "valid", but rather if it's "loadable". Rename the function to reflect what it does. Signed-off-by: Bjor