aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/dev-tools/kunit/usage.rst
diff options
context:
space:
mode:
authorAkira Kawata <akirakawata1@gmail.com>2022-02-07 20:20:44 +0900
committerShuah Khan <skhan@linuxfoundation.org>2022-02-08 13:16:20 -0700
commit92a68053c3468705e2c7c752c9a3f256304a35a6 (patch)
treebfba9b387e1c57fd74110b2e89871ef37f99b9ba /Documentation/dev-tools/kunit/usage.rst
parentkunit: fix missing f in f-string in run_checks.py (diff)
downloadlinux-dev-92a68053c3468705e2c7c752c9a3f256304a35a6.tar.xz
linux-dev-92a68053c3468705e2c7c752c9a3f256304a35a6.zip
Documentation: KUnit: Fix usage bug
Fix a bug of kunit documentation. Link: https://bugzilla.kernel.org/show_bug.cgi?id=205773 : Quoting Steve Pfetsch: : : kunit documentation is incorrect: : https://kunit.dev/third_party/stable_kernel/docs/usage.html : struct rectangle *self = container_of(this, struct shape, parent); : : : Shouldn't it be: : struct rectangle *self = container_of(this, struct rectangle, parent); : ? Signed-off-by: Akira Kawata <akirakawata1@gmail.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to '')
-rw-r--r--Documentation/dev-tools/kunit/usage.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/dev-tools/kunit/usage.rst b/Documentation/dev-tools/kunit/usage.rst
index 76af931a332c..1c83e7d60a8a 100644
--- a/Documentation/dev-tools/kunit/usage.rst
+++ b/Documentation/dev-tools/kunit/usage.rst
@@ -242,7 +242,7 @@ example:
int rectangle_area(struct shape *this)
{
- struct rectangle *self = container_of(this, struct shape, parent);
+ struct rectangle *self = container_of(this, struct rectangle, parent);
return self->length * self->width;
};