Description of problem: Config with CONFIG_RICH_CONTAINER set and CONFIG_SCHEDSTATS unset (unselect kernel debuginfo from menuconfig), the compilation failed as: ``` kernel/pid_namespace.o: In function `rich_container_enable': pid_namespace.c:(.init.text+0x13): undefined reference to `__sched_schedstats' make: *** [Makefile:1188: vmlinux] Error 1 ``` This is introduced by commit e777fc6b981edc10d355a8ff9f1e85786a8ea061. In this commit rich_container_enable() tries to set __sched_schedstats from kernel/pid_namespace.c, but __sched_schedstats won't exist if CONFIG_SCHEDSTATS is not set. Version-Release number of selected component (if applicable): 5.10.134-12_rc1-217-ge777fc6b981e How reproducible: Compile with CONFIG_RICH_CONTAINER set and CONFIG_SCHEDSTATS unset. Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info: