提交 fe505365 编写于 作者: K Kaixu Xia 提交者: Zheng Zengkai

cxgb4: Fix the -Wmisleading-indentation warning

stable inclusion
from stable-5.10.39
commit a60855366be53dfaf185fdb8fad59ff0a5a0ff0a
bugzilla: 51881
CVE: NA

--------------------------------

commit ea8146c6 upstream.

Fix the gcc warning:

drivers/net/ethernet/chelsio/cxgb4/cxgb4_debugfs.c:2673:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
 2673 |         for (i = 0; i < n; ++i) \
Reported-by: NTosk Robot <tencent_os_robot@tencent.com>
Signed-off-by: NKaixu Xia <kaixuxia@tencent.com>
Link: https://lore.kernel.org/r/1604467444-23043-1-git-send-email-kaixuxia@tencent.comSigned-off-by: NJakub Kicinski <kuba@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 5881c067
...@@ -2671,7 +2671,7 @@ do { \ ...@@ -2671,7 +2671,7 @@ do { \
seq_printf(seq, "%-12s", s); \ seq_printf(seq, "%-12s", s); \
for (i = 0; i < n; ++i) \ for (i = 0; i < n; ++i) \
seq_printf(seq, " %16" fmt_spec, v); \ seq_printf(seq, " %16" fmt_spec, v); \
seq_putc(seq, '\n'); \ seq_putc(seq, '\n'); \
} while (0) } while (0)
#define S(s, v) S3("s", s, v) #define S(s, v) S3("s", s, v)
#define T3(fmt_spec, s, v) S3(fmt_spec, s, tx[i].v) #define T3(fmt_spec, s, v) S3(fmt_spec, s, tx[i].v)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册