WSL2-Linux-Kernel/drivers/of
Mike Rapoport 6072cf567a of: ignore sub-page memory regions
Memory region size is rounded down to page boundary and with sub-page
region it becomes 0 and there is no point to add an empty region.
Moreover, when the base is less than PAGE_SIZE we get a bogus size as
(base + size - 1) evaluates to -1.

8cccffc526 ("of: check for size < 0 after rounding in
early_init_dt_add_memory_arch") introduced a test for wrap around for the
case when base is not page aligned, the same test can be used to ignore
sub-page region sizes.

Link: http://lkml.kernel.org/r/1533326330-31677-3-git-send-email-rppt@linux.vnet.ibm.com
Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Cc: Guan Xuetao <gxt@pku.edu.cn>
Cc: Ley Foon Tan <ley.foon.tan@intel.com>
Cc: Richard Kuo <rkuo@codeaurora.org>
Cc: Richard Weinberger <richard@nod.at>
Cc: Michal Hocko <mhocko@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-10-26 16:25:20 -07:00
..
unittest-data
Kconfig
Makefile
address.c drivers/of: Make of_io_request_and_map() "name" argument optional 2018-07-10 08:08:57 -06:00
base.c of: fix phandle cache creation for DTs with no phandles 2018-09-11 11:28:40 -05:00
device.c dma-mapping: remove dma_deconfigure 2018-09-08 11:19:28 +02:00
dynamic.c
fdt.c of: ignore sub-page memory regions 2018-10-26 16:25:20 -07:00
fdt_address.c
irq.c
kobj.c
of_mdio.c of: mdio: Support fixed links in of_phy_get_and_connect() 2018-07-13 18:25:14 -07:00
of_net.c
of_numa.c
of_private.h of: overlay: update phandle cache on overlay apply and remove 2018-07-16 08:41:32 -06:00
of_reserved_mem.c
overlay.c of: overlay: update phandle cache on overlay apply and remove 2018-07-16 08:41:32 -06:00
pdt.c
platform.c of/platform: initialise AMBA default DMA masks 2018-09-02 10:04:31 +02:00
property.c
resolver.c of: overlay: validate offset from property fixups 2018-05-23 15:07:43 -05:00
unittest.c of: unittest: Disable interrupt node tests for old world MAC systems 2018-10-10 06:43:37 -05:00