lkml.org 
[lkml]   [2017]   [Jul]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/1] pid: making some changes as per kernel coding guidlines
Date
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 <maninder1.s@samsung.com>
Signed-off-by: Vaneet Narang <v.narang@samsung.com>
---
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
\
 
 \ /
  Last update: 2017-07-25 11:51    [W:0.028 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site