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

[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: s390-randconfig-r062-20250320 (https://download.01.org/0day-ci/archive/20250320/202503201109.rmiFfk3H-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250320/202503201109.rmiFfk3H-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/202503201109.rmiFfk3H-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> fs/ceph/debugfs.c:413:25: error: no member named 'cgroups' in 'struct task_struct'
       if (!task || !task->cgroups)
                     ~~~~  ^
   fs/ceph/debugfs.c:416:17: error: no member named 'cgroups' in 'struct task_struct'
       css = task->cgroups->subsys[0];
             ~~~~  ^
>> fs/ceph/debugfs.c:418:39: error: incomplete definition of type 'struct cgroup_subsys_state'
           cgroup_path_from_kernfs_id(css->cgroup->kn->id, cgroup_path, size);
                                      ~~~^
   include/linux/kthread.h:219:8: note: forward declaration of 'struct cgroup_subsys_state'
   struct cgroup_subsys_state;
          ^
   3 errors generated.


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