All of lore.kernel.org
 help / color / mirror / Atom feed
* [sashal-linux-stable:tmp 9/44] fs/fuse/virtio_fs.c:1230:4: error: implicit declaration of function 'fuse_mount_put'; did you mean
@ 2021-03-24  2:37 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-03-24  2:37 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4562 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git tmp
head:   13665f1f8b5d501b40b1bc8448b0a032c7f04cc2
commit: 61ee9fde51c156f6af5609f475f16748a07b69ed [9/44] virtiofs fix leak in setup
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/commit/?id=61ee9fde51c156f6af5609f475f16748a07b69ed
        git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
        git fetch --no-tags sashal-linux-stable tmp
        git checkout 61ee9fde51c156f6af5609f475f16748a07b69ed
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   fs/fuse/virtio_fs.c:723:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
     723 | const static struct virtio_device_id id_table[] = {
         | ^~~~~
   fs/fuse/virtio_fs.c:728:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
     728 | const static unsigned int feature_table[] = {};
         | ^~~~~
   fs/fuse/virtio_fs.c:1065:1: warning: 'static' is not at beginning of declaration [-Wold-style-declaration]
    1065 | const static struct fuse_iqueue_ops virtio_fs_fiq_ops = {
         | ^~~~~
   fs/fuse/virtio_fs.c: In function 'virtio_fs_get_tree':
>> fs/fuse/virtio_fs.c:1230:4: error: implicit declaration of function 'fuse_mount_put'; did you mean 'fuse_conn_put'? [-Werror=implicit-function-declaration]
    1230 |    fuse_mount_put(fm);
         |    ^~~~~~~~~~~~~~
         |    fuse_conn_put
>> fs/fuse/virtio_fs.c:1230:19: error: 'fm' undeclared (first use in this function); did you mean 'fc'?
    1230 |    fuse_mount_put(fm);
         |                   ^~
         |                   fc
   fs/fuse/virtio_fs.c:1230:19: note: each undeclared identifier is reported only once for each function it appears in
   cc1: some warnings being treated as errors

Kconfig warnings: (for reference only)
   WARNING: unmet direct dependencies detected for FRAME_POINTER
   Depends on DEBUG_KERNEL && (M68K || UML || SUPERH) || ARCH_WANT_FRAME_POINTERS
   Selected by
   - FAULT_INJECTION_STACKTRACE_FILTER && FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT && !X86_64 && !MIPS && !PPC && !S390 && !MICROBLAZE && !ARM && !ARC && !X86


vim +1230 fs/fuse/virtio_fs.c

  1190	
  1191	static int virtio_fs_get_tree(struct fs_context *fsc)
  1192	{
  1193		struct virtio_fs *fs;
  1194		struct super_block *sb;
  1195		struct fuse_conn *fc;
  1196		int err;
  1197	
  1198		/* This gets a reference on virtio_fs object. This ptr gets installed
  1199		 * in fc->iq->priv. Once fuse_conn is going away, it calls ->put()
  1200		 * to drop the reference to this object.
  1201		 */
  1202		fs = virtio_fs_find_instance(fsc->source);
  1203		if (!fs) {
  1204			pr_info("virtio-fs: tag <%s> not found\n", fsc->source);
  1205			return -EINVAL;
  1206		}
  1207	
  1208		fc = kzalloc(sizeof(struct fuse_conn), GFP_KERNEL);
  1209		if (!fc) {
  1210			mutex_lock(&virtio_fs_mutex);
  1211			virtio_fs_put(fs);
  1212			mutex_unlock(&virtio_fs_mutex);
  1213			return -ENOMEM;
  1214		}
  1215	
  1216		fuse_conn_init(fc, get_user_ns(current_user_ns()), &virtio_fs_fiq_ops,
  1217			       fs);
  1218		fc->release = fuse_free_conn;
  1219		fc->delete_stale = true;
  1220	
  1221		fsc->s_fs_info = fc;
  1222		sb = sget_fc(fsc, virtio_fs_test_super, virtio_fs_set_super);
  1223		fuse_conn_put(fc);
  1224		if (IS_ERR(sb))
  1225			return PTR_ERR(sb);
  1226	
  1227		if (!sb->s_root) {
  1228			err = virtio_fs_fill_super(sb);
  1229			if (err) {
> 1230				fuse_mount_put(fm);
  1231				sb->s_fs_info = NULL;
  1232				deactivate_locked_super(sb);
  1233				return err;
  1234			}
  1235	
  1236			sb->s_flags |= SB_ACTIVE;
  1237		}
  1238	
  1239		WARN_ON(fsc->root);
  1240		fsc->root = dget(sb->s_root);
  1241		return 0;
  1242	}
  1243	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 55682 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-03-24  2:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-24  2:37 [sashal-linux-stable:tmp 9/44] fs/fuse/virtio_fs.c:1230:4: error: implicit declaration of function 'fuse_mount_put'; did you mean kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.