Hi Maarten, kernel test robot noticed the following build errors: [auto build test ERROR on drm/drm-next] [also build test ERROR on drm-exynos/exynos-drm-next next-20241024] [cannot apply to tj-cgroup/for-next drm-xe/drm-xe-next akpm-mm/mm-everything drm-intel/for-linux-next drm-intel/for-linux-next-fixes drm-misc/drm-misc-next drm-tip/drm-tip linus/master v6.12-rc4] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Maarten-Lankhorst/kernel-cgroup-Add-dev-memory-accounting-cgroup/20241023-155504 base: git://anongit.freedesktop.org/drm/drm drm-next patch link: https://lore.kernel.org/r/20241023075302.27194-3-maarten.lankhorst%40linux.intel.com patch subject: [PATCH 2/7] drm/drv: Add drmm cgroup registration for dev cgroups. config: x86_64-rhel-8.3 (https://download.01.org/0day-ci/archive/20241024/202410241806.p6u3FcGS-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/20241024/202410241806.p6u3FcGS-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/202410241806.p6u3FcGS-lkp@xxxxxxxxx/ All error/warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/drm_drv.c:29: >> include/linux/cgroup_dev.h:61:12: error: two or more data types in declaration specifiers 61 | static int int dev_cgroup_try_charge(struct dev_cgroup_device *cgdev, | ^~~ >> include/linux/cgroup_dev.h:65:1: error: expected identifier or '(' before '{' token 65 | { | ^ >> include/linux/cgroup_dev.h:61:16: warning: 'dev_cgroup_try_charge' declared 'static' but never defined [-Wunused-function] 61 | static int int dev_cgroup_try_charge(struct dev_cgroup_device *cgdev, | ^~~~~~~~~~~~~~~~~~~~~ vim +61 include/linux/cgroup_dev.h 487073b1855ef4 Maarten Lankhorst 2024-10-23 60 487073b1855ef4 Maarten Lankhorst 2024-10-23 @61 static int int dev_cgroup_try_charge(struct dev_cgroup_device *cgdev, 487073b1855ef4 Maarten Lankhorst 2024-10-23 62 u32 index, u64 size, 487073b1855ef4 Maarten Lankhorst 2024-10-23 63 struct dev_cgroup_pool_state **ret_pool, 487073b1855ef4 Maarten Lankhorst 2024-10-23 64 struct dev_cgroup_pool_state **ret_limit_pool); 487073b1855ef4 Maarten Lankhorst 2024-10-23 @65 { 487073b1855ef4 Maarten Lankhorst 2024-10-23 66 *ret_pool = NULL; 487073b1855ef4 Maarten Lankhorst 2024-10-23 67 487073b1855ef4 Maarten Lankhorst 2024-10-23 68 if (ret_limit_pool) 487073b1855ef4 Maarten Lankhorst 2024-10-23 69 *ret_limit_pool = NULL; 487073b1855ef4 Maarten Lankhorst 2024-10-23 70 487073b1855ef4 Maarten Lankhorst 2024-10-23 71 return 0; 487073b1855ef4 Maarten Lankhorst 2024-10-23 72 } 487073b1855ef4 Maarten Lankhorst 2024-10-23 73 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki