aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorRae Moar <[email protected]>2025-05-16 19:06:31 +0000
committerShuah Khan <[email protected]>2025-05-19 19:22:21 +0000
commitd208025db6d657f975790bf7775cc9a3314348aa (patch)
treeaa8617f5e293897116ef76bfb51139233721145d /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parentkunit: executor: Remove const from kunit_filter_suites() allocation type (diff)
downloadkernel-d208025db6d657f975790bf7775cc9a3314348aa.tar.gz
kernel-d208025db6d657f975790bf7775cc9a3314348aa.zip
Documentation: kunit: improve example on testing static functions
The documentation on testing static functions using the KUnit macros VISIBLE_IF_KUNIT and EXPORT_SYMBOL_IF_KUNIT is lacking clarity and missing key steps in the example. This has caused bugs and confusion among developers. Improve wording of description and add missing steps to the example. This entails adding the "#include <kunit/visibility.h>" line and the "MODULE_IMPORT_NS(EXPORTED_FOR_KUNIT_TESTING);" line. Both of which were missing from the original example and key to exposing static functions. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Rae Moar <[email protected]> Reviewed-by: David Gow <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions