diff mbox

integrity/security: fix digsig.c build error with header file

Message ID b3b7eebb-0e9f-f175-94a8-379c5ddcaa86@infradead.org (mailing list archive)
State New, archived
Headers show

Commit Message

Randy Dunlap Feb. 13, 2018, 1:26 a.m. UTC
From: Randy Dunlap <rdunlap@infradead.org>

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 <mpe@ellerman.id.au>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Mimi Zohar <zohar@linux.vnet.ibm.com>
Cc: linux-integrity@vger.kernel.org
Link: http://kisskb.ellerman.id.au/kisskb/head/13396/
---
 security/integrity/digsig.c |    1 +
 1 file changed, 1 insertion(+)

Comments

James Morris Feb. 23, 2018, 4:10 a.m. UTC | #1
On Mon, 12 Feb 2018, Randy Dunlap wrote:

> From: Randy Dunlap <rdunlap@infradead.org>
> 
> 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 <mpe@ellerman.id.au>
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> Cc: Mimi Zohar <zohar@linux.vnet.ibm.com>
> Cc: linux-integrity@vger.kernel.org
> 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
diff mbox

Patch

--- 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>