compile fix

kernel/modsign_uefi.c: In function ‘get_cert_list’:
kernel/modsign_uefi.c:23:2: error: implicit declaration of function ‘kmalloc’ [-Werror=implicit-function-declaration]
  db = kmalloc(lsize, GFP_KERNEL);
  ^
kernel/modsign_uefi.c:23:5: warning: assignment makes pointer from integer without a cast [enabled by default]
  db = kmalloc(lsize, GFP_KERNEL);
     ^
kernel/modsign_uefi.c:31:3: error: implicit declaration of function ‘kfree’ [-Werror=implicit-function-declaration]
   kfree(db);
   ^
This commit is contained in:
Dave Jones 2013-07-17 18:31:23 -04:00
parent 2d803e76c3
commit 96e94ca9a0
1 changed files with 2 additions and 1 deletions

View File

@ -713,12 +713,13 @@ new file mode 100644
index 0000000..b9237d7
--- /dev/null
+++ b/kernel/modsign_uefi.c
@@ -0,0 +1,90 @@
@@ -0,0 +1,91 @@
+#include <linux/kernel.h>
+#include <linux/sched.h>
+#include <linux/cred.h>
+#include <linux/err.h>
+#include <linux/efi.h>
+#include <linux/slab.h>
+#include <keys/asymmetric-type.h>
+#include "module-internal.h"
+