···113113114114 msi-parent:115115 deprecated: true116116- $ref: /schemas/types.yaml#/definitions/phandle116116+ maxItems: 1117117 description:118118 Describes the MSI controller node handling message119119 interrupts for the MC. When there is no translation
···111111 tristate "Device Tree overlay KUnit tests" if !KUNIT_ALL_TESTS112112 depends on KUNIT113113 default KUNIT_ALL_TESTS114114- select OF_OVERLAY114114+ select DTC115115 help116116 This option builds KUnit unit tests for the device tree overlay code.117117
+15
drivers/of/of_kunit_helpers.c
···1010#include <kunit/test.h>1111#include <kunit/resource.h>12121313+#include "of_private.h"1414+1515+/**1616+ * of_root_kunit_skip() - Skip test if the root node isn't populated1717+ * @test: test to skip if the root node isn't populated1818+ */1919+void of_root_kunit_skip(struct kunit *test)2020+{2121+ if (IS_ENABLED(CONFIG_ARM64) && IS_ENABLED(CONFIG_ACPI) && !of_root)2222+ kunit_skip(test, "arm64+acpi doesn't populate a root node");2323+}2424+EXPORT_SYMBOL_GPL(of_root_kunit_skip);2525+1326#if defined(CONFIG_OF_OVERLAY) && defined(CONFIG_OF_EARLY_FLATTREE)14271528static void of_overlay_fdt_apply_kunit_exit(void *ovcs_id)···4835{4936 int ret;5037 int *copy_id;3838+3939+ of_root_kunit_skip(test);51405241 copy_id = kunit_kmalloc(test, sizeof(*copy_id), GFP_KERNEL);5342 if (!copy_id)
···7788#include <kunit/test.h>991010+#include "of_private.h"1111+1012/*1113 * Test that the root node "/" can be found by path.1214 */···38363937static int of_dtb_test_init(struct kunit *test)4038{3939+ of_root_kunit_skip(test);4140 if (!IS_ENABLED(CONFIG_OF_EARLY_FLATTREE))4241 kunit_skip(test, "requires CONFIG_OF_EARLY_FLATTREE");4342