On Wed, Mar 05, 2025 at 12:02:13PM +0800, lihuisong (C) wrote:got it. I found it.
在 2025/3/3 18:51, Sudeep Holla 写道:Sorry I didn't notice this question. ACPI depends on ARCH_SUPPORTS_ACPI
The Sparse static checker flags a type mismatch warning related toHow to confirm ACPI works only on little-endian?
endianness conversion:
| warning: incorrect type in argument 1 (different base types)
| expected restricted __le32 const [usertype] *p
| got unsigned int *
This is because an explicit endianness conversion (le32_to_cpu()) was
applied unnecessarily to a pcc_hdr.flags field that is already in
little-endian format.
The PCC driver is only enabled on little-endian kernels due to its
dependency on ACPI and EFI, making the explicit conversion unnecessary.
and it is selected only from EFI which is disabled if CPU_BIG_ENDIAN=y
.