tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git pending-fixes head: 75a1d6d160163b0db4b67065bb73a8239b118aa7 commit: f046d71e84e1e94cf23335129a27f5cfe3e8b75f [950/1001] smb: client: insert compression check/call on write requests config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240916/202409160930.sSepp6Xh-lkp@xxxxxxxxx/config) compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240916/202409160930.sSepp6Xh-lkp@xxxxxxxxx/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-kbuild-all/202409160930.sSepp6Xh-lkp@xxxxxxxxx/ Note: the linux-next/pending-fixes HEAD 75a1d6d160163b0db4b67065bb73a8239b118aa7 builds fine. It only hurts bisectability. All errors (new ones prefixed by >>): >> fs/smb/client/transport.c:437:10: error: call to undeclared function 'smb_compress'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 437 | return smb_compress(server, &rqst[0], __smb_send_rqst); | ^ 1 error generated. -- >> fs/smb/client/smb2pdu.c:5025:62: error: call to undeclared function 'should_compress'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] 5025 | if (((flags & CIFS_TRANSFORM_REQ) != CIFS_TRANSFORM_REQ) && should_compress(tcon, &rqst)) | ^ 1 error generated. vim +/smb_compress +437 fs/smb/client/transport.c 426 427 static int 428 smb_send_rqst(struct TCP_Server_Info *server, int num_rqst, 429 struct smb_rqst *rqst, int flags) 430 { 431 struct send_req_vars *vars; 432 struct smb_rqst *cur_rqst; 433 struct kvec *iov; 434 int rc; 435 436 if (flags & CIFS_COMPRESS_REQ) > 437 return smb_compress(server, &rqst[0], __smb_send_rqst); 438 439 if (!(flags & CIFS_TRANSFORM_REQ)) 440 return __smb_send_rqst(server, num_rqst, rqst); 441 442 if (WARN_ON_ONCE(num_rqst > MAX_COMPOUND - 1)) 443 return -EIO; 444 445 if (!server->ops->init_transform_rq) { 446 cifs_server_dbg(VFS, "Encryption requested but transform callback is missing\n"); 447 return -EIO; 448 } 449 450 vars = kzalloc(sizeof(*vars), GFP_NOFS); 451 if (!vars) 452 return -ENOMEM; 453 cur_rqst = vars->rqst; 454 iov = &vars->iov; 455 456 iov->iov_base = &vars->tr_hdr; 457 iov->iov_len = sizeof(vars->tr_hdr); 458 cur_rqst[0].rq_iov = iov; 459 cur_rqst[0].rq_nvec = 1; 460 461 rc = server->ops->init_transform_rq(server, num_rqst + 1, 462 &cur_rqst[0], rqst); 463 if (rc) 464 goto out; 465 466 rc = __smb_send_rqst(server, num_rqst + 1, &cur_rqst[0]); 467 smb3_free_compound_rqst(num_rqst, &cur_rqst[1]); 468 out: 469 kfree(vars); 470 return rc; 471 } 472 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki