From: kernel test robot <lkp@intel.com>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
linux-fsdevel@vger.kernel.org
Subject: [viro-vfs:for-wsamuel2 40/40] drivers/usb/gadget/function/f_fs.c:660:3: error: call to undeclared function 'ffs_data_reset'; ISO C99 and later do not support implicit function declarations
Date: Sun, 01 Feb 2026 18:16:47 +0800 [thread overview]
Message-ID: <202602011830.yKVSsQTY-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git for-wsamuel2
head: 9a8dd89bd5c65c4189f2bf6291f0f9a3d0df31c5
commit: 9a8dd89bd5c65c4189f2bf6291f0f9a3d0df31c5 [40/40] serialize ffs_ep0_open() on ffs->mutex, this time without ffs_data_reset() under ->mutex
config: x86_64-randconfig-013-20260201 (https://download.01.org/0day-ci/archive/20260201/202602011830.yKVSsQTY-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260201/202602011830.yKVSsQTY-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/202602011830.yKVSsQTY-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/usb/gadget/function/f_fs.c:660:3: error: call to undeclared function 'ffs_data_reset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
660 | ffs_data_reset(ffs);
| ^
drivers/usb/gadget/function/f_fs.c:660:3: note: did you mean 'ffs_data_get'?
drivers/usb/gadget/function/f_fs.c:55:13: note: 'ffs_data_get' declared here
55 | static void ffs_data_get(struct ffs_data *ffs);
| ^
drivers/usb/gadget/function/f_fs.c:2089:13: error: static declaration of 'ffs_data_reset' follows non-static declaration
2089 | static void ffs_data_reset(struct ffs_data *ffs);
| ^
drivers/usb/gadget/function/f_fs.c:660:3: note: previous implicit declaration is here
660 | ffs_data_reset(ffs);
| ^
2 errors generated.
vim +/ffs_data_reset +660 drivers/usb/gadget/function/f_fs.c
640
641 static int ffs_ep0_open(struct inode *inode, struct file *file)
642 {
643 struct ffs_data *ffs = inode->i_sb->s_fs_info;
644 int ret;
645
646 /* Acquire mutex */
647 ret = ffs_mutex_lock(&ffs->mutex, file->f_flags & O_NONBLOCK);
648 if (ret < 0)
649 return ret;
650
651 if (ffs->state == FFS_CLOSING) {
652 mutex_unlock(&ffs->mutex);
653 return -EBUSY;
654 }
655
656 if (atomic_add_return(1, &ffs->opened) == 1 &&
657 ffs->state == FFS_DEACTIVATED) {
658 ffs->state = FFS_CLOSING;
659 mutex_unlock(&ffs->mutex);
> 660 ffs_data_reset(ffs);
661 } else {
662 mutex_unlock(&ffs->mutex);
663 }
664 file->private_data = ffs;
665
666 return stream_open(inode, file);
667 }
668
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-02-01 10:17 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=202602011830.yKVSsQTY-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=viro@zeniv.linux.org.uk \
/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