[ceph-client:tls_logger 21/39] fs/ceph/debugfs.c:413:23: error: 'struct task_struct' has no member named 'cgroups'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://github.com/ceph/ceph-client.git tls_logger
head:   9d7726eb13dd4dbf6bba377991e8c20e18f26dae
commit: 150b41eb9654d09e993407ae522128f5af588e04 [21/39] debugfs: fixups
config: x86_64-buildonly-randconfig-002-20250320 (https://download.01.org/0day-ci/archive/20250320/202503200414.qjE4Iyqi-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250320/202503200414.qjE4Iyqi-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/202503200414.qjE4Iyqi-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

   fs/ceph/debugfs.c: In function 'print_task_cgroup':
>> fs/ceph/debugfs.c:413:23: error: 'struct task_struct' has no member named 'cgroups'
     413 |     if (!task || !task->cgroups)
         |                       ^~
   fs/ceph/debugfs.c:416:15: error: 'struct task_struct' has no member named 'cgroups'
     416 |     css = task->cgroups->subsys[0];
         |               ^~
>> fs/ceph/debugfs.c:418:39: error: invalid use of undefined type 'struct cgroup_subsys_state'
     418 |         cgroup_path_from_kernfs_id(css->cgroup->kn->id, cgroup_path, size);
         |                                       ^~


vim +413 fs/ceph/debugfs.c

   409	
   410	static int print_task_cgroup(struct task_struct *task, char *cgroup_path, size_t size)
   411	{
   412	    struct cgroup_subsys_state *css;
 > 413	    if (!task || !task->cgroups)
   414	        return 0;
   415	
   416	    css = task->cgroups->subsys[0];
   417	    if (css) {
 > 418	        cgroup_path_from_kernfs_id(css->cgroup->kn->id, cgroup_path, size);
   419	    }
   420	    return 1;
   421	}
   422	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki




[Index of Archives]     [CEPH Users]     [Ceph Large]     [Ceph Dev]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux