--- zzzz-none-000/linux-4.4.271/fs/locks.c 2021-06-03 06:22:09.000000000 +0000 +++ hawkeye-5590-750/linux-4.4.271/fs/locks.c 2023-04-19 10:22:30.000000000 +0000 @@ -2716,6 +2716,8 @@ static int __init proc_locks_init(void) { + if (IS_ENABLED(CONFIG_PROC_STRIPPED)) + return 0; proc_create("locks", 0, NULL, &proc_locks_operations); return 0; }