2017-07-25 09:51:29

by Maninder Singh

[permalink] [raw]
Subject: [PATCH 1/1] pid: making some changes as per kernel coding guidlines

This patch do some minor changes to make code align to
kernel coding guidlines, and make it little easy to find
definations of these structs.

Signed-off-by: Maninder Singh <[email protected]>
Signed-off-by: Vaneet Narang <[email protected]>
---
include/linux/pid.h | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/include/linux/pid.h b/include/linux/pid.h
index 4d17931..3677662 100644
--- a/include/linux/pid.h
+++ b/include/linux/pid.h
@@ -3,8 +3,7 @@

#include <linux/rculist.h>

-enum pid_type
-{
+enum pid_type {
PIDTYPE_PID,
PIDTYPE_PGID,
PIDTYPE_SID,
@@ -54,8 +53,7 @@ struct upid {
struct hlist_node pid_chain;
};

-struct pid
-{
+struct pid {
atomic_t count;
unsigned int level;
/* lists of tasks that use this pid */
@@ -66,8 +64,7 @@ struct pid

extern struct pid init_struct_pid;

-struct pid_link
-{
+struct pid_link {
struct hlist_node node;
struct pid *pid;
};
--
1.9.1