Message ID | 20210220184748.30647-1-rdunlap@infradead.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [v4] arm: OABI compat: fix build when EPOLL is not enabled | expand |
On Sat, Feb 20, 2021 at 10:47:48AM -0800, Randy Dunlap wrote: > --- > KernelVersion: v5.11 > I don't know what format is used for KernelVersion. > This patch applies to any Linux kernel v5.x and probably even older. I normally ask for it to be the kernel version (without git) that the patch was generated against, so if there's problems applying it, I can try a bit harder to apply it (such as checking out that version and applying it there, and then merging the result.) It's original purpose was when I was maintaining the 2.4 and 2.5/2.6 kernel trees at the same time - it was critical to know which tree people wanted their patch applied to. Note that the patch system email parser can cope with the tag appearing almost anywhere in the email - either the message header or the body of the email, except intermingling with the patch itself.
--- linux-next-20201214.orig/arch/arm/kernel/sys_oabi-compat.c +++ linux-next-20201214/arch/arm/kernel/sys_oabi-compat.c @@ -248,6 +248,7 @@ struct oabi_epoll_event { __u64 data; } __attribute__ ((packed,aligned(4))); +#ifdef CONFIG_EPOLL asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, struct oabi_epoll_event __user *event) { @@ -298,6 +299,20 @@ asmlinkage long sys_oabi_epoll_wait(int kfree(kbuf); return err ? -EFAULT : ret; } +#else +asmlinkage long sys_oabi_epoll_ctl(int epfd, int op, int fd, + struct oabi_epoll_event __user *event) +{ + return -EINVAL; +} + +asmlinkage long sys_oabi_epoll_wait(int epfd, + struct oabi_epoll_event __user *events, + int maxevents, int timeout) +{ + return -EINVAL; +} +#endif struct oabi_sembuf { unsigned short sem_num;