Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751551AbdGYJv3 (ORCPT ); Tue, 25 Jul 2017 05:51:29 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:23155 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750793AbdGYJv1 (ORCPT ); Tue, 25 Jul 2017 05:51:27 -0400 X-AuditID: b6c32a49-f79a26d000001fba-21-5977149d6ba5 From: Maninder Singh To: akpm@linux-foundation.org, penguin-kernel@I-love.SAKURA.ne.jp, mingo@kernel.org Cc: linux-kernel@vger.kernel.org, pankaj.m@samsung.com, Maninder Singh , Vaneet Narang Subject: [PATCH 1/1] pid: making some changes as per kernel coding guidlines Date: Tue, 25 Jul 2017 15:17:29 +0530 Message-Id: <1500976049-22981-1-git-send-email-maninder1.s@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrMKsWRmVeSWpSXmKPExsWy7bCmpu5ckfJIg1fPDCzmrF/DZnF51xw2 i8Pz21gsVv87xWhx781WJovZLe9YLQ6dnMvowO6xc+0qJo9NqzrZPE7M+M3i0bdlFaPH501y AaxRqTYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QGco KZQl5pQChQISi4uV9O1sivJLS1IVMvKLS2yVog0NjfQMDcz1jIyM9ExMY62MTIFKElIzjp76 x1Twgr1i88QrTA2MU9i6GDk5JARMJD72n2CEsMUkLtxbDxYXEtjNKLH2SnUXIxeQ/YlR4s/P iexwzvHmK6ww3cf+7WeE6NjJKHH6FAtE0RdGiQ33brOAJNgE9CRW7doDZosIhEr8XHCAGaSI WaCDUWLeoRVA+zg4hAV8JGZ9CAGpYRFQlbhw9w8TiM0r4C7xcu4xqGVyEiePTYaye9gk/t90 hbBdJFZu3ggVF5Z4dXwLO4QtJfGyvw3sagmBbkaJZaefMEE4MxglVty7xwxRZS/x4MZRdpA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mkC/xasrbuxKwrHZse Gb/YHp309olgzapLOzl5Nuk5NH08+22GbOEaaSH/N939a1wYljzmPHaWf0f0spr/XQ+FJ3+7 kNkeySMYEnfo0Kkm8Ru7Z2V5Rii5Ppi05XrpwmVl8Sp1M/VuFu9NUGIpzkg01GIuKk4EAHpg ZbcmAgAA X-CMS-MailID: 20170725095125epcas5p3203dc0de4922af467b4a26e404a07f1c X-Msg-Generator: CA X-Sender-IP: 182.195.40.13 X-Local-Sender: =?UTF-8?B?TWFuaW5kZXIgU2luZ2gbU1JJLURlbGhpLVBsYXRmb3JtIFMv?= =?UTF-8?B?VyAxIFRlYW0b7IK87ISx7KCE7J6QG0xlYWQgRW5naW5lZXI=?= X-Global-Sender: =?UTF-8?B?TWFuaW5kZXIgU2luZ2gbU1JJLURlbGhpLVBsYXRmb3JtIFMv?= =?UTF-8?B?VyAxIFRlYW0bU2Ftc3VuZ8KgRWxlY3Ryb25pY3PCoBtMZWFkIEVuZ2luZWVy?= X-Sender-Code: =?UTF-8?B?QzEwG1NXQUhRG0MxMElEMDJJRDAyODExNQ==?= Content-Type: text/plain; charset="utf-8" X-MTR: 20170725095125epcas5p3203dc0de4922af467b4a26e404a07f1c CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20170725095125epcas5p3203dc0de4922af467b4a26e404a07f1c X-RootMTR: 20170725095125epcas5p3203dc0de4922af467b4a26e404a07f1c References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 952 Lines: 46 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 Signed-off-by: Vaneet Narang --- 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 -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