[LTP] [PATCH 3/4] syscalls/cachestat01: Add spaces around '<<' operator

Avinesh Kumar avinesh.kumar@suse.com
Wed Jul 8 11:11:53 CEST 2026


From: Avinesh Kumar <avinesh.kumar@suse.com>

$ make check-cachestat01
CHECK testcases/kernel/syscalls/cachestat/cachestat01.c
cachestat01.c:75: CHECK: spaces preferred around that '<<' (ctx:VxV)

Signed-off-by: Avinesh Kumar <avinesh.kumar@suse.com>
---
 testcases/kernel/syscalls/cachestat/cachestat01.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/testcases/kernel/syscalls/cachestat/cachestat01.c b/testcases/kernel/syscalls/cachestat/cachestat01.c
index 7cc72cc1bf21..1db530ffe9e5 100644
--- a/testcases/kernel/syscalls/cachestat/cachestat01.c
+++ b/testcases/kernel/syscalls/cachestat/cachestat01.c
@@ -72,7 +72,7 @@ static void setup(void)
 	page_size = (int)sysconf(_SC_PAGESIZE);
 
 	for (num_shift = 0; num_shift <= 15; num_shift++) {
-		if ((1lu<<num_shift) * page_size / 1024 >= tst_device->size) {
+		if ((1lu << num_shift) * page_size / 1024 >= tst_device->size) {
 			tst_res(TINFO, "Limiting num_shift to %i", num_shift);
 			break;
 		}
-- 
2.54.0



More information about the ltp mailing list