[PATCH 2/5] arch_topology: update CPU map to use the new API
Krzysztof Kozlowski
krzk at kernel.org
Mon Jul 7 23:29:43 PDT 2025
On 07/07/2025 17:04, Alireza Sanaee wrote:
> Cleans up the cpu-map generation using the created API.
>
> Signed-off-by: Alireza Sanaee <alireza.sanaee at huawei.com>
> ---
> drivers/base/arch_topology.c | 12 ++++++------
> 1 file changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c
> index 3ebe77566788..88970f13f684 100644
> --- a/drivers/base/arch_topology.c
> +++ b/drivers/base/arch_topology.c
> @@ -518,23 +518,23 @@ core_initcall(free_raw_capacity);
> */
> static int __init get_cpu_for_node(struct device_node *node)
> {
> + struct device_node *cpu_node __free(device_node) = NULL;
That's not a correct style anymore. What's more it is not really
explained anywhere. Follow standard cleanup.h rules (constructor).
Best regards,
Krzysztof
More information about the linux-arm-kernel
mailing list