mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
74df14cd30
Add tests to exercise the actions that occur when the reference count of devicetree nodes decrement to zero and beyond. Decrementing to zero triggers freeing memory allocated for the node. This commit will expose a pr_err() issue in of_node_release(), resulting in some kernal warnings and stack traces. When scripts/dtc/of_unittest_expect processes the console messages, it will also report related problems for EXPECT messages due to the pr_err() issue: ** missing EXPECT begin : 5 Signed-off-by: Frank Rowand <frowand.list@gmail.com> Link: https://lore.kernel.org/r/20230213185702.395776-5-frowand.list@gmail.com [robh: Fix !CONFIG_OF_DYNAMIC build] Signed-off-by: Rob Herring <robh@kernel.org>
9 lines
88 B
Plaintext
9 lines
88 B
Plaintext
// SPDX-License-Identifier: GPL-2.0
|
|
|
|
/ {
|
|
testcase-data {
|
|
refcount-node {
|
|
};
|
|
};
|
|
};
|