generic: 6.1: fix compilation warning for CONFIG_PROC_STRIPPED
[openwrt/openwrt.git] / target / linux / generic / hack-6.1 / 902-debloat_proc.patch
index 23de30f4923af128b93da5e1782c929332ab72fc..33b408a476f62df79cb288cded0d8d57f9dc1731 100644 (file)
@@ -406,3 +406,14 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        return register_pernet_subsys(&ip_rt_proc_ops);
  }
  
+--- a/net/ipv4/inet_timewait_sock.c
++++ b/net/ipv4/inet_timewait_sock.c
+@@ -269,7 +269,7 @@ void __inet_twsk_schedule(struct inet_ti
+        */
+       if (!rearm) {
+-              bool kill = timeo <= 4*HZ;
++              bool __maybe_unused  kill = timeo <= 4*HZ;
+               __NET_INC_STATS(twsk_net(tw), kill ? LINUX_MIB_TIMEWAITKILLED :
+                                                    LINUX_MIB_TIMEWAITED);