[PATCH 08/13] watchdog.h: change include of cyclic.h to u-boot/schedule.h

Simon Glass sjg at chromium.org
Wed Oct 9 03:52:44 CEST 2024


On Thu, 3 Oct 2024 at 15:29, Rasmus Villemoes <ravi at prevas.dk> wrote:
>
> Nobody relies on getting the cyclic API declared by including the
> watchdog.h header, but for historical reasons, many TUs include
> watchdog.h to get a declaration of schedule(). Now that we have a
> dedicated header for just that, include that header instead of
> cyclic.h.
>
> Eventually, all TUs that call schedule() should themselves include
> u-boot/schedule.h, but this is a step towards getting rid of
> unnecessary include statements in cyclic.h and global_data.h.
>
> Signed-off-by: Rasmus Villemoes <ravi at prevas.dk>
> ---
>  include/watchdog.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list