[Devel] [RFC PATCH 2/4] ACPI/IORT: Add support for RMR node parsing
David E. Box
david.e.box at linux.intel.com
Wed Oct 28 14:43:48 EDT 2020
Hi,
On Tue, 2020-10-27 at 11:26 +0000, Shameer Kolothum wrote:
...
> @@ -1647,6 +1667,100 @@ static void __init iort_enable_acs(struct
> acpi_iort_node *iort_node)
> #else
> static inline void iort_enable_acs(struct acpi_iort_node *iort_node)
> { }
> #endif
> +static int iort_rmr_desc_valid(struct acpi_iort_rmr_desc *desc)
> +{
> + struct iort_rmr_entry *e;
> + u64 end, start = desc->base_address, length = desc->length;
> +
> + if ((!IS_ALIGNED(start, SZ_64K)) || (length % SZ_64K != 0))
You could just do:
if ((!IS_ALIGNED(start, SZ_64K)) || (length % SZ_64K))
David
More information about the linux-arm-kernel
mailing list