Skip to contentSkip to conversation

PM: hibernate: remove leading spaces before tabs

PATCH Applied Zhen Lei 2 participants 2 messages Jun 8, 2021 – Jun 11, 2021

Subsystems (2)
lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 PM: hibernate: remove leading spaces before tabs

1) Run the following command to find and remove the leading spaces before tabs:
find kernel/power/ -type f | xargs sed -r -i 's/^[ ]+\t/\t/'
2) Manually check and correct if necessary

---
 kernel/power/snapshot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/power/snapshot.c +1 -1
index af507c8c895b..f7a986078213 100644
@@ -1146,7 +1146,7 @@ int create_basic_memory_bitmaps(void)
  Free_second_object:
 	kfree(bm2);
  Free_first_bitmap:
- 	memory_bm_free(bm1, PG_UNSAFE_CLEAR);
+	memory_bm_free(bm1, PG_UNSAFE_CLEAR);
  Free_first_object:
 	kfree(bm1);
 	return -ENOMEM;
Signature · 1 line
2.25.1
maintainer Applied
#1 lore raw
Quoted 16 lines · Zhen Lei

1) Run the following command to find and remove the leading spaces before tabs:

   find kernel/power/ -type f | xargs sed -r -i 's/^[ ]+\t/\t/'

2) Manually check and correct if necessary

---
 kernel/power/snapshot.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/power/snapshot.c +0 -0
index af507c8c895b..f7a986078213 100644

kernel/power/snapshot.c int create_basic_memory_bitmaps(void)

Quoted 9 lines
kernel/power/snapshot.c +1 -2
@@ -1146,7 +1146,7 @@ int create_basic_memory_bitmaps(void)
  Free_second_object:
        kfree(bm2);
  Free_first_bitmap:
-       memory_bm_free(bm1, PG_UNSAFE_CLEAR);
+       memory_bm_free(bm1, PG_UNSAFE_CLEAR);
  Free_first_object:
        kfree(bm1);
        return -ENOMEM;
--

Applied as 5.14 material, thanks!