Staging: Lustre: Fixed coding style issues
PATCH 2/2 Staging: Lustre: Fixed coding style issues
Fixed one coding style issue in the
file router_proc.c (Lustre staging driver)
--- drivers/staging/lustre/lnet/lnet/router_proc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/staging/lustre/lnet/lnet/router_proc.c +2 -1
@@ -32,7 +32,8 @@*/ #define LNET_PROC_CPT_BITS (LNET_CPT_BITS + 1)/* change version, 16 bits or 8 bits */ -#define LNET_PROC_VER_BITS max_t(size_t, min_t(size_t, LNET_LOFFT_BITS, 64) / 4, 8) +#define LNET_PROC_VER_BITS \ +max_t(size_t, min_t(size_t, LNET_LOFFT_BITS, 64) / 4, 8)#define LNET_PROC_HASH_BITS LNET_PEER_HASH_BITS/*
Signature · 1 line
1.9.1
Quoted 2 lines · Panos Vlachos
Fixed one coding style issue in the
filerouter_proc.c(Lustre staging driver)
Perhaps it's best to reference what the issue is. I.e. "Fix too long line in …"
and then in the actual message add that you just split it?
Quoted 11 lines
Signed-off-by Panos Vlachos <[email protected]>---
drivers/staging/lustre/lnet/lnet/router_proc.c| 3 ++-1 file changed, 2 insertions(+), 1 deletion(-)drivers/staging/lustre/lnet/lnet/router_proc.c +0
-0
drivers/staging/lustre/lnet/lnet/router_proc.c line 36
Quoted 6 lines
drivers/staging/lustre/lnet/lnet/router_proc.c +2
-1@@ -32,7 +32,8 @@*/ #define LNET_PROC_CPT_BITS (LNET_CPT_BITS + 1)/* change version, 16 bits or 8 bits */ -#define LNET_PROC_VER_BITS max_t(size_t, min_t(size_t, LNET_LOFFT_BITS, 64) / 4, 8) +#define LNET_PROC_VER_BITS \ +max_t(size_t, min_t(size_t, LNET_LOFFT_BITS, 64) / 4, 8)
Hm, I am not sure this is an improvement, you might want to at least place a tab at the start of this second line, so that indentation helps us better see it's a continuation of the previous one.
Thanks.
Quoted 6 lines
drivers/staging/lustre/lnet/lnet/router_proc.c +0
-0#define LNET_PROC_HASH_BITS LNET_PEER_HASH_BITS/* Signature · 1 line
1.9.1
Quoted 6 lines · Oleg
Quoted 2 lines · Panos Vlachos
Fixed one coding style issue in the
filerouter_proc.c(Lustre staging driver)Perhaps it's best to reference what the issue is. I.e. "Fix too long line in …"
and then in the actual message add that you just split it?
[]
Quoted 1 line
drivers/staging/lustre/lnet/lnet/router_proc.c
Quoted 1 line
drivers/staging/lustre/lnet/lnet/router_proc.c +0
-0
[]
Quoted 9 lines
drivers/staging/lustre/lnet/lnet/router_proc.c line 36
Quoted 7 lines
drivers/staging/lustre/lnet/lnet/router_proc.c +2
-1@@ -32,7 +32,8 @@*/ #define LNET_PROC_CPT_BITS (LNET_CPT_BITS + 1)/* change version, 16 bits or 8 bits */ -#define LNET_PROC_VER_BITS max_t(size_t, min_t(size_t, LNET_LOFFT_BITS, 64) / 4, 8) +#define LNET_PROC_VER_BITS \ +max_t(size_t, min_t(size_t, LNET_LOFFT_BITS, 64) / 4, 8)Hm, I am not sure this is an improvement, you might want to at least place a tab at the start of this second line, so that indentation helps us better see it's a continuation of the previous one.
Given:
#define LNET_LOFFT_BITS (sizeof(loff_t) * 8) and: include/linux/types.h:typedef __kernel_loff_t loff_t; include/uapi/asm-generic/posix_types.h:typedef long long __kernel_loff_t;
and this isn't going to change any time soon,
maybe this #define isn't particularly useful and
#define LNET_PROC_VER_BITS 16
is sufficient.