Skip to contentSkip to conversation

kexec, unexport kexec_load()

PATCH New Prarit Bhargava 1 participant 1 message Apr 22, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kexec, unexport kexec_load()

When compiling the kernel the following warning occurs:

/root/linux/usr/include/linux/kexec.h:50: userspace cannot reference function or variable defined in the kernel

kexec_load does not have a matching definition in the kernel. Userspace will call the syscall for kexec_load.

Cc Vivek Goyal <[email protected]>
Cc Eric Biederman <[email protected]>
---
 include/uapi/linux/kexec.h |    7 -------
 1 file changed, 7 deletions(-)
include/uapi/linux/kexec.h +0 -7
index d6629d4..2af61d0 100644
@@ -43,13 +43,6 @@ struct kexec_segment {
 	const void *mem;
 	size_t memsz;
 };
-
-/* Load a new kernel image as described by the kexec_segment array
- * consisting of passed number of segments at the entry-point address.
- * The flags allow different useage types.
- */
-extern int kexec_load(void *, size_t, struct kexec_segment *,
-		unsigned long int);
 #endif /* __KERNEL__ */
 
 #endif /* _UAPILINUX_KEXEC_H */
Signature · 7 lines
1.7.9.3


_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec