diff mbox

backports: include linux/err.h in key.c

Message ID 20180119080215.GA102758@aremote07.aus.cypress.com (mailing list archive)
State Accepted
Headers show

Commit Message

Chi-Hsien Lin Jan. 19, 2018, 8:02 a.m. UTC
From: Winnie Chang <winnie.chang@cypress.com>

Function IS_ERR, PTR_ERR and ERR_PTR are not found. Need to include
linux/err.h to fix compiling errors.

Signed-off-by: Winnie Chang <winnie.chang@cypress.com>
Signed-off-by: Chi-hsien Lin <chi-hsien.lin@cypress.com>
---
 backport/compat/verification/key.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Johannes Berg Jan. 31, 2018, 11:35 a.m. UTC | #1
On Fri, 2018-01-19 at 02:02 -0600, Chi-Hsien Lin wrote:
> From: Winnie Chang <winnie.chang@cypress.com>
> 
> Function IS_ERR, PTR_ERR and ERR_PTR are not found. Need to include
> linux/err.h to fix compiling errors.
> 
Applied, thanks. Sorry for the delay.

johannes

--
To unsubscribe from this list: send the line "unsubscribe backports" in
diff mbox

Patch

diff --git a/backport/compat/verification/key.c b/backport/compat/verification/key.c
index 3a3c9bc..329f8b2 100644
--- a/backport/compat/verification/key.c
+++ b/backport/compat/verification/key.c
@@ -1,6 +1,7 @@ 
 #include <linux/export.h>
 #include <linux/slab.h>
 #include <linux/key.h>
+#include <linux/err.h>
 #include <keys/asymmetric-type.h>
 #include "x509_parser.h"