Hi Peter, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on tip/sched/core] [also build test ERROR on tip/master] [cannot apply to kselftest/next linus/master v5.13-rc2 next-20210521] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch] url: https://github.com/0day-ci/linux/commits/Peter-Oskolkov/UMCG-early-preview-RFC-patchset/20210522-232442 base: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 1699949d3314e5d1956fb082e4cd4798bf6149fc config: um-randconfig-p001-20210522 (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://github.com/0day-ci/linux/commit/634e0c0b3bf5d6ede3674f9c754202b1a521ab89 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Peter-Oskolkov/UMCG-early-preview-RFC-patchset/20210522-232442 git checkout 634e0c0b3bf5d6ede3674f9c754202b1a521ab89 # save the attached .config to linux build tree make W=1 ARCH=um If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): In file included from init/main.c:21: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ init/main.c:764:20: warning: no previous prototype for 'arch_post_acpi_subsys_init' [-Wmissing-prototypes] 764 | void __init __weak arch_post_acpi_subsys_init(void) { } | ^~~~~~~~~~~~~~~~~~~~~~~~~~ init/main.c:776:20: warning: no previous prototype for 'mem_encrypt_init' [-Wmissing-prototypes] 776 | void __init __weak mem_encrypt_init(void) { } | ^~~~~~~~~~~~~~~~ init/main.c:778:20: warning: no previous prototype for 'poking_init' [-Wmissing-prototypes] 778 | void __init __weak poking_init(void) { } | ^~~~~~~~~~~ -- In file included from init/do_mounts.h:5, from init/do_mounts.c:29: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ -- In file included from arch/um/kernel/syscall.c:11: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ arch/um/kernel/syscall.c:17:6: warning: no previous prototype for 'old_mmap' [-Wmissing-prototypes] 17 | long old_mmap(unsigned long addr, unsigned long len, | ^~~~~~~~ -- In file included from arch/x86/um/tls_32.c:8: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ arch/x86/um/tls_32.c:23:5: warning: no previous prototype for 'do_set_thread_area' [-Wmissing-prototypes] 23 | int do_set_thread_area(struct user_desc *info) | ^~~~~~~~~~~~~~~~~~ arch/x86/um/tls_32.c:39:5: warning: no previous prototype for 'do_get_thread_area' [-Wmissing-prototypes] 39 | int do_get_thread_area(struct user_desc *info) | ^~~~~~~~~~~~~~~~~~ arch/x86/um/tls_32.c:187:5: warning: no previous prototype for 'arch_switch_tls' [-Wmissing-prototypes] 187 | int arch_switch_tls(struct task_struct *to) | ^~~~~~~~~~~~~~~ -- In file included from kernel/fork.c:54: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ kernel/fork.c:162:13: warning: no previous prototype for 'arch_release_task_struct' [-Wmissing-prototypes] 162 | void __weak arch_release_task_struct(struct task_struct *tsk) | ^~~~~~~~~~~~~~~~~~~~~~~~ kernel/fork.c:752:20: warning: no previous prototype for 'arch_task_cache_init' [-Wmissing-prototypes] 752 | void __init __weak arch_task_cache_init(void) { } | ^~~~~~~~~~~~~~~~~~~~ kernel/fork.c:842:12: warning: no previous prototype for 'arch_dup_task_struct' [-Wmissing-prototypes] 842 | int __weak arch_dup_task_struct(struct task_struct *dst, | ^~~~~~~~~~~~~~~~~~~~ -- In file included from kernel/exit.c:42: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ kernel/exit.c:1811:13: warning: no previous prototype for 'abort' [-Wmissing-prototypes] 1811 | __weak void abort(void) | ^~~~~ -- In file included from fs/d_path.c:2: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ fs/d_path.c:315:7: warning: no previous prototype for 'simple_dname' [-Wmissing-prototypes] 315 | char *simple_dname(struct dentry *dentry, char *buffer, int buflen) | ^~~~~~~~~~~~ -- In file included from drivers/char/random.c:335: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ drivers/char/random.c:2272:6: warning: no previous prototype for 'add_hwgenerator_randomness' [-Wmissing-prototypes] 2272 | void add_hwgenerator_randomness(const char *buffer, size_t count, | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from net/socket.c:78: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ net/socket.c: In function '__sys_getsockopt': net/socket.c:2143:6: warning: variable 'max_optlen' set but not used [-Wunused-but-set-variable] 2143 | int max_optlen; | ^~~~~~~~~~ -- In file included from kernel/printk/printk.c:36: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ kernel/printk/printk.c:175:5: warning: no previous prototype for 'devkmsg_sysctl_set_loglvl' [-Wmissing-prototypes] 175 | int devkmsg_sysctl_set_loglvl(struct ctl_table *table, int write, | ^~~~~~~~~~~~~~~~~~~~~~~~~ -- In file included from kernel/sched/sched.h:67, from kernel/sched/core.c:13: >> include/linux/syscalls.h:1062:57: error: unknown type name 'flags' 1062 | asmlinkage long umcg_create_group(u32 api_version, u64, flags); | ^~~~~ kernel/sched/core.c: In function 'ttwu_stat': kernel/sched/core.c:3274:13: warning: variable 'rq' set but not used [-Wunused-but-set-variable] 3274 | struct rq *rq; | ^~ .. Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for LOCKDEP Depends on DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT && (FRAME_POINTER || MIPS || PPC || S390 || MICROBLAZE || ARM || ARC || X86) Selected by - DEBUG_LOCK_ALLOC && DEBUG_KERNEL && LOCK_DEBUGGING_SUPPORT vim +/flags +1062 include/linux/syscalls.h 903 904 /* mm/, CONFIG_MMU only */ 905 asmlinkage long sys_swapon(const char __user *specialfile, int swap_flags); 906 asmlinkage long sys_swapoff(const char __user *specialfile); 907 asmlinkage long sys_mprotect(unsigned long start, size_t len, 908 unsigned long prot); 909 asmlinkage long sys_msync(unsigned long start, size_t len, int flags); 910 asmlinkage long sys_mlock(unsigned long start, size_t len); 911 asmlinkage long sys_munlock(unsigned long start, size_t len); 912 asmlinkage long sys_mlockall(int flags); 913 asmlinkage long sys_munlockall(void); 914 asmlinkage long sys_mincore(unsigned long start, size_t len, 915 unsigned char __user * vec); 916 asmlinkage long sys_madvise(unsigned long start, size_t len, int behavior); 917 asmlinkage long sys_process_madvise(int pidfd, const struct iovec __user *vec, 918 size_t vlen, int behavior, unsigned int flags); 919 asmlinkage long sys_remap_file_pages(unsigned long start, unsigned long size, 920 unsigned long prot, unsigned long pgoff, 921 unsigned long flags); 922 asmlinkage long sys_mbind(unsigned long start, unsigned long len, 923 unsigned long mode, 924 const unsigned long __user *nmask, 925 unsigned long maxnode, 926 unsigned flags); 927 asmlinkage long sys_get_mempolicy(int __user *policy, 928 unsigned long __user *nmask, 929 unsigned long maxnode, 930 unsigned long addr, unsigned long flags); 931 asmlinkage long sys_set_mempolicy(int mode, const unsigned long __user *nmask, 932 unsigned long maxnode); 933 asmlinkage long sys_migrate_pages(pid_t pid, unsigned long maxnode, 934 const unsigned long __user *from, 935 const unsigned long __user *to); 936 asmlinkage long sys_move_pages(pid_t pid, unsigned long nr_pages, 937 const void __user * __user *pages, 938 const int __user *nodes, 939 int __user *status, 940 int flags); 941 942 asmlinkage long sys_rt_tgsigqueueinfo(pid_t tgid, pid_t pid, int sig, 943 siginfo_t __user *uinfo); 944 asmlinkage long sys_perf_event_open( 945 struct perf_event_attr __user *attr_uptr, 946 pid_t pid, int cpu, int group_fd, unsigned long flags); 947 asmlinkage long sys_accept4(int, struct sockaddr __user *, int __user *, int); 948 asmlinkage long sys_recvmmsg(int fd, struct mmsghdr __user *msg, 949 unsigned int vlen, unsigned flags, 950 struct __kernel_timespec __user *timeout); 951 asmlinkage long sys_recvmmsg_time32(int fd, struct mmsghdr __user *msg, 952 unsigned int vlen, unsigned flags, 953 struct old_timespec32 __user *timeout); 954 955 asmlinkage long sys_wait4(pid_t pid, int __user *stat_addr, 956 int options, struct rusage __user *ru); 957 asmlinkage long sys_prlimit64(pid_t pid, unsigned int resource, 958 const struct rlimit64 __user *new_rlim, 959 struct rlimit64 __user *old_rlim); 960 asmlinkage long sys_fanotify_init(unsigned int flags, unsigned int event_f_flags); 961 asmlinkage long sys_fanotify_mark(int fanotify_fd, unsigned int flags, 962 u64 mask, int fd, 963 const char __user *pathname); 964 asmlinkage long sys_name_to_handle_at(int dfd, const char __user *name, 965 struct file_handle __user *handle, 966 int __user *mnt_id, int flag); 967 asmlinkage long sys_open_by_handle_at(int mountdirfd, 968 struct file_handle __user *handle, 969 int flags); 970 asmlinkage long sys_clock_adjtime(clockid_t which_clock, 971 struct __kernel_timex __user *tx); 972 asmlinkage long sys_clock_adjtime32(clockid_t which_clock, 973 struct old_timex32 __user *tx); 974 asmlinkage long sys_syncfs(int fd); 975 asmlinkage long sys_setns(int fd, int nstype); 976 asmlinkage long sys_pidfd_open(pid_t pid, unsigned int flags); 977 asmlinkage long sys_sendmmsg(int fd, struct mmsghdr __user *msg, 978 unsigned int vlen, unsigned flags); 979 asmlinkage long sys_process_vm_readv(pid_t pid, 980 const struct iovec __user *lvec, 981 unsigned long liovcnt, 982 const struct iovec __user *rvec, 983 unsigned long riovcnt, 984 unsigned long flags); 985 asmlinkage long sys_process_vm_writev(pid_t pid, 986 const struct iovec __user *lvec, 987 unsigned long liovcnt, 988 const struct iovec __user *rvec, 989 unsigned long riovcnt, 990 unsigned long flags); 991 asmlinkage long sys_kcmp(pid_t pid1, pid_t pid2, int type, 992 unsigned long idx1, unsigned long idx2); 993 asmlinkage long sys_finit_module(int fd, const char __user *uargs, int flags); 994 asmlinkage long sys_sched_setattr(pid_t pid, 995 struct sched_attr __user *attr, 996 unsigned int flags); 997 asmlinkage long sys_sched_getattr(pid_t pid, 998 struct sched_attr __user *attr, 999 unsigned int size, 1000 unsigned int flags); 1001 asmlinkage long sys_renameat2(int olddfd, const char __user *oldname, 1002 int newdfd, const char __user *newname, 1003 unsigned int flags); 1004 asmlinkage long sys_seccomp(unsigned int op, unsigned int flags, 1005 void __user *uargs); 1006 asmlinkage long sys_getrandom(char __user *buf, size_t count, 1007 unsigned int flags); 1008 asmlinkage long sys_memfd_create(const char __user *uname_ptr, unsigned int flags); 1009 asmlinkage long sys_bpf(int cmd, union bpf_attr *attr, unsigned int size); 1010 asmlinkage long sys_execveat(int dfd, const char __user *filename, 1011 const char __user *const __user *argv, 1012 const char __user *const __user *envp, int flags); 1013 asmlinkage long sys_userfaultfd(int flags); 1014 asmlinkage long sys_membarrier(int cmd, unsigned int flags, int cpu_id); 1015 asmlinkage long sys_mlock2(unsigned long start, size_t len, int flags); 1016 asmlinkage long sys_copy_file_range(int fd_in, loff_t __user *off_in, 1017 int fd_out, loff_t __user *off_out, 1018 size_t len, unsigned int flags); 1019 asmlinkage long sys_preadv2(unsigned long fd, const struct iovec __user *vec, 1020 unsigned long vlen, unsigned long pos_l, unsigned long pos_h, 1021 rwf_t flags); 1022 asmlinkage long sys_pwritev2(unsigned long fd, const struct iovec __user *vec, 1023 unsigned long vlen, unsigned long pos_l, unsigned long pos_h, 1024 rwf_t flags); 1025 asmlinkage long sys_pkey_mprotect(unsigned long start, size_t len, 1026 unsigned long prot, int pkey); 1027 asmlinkage long sys_pkey_alloc(unsigned long flags, unsigned long init_val); 1028 asmlinkage long sys_pkey_free(int pkey); 1029 asmlinkage long sys_statx(int dfd, const char __user *path, unsigned flags, 1030 unsigned mask, struct statx __user *buffer); 1031 asmlinkage long sys_rseq(struct rseq __user *rseq, uint32_t rseq_len, 1032 int flags, uint32_t sig); 1033 asmlinkage long sys_open_tree(int dfd, const char __user *path, unsigned flags); 1034 asmlinkage long sys_move_mount(int from_dfd, const char __user *from_path, 1035 int to_dfd, const char __user *to_path, 1036 unsigned int ms_flags); 1037 asmlinkage long sys_mount_setattr(int dfd, const char __user *path, 1038 unsigned int flags, 1039 struct mount_attr __user *uattr, size_t usize); 1040 asmlinkage long sys_fsopen(const char __user *fs_name, unsigned int flags); 1041 asmlinkage long sys_fsconfig(int fs_fd, unsigned int cmd, const char __user *key, 1042 const void __user *value, int aux); 1043 asmlinkage long sys_fsmount(int fs_fd, unsigned int flags, unsigned int ms_flags); 1044 asmlinkage long sys_fspick(int dfd, const char __user *path, unsigned int flags); 1045 asmlinkage long sys_pidfd_send_signal(int pidfd, int sig, 1046 siginfo_t __user *info, 1047 unsigned int flags); 1048 asmlinkage long sys_pidfd_getfd(int pidfd, int fd, unsigned int flags); 1049 asmlinkage long sys_landlock_create_ruleset(const struct landlock_ruleset_attr __user *attr, 1050 size_t size, __u32 flags); 1051 asmlinkage long sys_landlock_add_rule(int ruleset_fd, enum landlock_rule_type rule_type, 1052 const void __user *rule_attr, __u32 flags); 1053 asmlinkage long sys_landlock_restrict_self(int ruleset_fd, __u32 flags); 1054 asmlinkage long umcg_api_version(u32 api_version, u32 flags); 1055 asmlinkage long umcg_register_task(u32 api_version, u32 flags, u32 group_id, 1056 struct umcg_task __user *umcg_task); 1057 asmlinkage long umcg_unregister_task(u32 flags); 1058 asmlinkage long umcg_wait(u32 flags, const struct __kernel_timespec __user *timeout); 1059 asmlinkage long umcg_wake(u32 flags, u32 next_tid); 1060 asmlinkage long umcg_swap(u32 wake_flags, u32 next_tid, u32 wait_flags, 1061 const struct __kernel_timespec __user *timeout); > 1062 asmlinkage long umcg_create_group(u32 api_version, u64, flags); 1063 asmlinkage long umcg_destroy_group(u32 group_id); 1064 asmlinkage long umcg_poll_worker(u32 flags, struct umcg_task __user **ut); 1065 asmlinkage long umcg_run_worker(u32 flags, u32 worker_tid, 1066 struct umcg_task __user **ut); 1067 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org