[PATCH net-next v1] tcp: Fix inconsistent indenting warning

Jiayuan Chen posted 1 patch 1 week, 1 day ago
include/net/tcp.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH net-next v1] tcp: Fix inconsistent indenting warning
Posted by Jiayuan Chen 1 week, 1 day ago
Suppress such warning reported by test robot:
    include/net/tcp.h:1449 tcp_ca_event() warn: inconsistent indenting

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202603251430.gQ3VuiKV-lkp@intel.com/
Fixes: d1e59a469737 ("tcp: add cwnd_event_tx_start to tcp_congestion_ops")
Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>
---
 include/net/tcp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/net/tcp.h b/include/net/tcp.h
index 39ff4cf3c810..565943c34b7e 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -1444,7 +1444,7 @@ static inline void tcp_ca_event(struct sock *sk, const enum tcp_ca_event event)
 	const struct inet_connection_sock *icsk = inet_csk(sk);
 
 	if (event == CA_EVENT_TX_START) {
-	    if (icsk->icsk_ca_ops->cwnd_event_tx_start)
+		if (icsk->icsk_ca_ops->cwnd_event_tx_start)
 			icsk->icsk_ca_ops->cwnd_event_tx_start(sk);
 		return;
 	}
-- 
2.43.0
Re: [PATCH net-next v1] tcp: Fix inconsistent indenting warning
Posted by Eric Dumazet 1 week, 1 day ago
On Wed, Mar 25, 2026 at 12:19 AM Jiayuan Chen <jiayuan.chen@linux.dev> wrote:
>
> Suppress such warning reported by test robot:
>     include/net/tcp.h:1449 tcp_ca_event() warn: inconsistent indenting
>
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202603251430.gQ3VuiKV-lkp@intel.com/
> Fixes: d1e59a469737 ("tcp: add cwnd_event_tx_start to tcp_congestion_ops")
> Signed-off-by: Jiayuan Chen <jiayuan.chen@linux.dev>

Reviewed-by: Eric Dumazet <edumazet@google.com>

Please note you do not need to spam lkml@ for such a trivial patch.