From f72cb1669a015e175d0f09efabc67e451fa9874f Mon Sep 17 00:00:00 2001 From: Will Fancher Date: Sat, 1 Nov 2025 17:53:42 -0400 Subject: [PATCH] linux/common-config: Disable `LEGACY_TIOCSTI` See the commit message adding the kconfig: https://github.com/torvalds/linux/commit/83efeeeb3d04b22aaed1df99bc70a48fe9d22c4d At least Fedora and Arch both appear to disable this on their kernels. --- pkgs/os-specific/linux/kernel/common-config.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix index 4fa16a094bdc..db639b58f417 100644 --- a/pkgs/os-specific/linux/kernel/common-config.nix +++ b/pkgs/os-specific/linux/kernel/common-config.nix @@ -1409,6 +1409,8 @@ let TASK_XACCT = yes; TASK_IO_ACCOUNTING = yes; + LEGACY_TIOCSTI = whenAtLeast "6.2" no; + # Fresh toolchains frequently break -Werror build for minor issues. WERROR = whenAtLeast "5.15" no;