Bug 205773 - Documentation: kunit: error in example on usage page
Summary: Documentation: kunit: error in example on usage page
Status: NEW
Alias: None
Product: Tools
Classification: Unclassified
Component: KUnit (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Tools/KUnit virtual default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-04 22:20 UTC by Brendan Higgins
Modified: 2022-02-07 20:33 UTC (History)
1 user (show)

See Also:
Kernel Version: kselftest/test (5.4)
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Brendan Higgins 2019-12-04 22:20:16 UTC
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);
?

Note You need to log in before you can comment on or make changes to this bug.