Re: [PATCH] ACPICA: actbl2: change to be16/be32 types for big endian data

2023-07-04 Thread Rafael J. Wysocki
On Mon, Jul 3, 2023 at 3:01 PM Ben Dooks wrote: > > Some of the fields in struct acpi_nfit_control_region are used in big > endian format, and thus are generatng warnings from spare where the > member is passed to one of the conversion functions. > > Fix the following sparse warnings by changing

[PATCH] ACPI: NFIT: limit string attribute write

2023-07-04 Thread Ben Dooks
If we're writing what could be an arbitrary sized string into an attribute we should probably use snprintf() just to be safe. Most of the other attriubtes are some sort of integer so unlikely to be an issue so not altered at this time. Signed-off-by: Ben Dooks --- drivers/acpi/nfit/core.c | 2