summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-04-08 14:53:27 +0300
committerOleksandr Suvorov <oleksandr.suvorov@toradex.com>2020-04-08 14:53:27 +0300
commitf2ce99148805611308bb7cba42139b0e4cd6c8ef (patch)
tree34c0169fe2de7bdfe8ed73924219cd308dde5969
parent9056e7b72fc58c4a0b3e84113d029237d9855739 (diff)
compat: verification: fix building error
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>
-rw-r--r--compat/verification/x509_public_key.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/compat/verification/x509_public_key.c b/compat/verification/x509_public_key.c
index 858e2ee..7a72622 100644
--- a/compat/verification/x509_public_key.c
+++ b/compat/verification/x509_public_key.c
@@ -6,6 +6,7 @@
*/
#define pr_fmt(fmt) "X.509: "fmt
+#include <linux/err.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>