Content-Type: multipart/mixed; boundary="===============1079844972601618829==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: Re: [RFC PATCH v1 1/3] io_uring: Rename `io_{send, recv}` to `io_{sendto, recvfrom}` Date: Thu, 30 Dec 2021 19:59:31 +0800 Message-ID: <202112301905.cGMjzzKP-lkp@intel.com> In-Reply-To: <20211230013250.103267-1-ammar.faizi@intel.com> List-Id: --===============1079844972601618829== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi Ammar, [FYI, it's a private test report for your RFC patch.] [auto build test ERROR on aafc6e6eba29c890b0031267fc37c43490447c81] url: https://github.com/0day-ci/linux/commits/Ammar-Faizi/io_uring-Add-s= endto-2-and-recvfrom-2-support/20211230-093703 base: aafc6e6eba29c890b0031267fc37c43490447c81 config: nds32-randconfig-r036-20211230 (https://download.01.org/0day-ci/arc= hive/20211230/202112301905.cGMjzzKP-lkp(a)intel.com/config) compiler: nds32le-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://github.com/0day-ci/linux/commit/9cfe685bad543158dec1c3a75= 60036b2e2f93f89 git remote add linux-review https://github.com/0day-ci/linux git fetch --no-tags linux-review Ammar-Faizi/io_uring-Add-sendto-2-= and-recvfrom-2-support/20211230-093703 git checkout 9cfe685bad543158dec1c3a7560036b2e2f93f89 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dnds32 SHELL=3D/bin/bash If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All errors (new ones prefixed by >>): fs/io_uring.c: In function '__io_submit_flush_completions': fs/io_uring.c:2541:40: warning: variable 'prev' set but not used [-Wunus= ed-but-set-variable] 2541 | struct io_wq_work_node *node, *prev; | ^~~~ fs/io_uring.c: In function 'io_issue_sqe': >> fs/io_uring.c:7064:23: error: implicit declaration of function 'io_sendt= o'; did you mean 'io_send'? [-Werror=3Dimplicit-function-declaration] 7064 | ret =3D io_sendto(req, issue_flags); | ^~~~~~~~~ | io_send >> fs/io_uring.c:7070:23: error: implicit declaration of function 'io_recvf= rom'; did you mean 'sys_recvfrom'? [-Werror=3Dimplicit-function-declaration] 7070 | ret =3D io_recvfrom(req, issue_flags); | ^~~~~~~~~~~ | sys_recvfrom At top level: fs/io_uring.c:5687:12: warning: 'io_recv' defined but not used [-Wunused= -function] 5687 | static int io_##op(struct io_kiocb *req, unsigned int issue_flag= s) \ | ^~~ fs/io_uring.c:5711:1: note: in expansion of macro 'IO_NETOP_FN' 5711 | IO_NETOP_FN(recv); | ^~~~~~~~~~~ fs/io_uring.c:5687:12: warning: 'io_send' defined but not used [-Wunused= -function] 5687 | static int io_##op(struct io_kiocb *req, unsigned int issue_flag= s) \ | ^~~ fs/io_uring.c:5710:1: note: in expansion of macro 'IO_NETOP_FN' 5710 | IO_NETOP_FN(send); | ^~~~~~~~~~~ cc1: some warnings being treated as errors vim +7064 fs/io_uring.c 7022 = 7023 static int io_issue_sqe(struct io_kiocb *req, unsigned int issue_fla= gs) 7024 { 7025 const struct cred *creds =3D NULL; 7026 int ret; 7027 = 7028 if (unlikely((req->flags & REQ_F_CREDS) && req->creds !=3D current_= cred())) 7029 creds =3D override_creds(req->creds); 7030 = 7031 if (!io_op_defs[req->opcode].audit_skip) 7032 audit_uring_entry(req->opcode); 7033 = 7034 switch (req->opcode) { 7035 case IORING_OP_NOP: 7036 ret =3D io_nop(req, issue_flags); 7037 break; 7038 case IORING_OP_READV: 7039 case IORING_OP_READ_FIXED: 7040 case IORING_OP_READ: 7041 ret =3D io_read(req, issue_flags); 7042 break; 7043 case IORING_OP_WRITEV: 7044 case IORING_OP_WRITE_FIXED: 7045 case IORING_OP_WRITE: 7046 ret =3D io_write(req, issue_flags); 7047 break; 7048 case IORING_OP_FSYNC: 7049 ret =3D io_fsync(req, issue_flags); 7050 break; 7051 case IORING_OP_POLL_ADD: 7052 ret =3D io_poll_add(req, issue_flags); 7053 break; 7054 case IORING_OP_POLL_REMOVE: 7055 ret =3D io_poll_update(req, issue_flags); 7056 break; 7057 case IORING_OP_SYNC_FILE_RANGE: 7058 ret =3D io_sync_file_range(req, issue_flags); 7059 break; 7060 case IORING_OP_SENDMSG: 7061 ret =3D io_sendmsg(req, issue_flags); 7062 break; 7063 case IORING_OP_SEND: > 7064 ret =3D io_sendto(req, issue_flags); 7065 break; 7066 case IORING_OP_RECVMSG: 7067 ret =3D io_recvmsg(req, issue_flags); 7068 break; 7069 case IORING_OP_RECV: > 7070 ret =3D io_recvfrom(req, issue_flags); 7071 break; 7072 case IORING_OP_TIMEOUT: 7073 ret =3D io_timeout(req, issue_flags); 7074 break; 7075 case IORING_OP_TIMEOUT_REMOVE: 7076 ret =3D io_timeout_remove(req, issue_flags); 7077 break; 7078 case IORING_OP_ACCEPT: 7079 ret =3D io_accept(req, issue_flags); 7080 break; 7081 case IORING_OP_CONNECT: 7082 ret =3D io_connect(req, issue_flags); 7083 break; 7084 case IORING_OP_ASYNC_CANCEL: 7085 ret =3D io_async_cancel(req, issue_flags); 7086 break; 7087 case IORING_OP_FALLOCATE: 7088 ret =3D io_fallocate(req, issue_flags); 7089 break; 7090 case IORING_OP_OPENAT: 7091 ret =3D io_openat(req, issue_flags); 7092 break; 7093 case IORING_OP_CLOSE: 7094 ret =3D io_close(req, issue_flags); 7095 break; 7096 case IORING_OP_FILES_UPDATE: 7097 ret =3D io_files_update(req, issue_flags); 7098 break; 7099 case IORING_OP_STATX: 7100 ret =3D io_statx(req, issue_flags); 7101 break; 7102 case IORING_OP_FADVISE: 7103 ret =3D io_fadvise(req, issue_flags); 7104 break; 7105 case IORING_OP_MADVISE: 7106 ret =3D io_madvise(req, issue_flags); 7107 break; 7108 case IORING_OP_OPENAT2: 7109 ret =3D io_openat2(req, issue_flags); 7110 break; 7111 case IORING_OP_EPOLL_CTL: 7112 ret =3D io_epoll_ctl(req, issue_flags); 7113 break; 7114 case IORING_OP_SPLICE: 7115 ret =3D io_splice(req, issue_flags); 7116 break; 7117 case IORING_OP_PROVIDE_BUFFERS: 7118 ret =3D io_provide_buffers(req, issue_flags); 7119 break; 7120 case IORING_OP_REMOVE_BUFFERS: 7121 ret =3D io_remove_buffers(req, issue_flags); 7122 break; 7123 case IORING_OP_TEE: 7124 ret =3D io_tee(req, issue_flags); 7125 break; 7126 case IORING_OP_SHUTDOWN: 7127 ret =3D io_shutdown(req, issue_flags); 7128 break; 7129 case IORING_OP_RENAMEAT: 7130 ret =3D io_renameat(req, issue_flags); 7131 break; 7132 case IORING_OP_UNLINKAT: 7133 ret =3D io_unlinkat(req, issue_flags); 7134 break; 7135 case IORING_OP_MKDIRAT: 7136 ret =3D io_mkdirat(req, issue_flags); 7137 break; 7138 case IORING_OP_SYMLINKAT: 7139 ret =3D io_symlinkat(req, issue_flags); 7140 break; 7141 case IORING_OP_LINKAT: 7142 ret =3D io_linkat(req, issue_flags); 7143 break; 7144 case IORING_OP_GETDENTS: 7145 ret =3D io_getdents(req, issue_flags); 7146 break; 7147 case IORING_OP_FSETXATTR: 7148 ret =3D io_fsetxattr(req, issue_flags); 7149 break; 7150 case IORING_OP_SETXATTR: 7151 ret =3D io_setxattr(req, issue_flags); 7152 break; 7153 case IORING_OP_FGETXATTR: 7154 ret =3D io_fgetxattr(req, issue_flags); 7155 break; 7156 case IORING_OP_GETXATTR: 7157 ret =3D io_getxattr(req, issue_flags); 7158 break; 7159 default: 7160 ret =3D -EINVAL; 7161 break; 7162 } 7163 = 7164 if (!io_op_defs[req->opcode].audit_skip) 7165 audit_uring_exit(!ret, ret); 7166 = 7167 if (creds) 7168 revert_creds(creds); 7169 if (ret) 7170 return ret; 7171 /* If the op doesn't have a file, we're not polling for it */ 7172 if ((req->ctx->flags & IORING_SETUP_IOPOLL) && req->file) 7173 io_iopoll_req_issued(req, issue_flags); 7174 = 7175 return 0; 7176 } 7177 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============1079844972601618829==--