lkml.org 
[lkml]   [2016]   [Dec]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] sched/deadline:fix coding style issue
Date
Line 45 of cpudeadline.c violates chapter 3 of CodingStyle - space 
required before the open parenthesis '('.

Signed-off-by: Gaosheng Wu <wugsh15@lzu.edu.cn>
---


checkpatch.pl complained as the following:
ERROR: space required before the open parenthesis '('
#45: FILE: kernel/sched/cpudeadline.c:45:
+ while(1) {

Patch was compile checked with: x86_64_defconfig

Patch is aginst:4.9.0 (localversion-next is next-20161215)

kernel/sched/cpudeadline.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/cpudeadline.c b/kernel/sched/cpudeadline.c
index e731190..3b7dc3c 100644
--- a/kernel/sched/cpudeadline.c
+++ b/kernel/sched/cpudeadline.c
@@ -42,7 +42,7 @@ static void cpudl_heapify_down(struct cpudl *cp, int idx)
return;

/* adapted from lib/prio_heap.c */
- while(1) {
+ while (1) {
u64 largest_dl;
l = left_child(idx);
r = right_child(idx);
--
2.1.4

\
 
 \ /
  Last update: 2016-12-15 07:12    [W:0.026 / U:0.480 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site