Age | Commit message (Collapse) | Author |
|
verification/pkcs7_verify.c uses the hash_algo_name array that
is available in kernel exported names only if CRYPTO_HASH_INFO config
option enabled. Add this dependancy to avoid getting late error
on loading compat.ko module [1].
[1]
---------------------------------
[ 12.645547] compat: Unknown symbol hash_algo_name (err 0)
---------------------------------
Related-to: ELB-2388
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
backports-4.18.c uses ktime_divns() function.
As ktime_divns() is not exported in kernel < 3.19, this symbol
will not be resolved on compat.ko loading.
This fixes the linking issue [1].
[1]
-------------------------------
WARNING: "ktime_divns" [compat/compat.ko] undefined!
-------------------------------
Related-to: ELB-2388
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
There are IS_ERR and PTR_ERR macros excplicitly use in the file
x509_public_key.c. If nobody includes <linux/err.h> before compiling this file,
one have got the comillation error [1].
Include <linux/err.h> directly fixes this issue.
[1]
---------------------------------------
compat/verification/x509_public_key.c: In function ‘x509_get_sig_params’:
compat/verification/x509_public_key.c:52:6: error: implicit declaration of function ‘IS_ERR’; did you mean ‘HW_ERR’? [-Werror=implicit-function-declaration]
52 | if (IS_ERR(tfm)) {
| ^~~~~~
| HW_ERR
compat/verification/x509_public_key.c:53:7: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration]
53 | if (PTR_ERR(tfm) == -ENOENT) {
| ^~~~~~~
cc1: some warnings being treated as errors
make[6]: *** [scripts/Makefile.build:308: compat/verification/x509_public_key.o] Error 1
---------------------------------------
Related-to: ELB-2388
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|
|
Backports generated by toradex backports f6e8852f1ef28e6d3c9bae8400eb6a87a6b0c3e7
against mainline kernel tag v5.4.27
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
|