From: kernel test robot <lkp@intel.com>
To: Enzo Matsumiya <ematsumiya@suse.de>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
Linux Memory Management List <linux-mm@kvack.org>,
Steve French <stfrench@microsoft.com>
Subject: [linux-next:pending-fixes 950/1001] fs/smb/client/transport.c:437:10: error: call to undeclared function 'smb_compress'; ISO C99 and later do not support implicit function declarations
Date: Mon, 16 Sep 2024 09:32:23 +0800 [thread overview]
Message-ID: <202409160930.sSepp6Xh-lkp@intel.com> (raw)
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@intel.com/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@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202409160930.sSepp6Xh-lkp@intel.com/
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
reply other threads:[~2024-09-16 1:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202409160930.sSepp6Xh-lkp@intel.com \
--to=lkp@intel.com \
--cc=ematsumiya@suse.de \
--cc=linux-mm@kvack.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=stfrench@microsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox