diff options
| author | Tom Rini <[email protected]> | 2024-05-20 10:16:33 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-05-20 10:16:33 -0600 |
| commit | d4781422d1268aa6deca3e49d2fb227e79c160b4 (patch) | |
| tree | 420073c8a29a401a3908803000df6f54673e1731 /drivers/cpu | |
| parent | 85854bc3324edd0c81047780ee60033d056fd490 (diff) | |
| parent | a7f0154c412859323396111dd0c09dbafbc153cb (diff) | |
Merge tag 'v2024.07-rc3' into next
Prepare v2024.07-rc3
Diffstat (limited to 'drivers/cpu')
| -rw-r--r-- | drivers/cpu/at91_cpu.c | 1 | ||||
| -rw-r--r-- | drivers/cpu/bmips_cpu.c | 1 | ||||
| -rw-r--r-- | drivers/cpu/cpu-uclass.c | 1 | ||||
| -rw-r--r-- | drivers/cpu/cpu_sandbox.c | 1 | ||||
| -rw-r--r-- | drivers/cpu/imx8_cpu.c | 1 | ||||
| -rw-r--r-- | drivers/cpu/microblaze_cpu.c | 1 | ||||
| -rw-r--r-- | drivers/cpu/mpc83xx_cpu.c | 1 | ||||
| -rw-r--r-- | drivers/cpu/riscv_cpu.c | 3 |
8 files changed, 9 insertions, 1 deletions
diff --git a/drivers/cpu/at91_cpu.c b/drivers/cpu/at91_cpu.c index b45cc6ca1a9..34a3f61c7e9 100644 --- a/drivers/cpu/at91_cpu.c +++ b/drivers/cpu/at91_cpu.c @@ -5,6 +5,7 @@ * Author: Claudiu Beznea <[email protected]> */ +#include <common.h> #include <cpu.h> #include <dm.h> #include <div64.h> diff --git a/drivers/cpu/bmips_cpu.c b/drivers/cpu/bmips_cpu.c index db624ee47fb..3dd04fa8858 100644 --- a/drivers/cpu/bmips_cpu.c +++ b/drivers/cpu/bmips_cpu.c @@ -7,6 +7,7 @@ * Copyright (C) 2009 Florian Fainelli <[email protected]> */ +#include <common.h> #include <cpu.h> #include <display_options.h> #include <dm.h> diff --git a/drivers/cpu/cpu-uclass.c b/drivers/cpu/cpu-uclass.c index 16f8f2e5219..9772578968b 100644 --- a/drivers/cpu/cpu-uclass.c +++ b/drivers/cpu/cpu-uclass.c @@ -6,6 +6,7 @@ #define LOG_CATEGORY UCLASS_CPU +#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h> diff --git a/drivers/cpu/cpu_sandbox.c b/drivers/cpu/cpu_sandbox.c index e65e1bdc51b..2e871fe313c 100644 --- a/drivers/cpu/cpu_sandbox.c +++ b/drivers/cpu/cpu_sandbox.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <dm.h> #include <cpu.h> diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c index 4781a565547..98ff95f5ff5 100644 --- a/drivers/cpu/imx8_cpu.c +++ b/drivers/cpu/imx8_cpu.c @@ -3,6 +3,7 @@ * Copyright 2019 NXP */ +#include <common.h> #include <cpu.h> #include <dm.h> #include <thermal.h> diff --git a/drivers/cpu/microblaze_cpu.c b/drivers/cpu/microblaze_cpu.c index 4e24ada4002..a229f6913b0 100644 --- a/drivers/cpu/microblaze_cpu.c +++ b/drivers/cpu/microblaze_cpu.c @@ -2,6 +2,7 @@ /* * Copyright (C) 2022, Ovidiu Panait <[email protected]> */ +#include <common.h> #include <cpu.h> #include <dm.h> #include <asm/cpuinfo.h> diff --git a/drivers/cpu/mpc83xx_cpu.c b/drivers/cpu/mpc83xx_cpu.c index 9a7b5fd7c42..e451c11116a 100644 --- a/drivers/cpu/mpc83xx_cpu.c +++ b/drivers/cpu/mpc83xx_cpu.c @@ -4,6 +4,7 @@ * Mario Six, Guntermann & Drunck GmbH, [email protected] */ +#include <common.h> #include <bitfield.h> #include <clk.h> #include <cpu.h> diff --git a/drivers/cpu/riscv_cpu.c b/drivers/cpu/riscv_cpu.c index 4f2958a23ce..d39a943cb84 100644 --- a/drivers/cpu/riscv_cpu.c +++ b/drivers/cpu/riscv_cpu.c @@ -5,6 +5,7 @@ */ #include <clk.h> +#include <common.h> #include <cpu.h> #include <dm.h> #include <errno.h> @@ -23,7 +24,7 @@ static int riscv_cpu_get_desc(const struct udevice *dev, char *buf, int size) const char *cpu; cpu = dev_read_string(dev, "compatible"); - if (size < (strlen(cpu) + 1)) + if (!cpu || size < (strlen(cpu) + 1)) return -ENOSPC; strcpy(buf, cpu); |
