Hi Peter, [FYI, it's a private test report for your RFC patch.] [auto build test WARNING on tip/sched/core] [also build test WARNING 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: riscv-randconfig-r031-20210523 (attached as .config) compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project e84a9b9bb3051c35dea993cdad7b3d2575638f85) reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # install riscv cross compiling tool for clang build # apt-get install binutils-riscv64-linux-gnu # 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 COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from arch/riscv/kernel/signal.c:11: >> include/linux/syscalls.h:1062:57: warning: declaration specifier missing, defaulting to 'int' asmlinkage long umcg_create_group(u32 api_version, u64, flags); ^ int arch/riscv/kernel/signal.c:309:27: warning: no previous prototype for function 'do_notify_resume' [-Wmissing-prototypes] asmlinkage __visible void do_notify_resume(struct pt_regs *regs, ^ arch/riscv/kernel/signal.c:309:22: note: declare 'static' if the function is not intended to be used outside of this translation unit asmlinkage __visible void do_notify_resume(struct pt_regs *regs, ^ static 2 warnings generated. -- In file included from arch/riscv/kernel/syscall_table.c:8: >> include/linux/syscalls.h:1062:57: warning: declaration specifier missing, defaulting to 'int' asmlinkage long umcg_create_group(u32 api_version, u64, flags); ^ int In file included from arch/riscv/kernel/syscall_table.c:18: In file included from arch/riscv/include/asm/unistd.h:13: In file included from arch/riscv/include/uapi/asm/unistd.h:24: include/uapi/asm-generic/unistd.h:877:34: error: use of undeclared identifier 'sys_umcg_api_version'; did you mean 'umcg_api_version'? __SYSCALL(__NR_umcg_api_version, sys_umcg_api_version) ^~~~~~~~~~~~~~~~~~~~ umcg_api_version arch/riscv/kernel/syscall_table.c:14:37: note: expanded from macro '__SYSCALL' #define __SYSCALL(nr, call) [nr] = (call), ^ include/linux/syscalls.h:1054:17: note: 'umcg_api_version' declared here asmlinkage long umcg_api_version(u32 api_version, u32 flags); ^ In file included from arch/riscv/kernel/syscall_table.c:18: In file included from arch/riscv/include/asm/unistd.h:13: In file included from arch/riscv/include/uapi/asm/unistd.h:24: include/uapi/asm-generic/unistd.h:879:36: error: use of undeclared identifier 'sys_umcg_register_task'; did you mean 'umcg_register_task'? __SYSCALL(__NR_umcg_register_task, sys_umcg_register_task) ^~~~~~~~~~~~~~~~~~~~~~ umcg_register_task arch/riscv/kernel/syscall_table.c:14:37: note: expanded from macro '__SYSCALL' #define __SYSCALL(nr, call) [nr] = (call), ^ include/linux/syscalls.h:1055:17: note: 'umcg_register_task' declared here asmlinkage long umcg_register_task(u32 api_version, u32 flags, u32 group_id, ^ In file included from arch/riscv/kernel/syscall_table.c:18: In file included from arch/riscv/include/asm/unistd.h:13: In file included from arch/riscv/include/uapi/asm/unistd.h:24: include/uapi/asm-generic/unistd.h:881:38: error: use of undeclared identifier 'sys_umcg_unregister_task'; did you mean 'umcg_unregister_task'? __SYSCALL(__NR_umcg_unregister_task, sys_umcg_unregister_task) ^~~~~~~~~~~~~~~~~~~~~~~~ umcg_unregister_task arch/riscv/kernel/syscall_table.c:14:37: note: expanded from macro '__SYSCALL' #define __SYSCALL(nr, call) [nr] = (call), ^ include/linux/syscalls.h:1057:17: note: 'umcg_unregister_task' declared here asmlinkage long umcg_unregister_task(u32 flags); ^ In file included from arch/riscv/kernel/syscall_table.c:18: In file included from arch/riscv/include/asm/unistd.h:13: In file included from arch/riscv/include/uapi/asm/unistd.h:24: include/uapi/asm-generic/unistd.h:883:27: error: use of undeclared identifier 'sys_umcg_wait'; did you mean 'umcg_wait'? __SYSCALL(__NR_umcg_wait, sys_umcg_wait) ^~~~~~~~~~~~~ umcg_wait arch/riscv/kernel/syscall_table.c:14:37: note: expanded from macro '__SYSCALL' #define __SYSCALL(nr, call) [nr] = (call), ^ include/linux/syscalls.h:1058:17: note: 'umcg_wait' declared here asmlinkage long umcg_wait(u32 flags, const struct __kernel_timespec __user *timeout); ^ In file included from arch/riscv/kernel/syscall_table.c:18: In file included from arch/riscv/include/asm/unistd.h:13: In file included from arch/riscv/include/uapi/asm/unistd.h:24: include/uapi/asm-generic/unistd.h:885:27: error: use of undeclared identifier 'sys_umcg_wake'; did you mean 'umcg_wake'? __SYSCALL(__NR_umcg_wake, sys_umcg_wake) ^~~~~~~~~~~~~ umcg_wake arch/riscv/kernel/syscall_table.c:14:37: note: expanded from macro '__SYSCALL' #define __SYSCALL(nr, call) [nr] = (call), ^ include/linux/syscalls.h:1059:17: note: 'umcg_wake' declared here asmlinkage long umcg_wake(u32 flags, u32 next_tid); ^ In file included from arch/riscv/kernel/syscall_table.c:18: In file included from arch/riscv/include/asm/unistd.h:13: In file included from arch/riscv/include/uapi/asm/unistd.h:24: include/uapi/asm-generic/unistd.h:887:27: error: use of undeclared identifier 'sys_umcg_swap'; did you mean 'umcg_swap'? __SYSCALL(__NR_umcg_swap, sys_umcg_swap) ^~~~~~~~~~~~~ umcg_swap arch/riscv/kernel/syscall_table.c:14:37: note: expanded from macro '__SYSCALL' #define __SYSCALL(nr, call) [nr] = (call), ^ include/linux/syscalls.h:1060:17: note: 'umcg_swap' declared here asmlinkage long umcg_swap(u32 wake_flags, u32 next_tid, u32 wait_flags, ^ In file included from arch/riscv/kernel/syscall_table.c:18: In file included from arch/riscv/include/asm/unistd.h:13: In file included from arch/riscv/include/uapi/asm/unistd.h:24: include/uapi/asm-generic/unistd.h:889:35: error: use of undeclared identifier 'sys_umcg_create_group'; did you mean 'umcg_create_group'? __SYSCALL(__NR_umcg_create_group, sys_umcg_create_group) ^~~~~~~~~~~~~~~~~~~~~ umcg_create_group arch/riscv/kernel/syscall_table.c:14:37: note: expanded from macro '__SYSCALL' #define __SYSCALL(nr, call) [nr] = (call), ^ include/linux/syscalls.h:1062:17: note: 'umcg_create_group' declared here asmlinkage long umcg_create_group(u32 api_version, u64, flags); ^ In file included from arch/riscv/kernel/syscall_table.c:18: In file included from arch/riscv/include/asm/unistd.h:13: In file included from arch/riscv/include/uapi/asm/unistd.h:24: include/uapi/asm-generic/unistd.h:891:36: error: use of undeclared identifier 'sys_umcg_destroy_group'; did you mean 'umcg_destroy_group'? __SYSCALL(__NR_umcg_destroy_group, sys_umcg_destroy_group) ^~~~~~~~~~~~~~~~~~~~~~ -- In file included from arch/riscv/kernel/sys_riscv.c:8: >> include/linux/syscalls.h:1062:57: warning: declaration specifier missing, defaulting to 'int' asmlinkage long umcg_create_group(u32 api_version, u64, flags); ^ int 1 warning generated. 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 +/int +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