diff options
| author | Marcos Paulo de Souza <mpdesouza@suse.com> | 2026-05-04 15:34:45 -0300 |
|---|---|---|
| committer | Petr Mladek <pmladek@suse.com> | 2026-05-06 14:09:33 +0200 |
| commit | e6b71aefaec5bcc683c242486ec410c53ec37793 (patch) | |
| tree | d6410a583a615bab4b22f45d5bdcc7cf4bcae846 /drivers/phy/eswin/git@git.tavy.me:linux.git | |
| parent | cdc1848ba0d1dbb08110964f9d214639eda03ce5 (diff) | |
selftests: livepatch: Check if patched sysfs attribute exists
The commit bb26cfd9e77e
("livepatch: add sysfs entry "patched" for each klp_object") was merged
in v6.1, introducing a new sysfs attribute.
In order to run the selftests on older kernels, check if given kernel
has support for the attribute. If the attribute is not supported, skip
the checks.
Along with this change, use MOD_LIVEPATCH2 variable instead of
reassigning a new value to MOD_LIVEPATCH, and also use the variable
names in the check_result, to avoid using the module names.
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://patch.msgid.link/20260504-lp-tests-old-fixes-v5-4-0be26d94ab9a@suse.com
Signed-off-by: Petr Mladek <pmladek@suse.com>
Diffstat (limited to 'drivers/phy/eswin/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
