+ add-process_session-helper-routine-deprecate-old-field.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     add process_session() helper routine: deprecate old field

has been added to the -mm tree.  Its filename is

     add-process_session-helper-routine-deprecate-old-field.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: add process_session() helper routine: deprecate old field
From: Cedric Le Goater <clg@xxxxxxxxxx>

Add an anonymous union and ((deprecated)) to catch direct usage of the
session field.


Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 include/linux/init_task.h |   11 ++++++-----
 include/linux/sched.h     |    9 +++++++--
 2 files changed, 13 insertions(+), 7 deletions(-)

diff -puN include/linux/init_task.h~add-process_session-helper-routine-deprecate-old-field include/linux/init_task.h
--- a/include/linux/init_task.h~add-process_session-helper-routine-deprecate-old-field
+++ a/include/linux/init_task.h
@@ -57,17 +57,18 @@
 	.cpu_vm_mask	= CPU_MASK_ALL,				\
 }
 
-#define INIT_SIGNALS(sig) {	\
-	.count		= ATOMIC_INIT(1), 		\
+#define INIT_SIGNALS(sig) {						\
+	.count		= ATOMIC_INIT(1), 				\
 	.wait_chldexit	= __WAIT_QUEUE_HEAD_INITIALIZER(sig.wait_chldexit),\
-	.shared_pending	= { 				\
+	.shared_pending	= { 						\
 		.list = LIST_HEAD_INIT(sig.shared_pending.list),	\
-		.signal =  {{0}}}, \
+		.signal =  {{0}}},					\
 	.posix_timers	 = LIST_HEAD_INIT(sig.posix_timers),		\
 	.cpu_timers	= INIT_CPU_TIMERS(sig.cpu_timers),		\
 	.rlim		= INIT_RLIMITS,					\
 	.pgrp		= 1,						\
-	.session	= 1,						\
+	.tty_old_pgrp   = 0,						\
+	{ .session      = 1},						\
 }
 
 extern struct nsproxy init_nsproxy;
diff -puN include/linux/sched.h~add-process_session-helper-routine-deprecate-old-field include/linux/sched.h
--- a/include/linux/sched.h~add-process_session-helper-routine-deprecate-old-field
+++ a/include/linux/sched.h
@@ -435,7 +435,12 @@ struct signal_struct {
 	/* job control IDs */
 	pid_t pgrp;
 	pid_t tty_old_pgrp;
-	pid_t session;
+
+	union {
+		pid_t session __attribute ((deprecated));
+		pid_t __session;
+	};
+
 	/* boolean value for session group leader */
 	int leader;
 
@@ -1049,7 +1054,7 @@ static inline pid_t process_group(struct
 
 static inline pid_t process_session(struct task_struct *tsk)
 {
-	return tsk->signal->session;
+	return tsk->signal->__session;
 }
 
 static inline struct pid *task_pid(struct task_struct *task)
_

Patches currently in -mm which might be from clg@xxxxxxxxxx are

mm-fix-pagecache-write-deadlocks-xip.patch
git-s390.patch
add-process_session-helper-routine.patch
add-process_session-helper-routine-deprecate-old-field.patch
rename-struct-namespace-to-struct-mnt_namespace.patch
add-an-identifier-to-nsproxy.patch
rename-struct-pspace-to-struct-pid_namespace.patch
add-pid_namespace-to-nsproxy.patch
use-current-nsproxy-pid_ns.patch
add-child-reaper-to-pid_namespace.patch
rename-struct-namespace-to-struct-mnt_namespace-cachefiles.patch
statistics-replace-inode-ugeneric_ip-with-i_private.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux