Re: [PATCH v14 03/19] x86: Secure Launch Resource Table header file

ALOK TIWARI
2025-04-23T18:25:09Z

On 21-04-2025 21:56, Ross Philipson wrote:
> +static inline int
> +slr_add_entry(struct slr_table *table,
> + struct slr_entry_hdr *entry)
> +{
> + struct slr_entry_hdr *end;
> +
> + if ((table->size + entry->size) > table->max_size)
> + return -1;
> +
> + memcpy((u8 *)table + table->size - sizeof(*end), entry, entry->size);
> + table->size += entry->size;
> +
> + end = (struct slr_entry_hdr *)((u8 *)table + table->size - sizeof(*end));

remove extra ' ' before =

> + end->tag = SLR_ENTRY_END;
> + end->size = sizeof(*end);
> +
> + return 0;

Thanks,
Alok