hulk inclusion category: bugfix bugzilla: https://atomgit.com/src-openeuler/kernel/issues/784 -------------------------------- Move the userfaultfd_ctx structure to the header file. Since this new structure is introduced into the userfaultfd_k.h header file, it changes the kernel Application Binary Interface (kABI) of some exported interfaces that reference this header. To avoid this issue, use the GENKSYMS macro to handle it. Fixes: f91e6b41dd11 ("userfaultfd: move userfaultfd_ctx struct to header file.") Signed-off-by: Ze Zuo <zuoze1@huawei.com> --- include/linux/userfaultfd_k.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/userfaultfd_k.h b/include/linux/userfaultfd_k.h index 791af86a89cc..a9aaf07bc44f 100644 --- a/include/linux/userfaultfd_k.h +++ b/include/linux/userfaultfd_k.h @@ -50,6 +50,7 @@ * since fd_wqh.lock is taken by aio_poll() while it's holding a lock that's * also taken in IRQ context. */ +#ifndef __GENKSYMS__ struct userfaultfd_ctx { /* waitqueue head for the pending (i.e. not read) userfaults */ wait_queue_head_t fault_pending_wqh; @@ -74,6 +75,7 @@ struct userfaultfd_ctx { /* mm with one ore more vmas attached to this userfaultfd_ctx */ struct mm_struct *mm; }; +#endif extern vm_fault_t handle_userfault(struct vm_fault *vmf, unsigned long reason); -- 2.25.1