Re: [PATCH v23 03/13] power: reset: reboot-mode: Add support for predefined reboot modes

From: Pavan Kondeti

Date: Wed Jul 22 2026 - 05:17:32 EST


On Tue, Jul 14, 2026 at 10:46:31PM +0530, Shivendra Pratap wrote:
> diff --git a/include/linux/reboot-mode.h b/include/linux/reboot-mode.h
> index 34a81e4b4f95..b216c7595f7e 100644
> --- a/include/linux/reboot-mode.h
> +++ b/include/linux/reboot-mode.h
> @@ -4,18 +4,34 @@
>
> #include <linux/types.h>
>
> +struct reboot_mode_entry {
> + const char *name;
> + u32 magic[3];
> + int count;
> +};
> +

I see some where `count < 0` check, should not this be size_t or u32?

Thanks,
Pavan