From: Dave Jiang Date: Fri, 8 Nov 2024 16:50:07 +0000 (-0700) Subject: Merge branch 'cxl/for-6.13/dcd-prep' into cxl-for-next X-Git-Tag: v6.13-rc1~121^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a83383e2ae7c499ff7b318945d9b2fe4e3006c2c;p=thirdparty%2Fkernel%2Flinux.git Merge branch 'cxl/for-6.13/dcd-prep' into cxl-for-next Add preparation patches for coming soon DCD changes. - Add range_overlaps() - Add CDAT/DSMAS shared and read only flag in ACPICA - Add documentation to struct dev_dax_range - Delay event buffer allocation in CXL PCI - Use guard() in cxl_dpa_set_mode() - Refactor common create region code to reduce redudant code --- a83383e2ae7c499ff7b318945d9b2fe4e3006c2c diff --cc include/linux/range.h index 732c7fdbfd307,876cd5355158e..d7f98e1285d75 --- a/include/linux/range.h +++ b/include/linux/range.h @@@ -13,8 -13,8 +13,9 @@@ static inline u64 range_len(const struc return range->end - range->start + 1; } + /* True if r1 completely contains r2 */ -static inline bool range_contains(struct range *r1, struct range *r2) +static inline bool range_contains(const struct range *r1, + const struct range *r2) { return r1->start <= r2->start && r1->end >= r2->end; }