[PATCH 04/13] m68k: asm/ptrace.h: include linux/types.h
Stefan Roese
sr at denx.de
Tue Oct 22 13:11:36 CEST 2024
On 10/3/24 23:27, Rasmus Villemoes wrote:
> Modifying a generic header like watchdog.h, removing not directly used
> #includes, can apparently break the build of m68k, because the
> asm/ptrace.h header relies on whoever includes it to already have
> included something that defines the type ulong.
>
> Make the asm/ptrace.h header self-contained by including the proper
> header.
>
> Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
Reviewed-by: Stefan Roese <sr at denx.de>
Thanks,
Stefan
> ---
> arch/m68k/include/asm/ptrace.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/m68k/include/asm/ptrace.h b/arch/m68k/include/asm/ptrace.h
> index d419824806c..5decf73a1d1 100644
> --- a/arch/m68k/include/asm/ptrace.h
> +++ b/arch/m68k/include/asm/ptrace.h
> @@ -9,6 +9,8 @@
> */
> #ifndef __ASSEMBLY__
>
> +#include <linux/types.h>
> +
> struct pt_regs {
> ulong d0;
> ulong d1;
Viele Grüße,
Stefan Roese
--
DENX Software Engineering GmbH, Managing Director: Erika Unter
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: sr at denx.de
More information about the U-Boot
mailing list