From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WccI5-0007jE-Ro for kexec@lists.infradead.org; Tue, 22 Apr 2014 15:07:25 +0000 From: Prarit Bhargava Subject: [PATCH] kexec, unexport kexec_load() Date: Tue, 22 Apr 2014 11:06:56 -0400 Message-Id: <1398179216-3155-1-git-send-email-prarit@redhat.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: kexec@lists.infradead.org Cc: Prarit Bhargava , Eric Biederman , Vivek Goyal 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. Signed-off-by: Prarit Bhargava Cc: Vivek Goyal Cc: Eric Biederman --- include/uapi/linux/kexec.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/include/uapi/linux/kexec.h b/include/uapi/linux/kexec.h index d6629d4..2af61d0 100644 --- a/include/uapi/linux/kexec.h +++ b/include/uapi/linux/kexec.h @@ -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 */ -- 1.7.9.3 _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec