Re: [PATCH] ACPICA: fix UBSAN warning using __builtin_offsetof

2020-06-10 Thread Jung-uk Kim
should not > use the host's IMO. Is there a platform specific way to > include the platform's stddef.h here? > > Maybe linux/stddef.h should be included in > include/acpi/platform/aclinux.h, then include/acpi/platform/acenv.h > included in include/acpi/actypes.h, su

Re: [PATCH] ACPICA: fix UBSAN warning using __builtin_offsetof

2020-06-10 Thread Jung-uk Kim
id, (acpi_size) (i)) > #define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p, (void *) 0) > -#define ACPI_OFFSET(d, f) ACPI_PTR_DIFF (&(((d *) 0)->f), > (void *) 0) > +#define ACPI_OFFSET(d, f) offsetof (d,f) > #define ACPI_PHYSADDR_TO_PTR(i) ACPI_TO_

Re: [PATCH 2/2] x86, kexec_file_load: make it work with efi=noruntime or efi=oldmap

2019-01-16 Thread Jung-uk Kim
;> >>> >> ********** >> >>> / >>> >>> -acpi_status ACPI_INIT_FUNCTION >>> -acpi_find_root_pointer(acpi_physical_address *table_address) >>> +acpi_status acpi_find_root_poin