Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Build issue with kernel 5.4 #25

@Mantra84

Description

@Mantra84

Hello,

While compiling kernel 5.4.125 with the latest KTF version (SHA-1 63c19de), I got the nla_strscpy implicit declaration error.

This issue should have been solved with the lines in ktf_compat.h (line 56):

#if (KERNEL_VERSION(5, 11, 0) > LINUX_VERSION_CODE)
#define nla_strscpy nla_strlcpy
#endif

But it seems that this branch is not entered.

I think the issue come form the first condition in ktf_compat.h (line 1):

#if (KERNEL_VERSION(5, 2, 0) > LINUX_VERSION_CODE)

Maybe this line should be change to:

--- a/kernel/ktf_compat.h
+++ b/kernel/ktf_compat.h
@@ -1,4 +1,4 @@
-#if (KERNEL_VERSION(5, 2, 0) > LINUX_VERSION_CODE)
+#if (KERNEL_VERSION(5, 11, 0) > LINUX_VERSION_CODE)

What do you think about it ?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions