2018-02-13 01:27:53

by Randy Dunlap

[permalink] [raw]
Subject: [PATCH] integrity/security: fix digsig.c build error with header file

From: Randy Dunlap <[email protected]>

security/integrity/digsig.c has build errors on some $ARCH due to a
missing header file, so add it.

security/integrity/digsig.c:146:2: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]

Reported-by: Michael Ellerman <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Cc: Mimi Zohar <[email protected]>
Cc: [email protected]
Link: http://kisskb.ellerman.id.au/kisskb/head/13396/
---
security/integrity/digsig.c | 1 +
1 file changed, 1 insertion(+)

--- lnx-416-rc1.orig/security/integrity/digsig.c
+++ lnx-416-rc1/security/integrity/digsig.c
@@ -18,6 +18,7 @@
#include <linux/cred.h>
#include <linux/key-type.h>
#include <linux/digsig.h>
+#include <linux/vmalloc.h>
#include <crypto/public_key.h>
#include <keys/system_keyring.h>





2018-02-23 04:11:33

by James Morris

[permalink] [raw]
Subject: Re: [PATCH] integrity/security: fix digsig.c build error with header file

On Mon, 12 Feb 2018, Randy Dunlap wrote:

> From: Randy Dunlap <[email protected]>
>
> security/integrity/digsig.c has build errors on some $ARCH due to a
> missing header file, so add it.
>
> security/integrity/digsig.c:146:2: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
>
> Reported-by: Michael Ellerman <[email protected]>
> Signed-off-by: Randy Dunlap <[email protected]>
> Cc: Mimi Zohar <[email protected]>
> Cc: [email protected]
> Link: http://kisskb.ellerman.id.au/kisskb/head/13396/
> ---
> security/integrity/digsig.c | 1 +
> 1 file changed, 1 insertion(+)

Applied to
git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git fixes-v4.16-rc3




--
James Morris
<[email protected]>