"make headers_check" identifies unusable userspace code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$ make headers_check
...
/home/rpjday/k/git/usr/include/linux/kexec.h:49: userspace cannot
reference function or variable defined in the kernel
...

  sure enough, here's that part of the exported kexec.h header file:

#ifndef __KERNEL__
/*
 * This structure is used to hold the arguments that are used when
 * loading  kernel binaries.
 */
struct kexec_segment {
        const void *buf;
        size_t bufsz;
        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__ */

  seems pretty clear that there's no point exporting the declaration
of kexec_load() to user space, correct?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================



[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux