All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serue@us.ibm.com>
To: linux-kernel@vger.kernel.org
Cc: mm-commits@vger.kernel.org, adobriyan@gmail.com
Subject: Re: + nsproxy-remove-init_nsproxy.patch added to -mm tree
Date: Wed, 24 Feb 2010 14:23:52 -0600	[thread overview]
Message-ID: <20100224202352.GA32098@us.ibm.com> (raw)
In-Reply-To: <201002242005.o1OK5jbD017502@imap1.linux-foundation.org>

Quoting akpm@linux-foundation.org (akpm@linux-foundation.org):
> 
> The patch titled
>      nsproxy: remove INIT_NSPROXY()
> has been added to the -mm tree.  Its filename is
>      nsproxy-remove-init_nsproxy.patch
> 
> Before you just go and hit "reply", please:
>    a) Consider who else should be cc'ed
>    b) Prefer to cc a suitable mailing list as well
>    c) Ideally: find the original patch on the mailing list and do a
>       reply-to-all to that, adding suitable additional cc's
> 
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
> 
> See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
> out what to do about this
> 
> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
> 
> ------------------------------------------------------
> Subject: nsproxy: remove INIT_NSPROXY()
> From: Alexey Dobriyan <adobriyan@gmail.com>
> 
> Remove INIT_NSPROXY(), use C99 initializer.
> Remove INIT_IPC_NS(), INIT_NET_NS() while I'm at it.
> 
> Note: headers trim will be done later, now it's quite pointless because
> results will be invalidated by merge window.
> 
> Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
> Cc: Serge Hallyn <serue@us.ibm.com>

looks ok

Acked-by: Serge Hallyn <serue@us.ibm.com>

> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  include/linux/init_task.h     |    8 --------
>  include/linux/ipc_namespace.h |    5 -----
>  include/net/net_namespace.h   |    5 -----
>  kernel/nsproxy.c              |   13 ++++++++++++-
>  4 files changed, 12 insertions(+), 19 deletions(-)
> 
> diff -puN include/linux/init_task.h~nsproxy-remove-init_nsproxy include/linux/init_task.h
> --- a/include/linux/init_task.h~nsproxy-remove-init_nsproxy
> +++ a/include/linux/init_task.h
> @@ -32,14 +32,6 @@ extern struct fs_struct init_fs;
>  }
> 
>  extern struct nsproxy init_nsproxy;
> -#define INIT_NSPROXY(nsproxy) {						\
> -	.pid_ns		= &init_pid_ns,					\
> -	.count		= ATOMIC_INIT(1),				\
> -	.uts_ns		= &init_uts_ns,					\
> -	.mnt_ns		= NULL,						\
> -	INIT_NET_NS(net_ns)                                             \
> -	INIT_IPC_NS(ipc_ns)						\
> -}
> 
>  #define INIT_SIGHAND(sighand) {						\
>  	.count		= ATOMIC_INIT(1), 				\
> diff -puN include/linux/ipc_namespace.h~nsproxy-remove-init_nsproxy include/linux/ipc_namespace.h
> --- a/include/linux/ipc_namespace.h~nsproxy-remove-init_nsproxy
> +++ a/include/linux/ipc_namespace.h
> @@ -62,11 +62,6 @@ extern struct ipc_namespace init_ipc_ns;
>  extern atomic_t nr_ipc_ns;
> 
>  extern spinlock_t mq_lock;
> -#if defined(CONFIG_POSIX_MQUEUE) || defined(CONFIG_SYSVIPC)
> -#define INIT_IPC_NS(ns)		.ns		= &init_ipc_ns,
> -#else
> -#define INIT_IPC_NS(ns)
> -#endif
> 
>  #ifdef CONFIG_SYSVIPC
>  extern int register_ipcns_notifier(struct ipc_namespace *);
> diff -puN include/net/net_namespace.h~nsproxy-remove-init_nsproxy include/net/net_namespace.h
> --- a/include/net/net_namespace.h~nsproxy-remove-init_nsproxy
> +++ a/include/net/net_namespace.h
> @@ -100,14 +100,9 @@ struct net {
>  extern struct net init_net;
> 
>  #ifdef CONFIG_NET
> -#define INIT_NET_NS(net_ns) .net_ns = &init_net,
> -
>  extern struct net *copy_net_ns(unsigned long flags, struct net *net_ns);
> 
>  #else /* CONFIG_NET */
> -
> -#define INIT_NET_NS(net_ns)
> -
>  static inline struct net *copy_net_ns(unsigned long flags, struct net *net_ns)
>  {
>  	/* There is nothing to copy so this is a noop */
> diff -puN kernel/nsproxy.c~nsproxy-remove-init_nsproxy kernel/nsproxy.c
> --- a/kernel/nsproxy.c~nsproxy-remove-init_nsproxy
> +++ a/kernel/nsproxy.c
> @@ -24,7 +24,18 @@
> 
>  static struct kmem_cache *nsproxy_cachep;
> 
> -struct nsproxy init_nsproxy = INIT_NSPROXY(init_nsproxy);
> +struct nsproxy init_nsproxy = {
> +	.count	= ATOMIC_INIT(1),
> +	.uts_ns	= &init_uts_ns,
> +#if defined(CONFIG_POSIX_MQUEUE) || defined(CONFIG_SYSVIPC)
> +	.ipc_ns	= &init_ipc_ns,
> +#endif
> +	.mnt_ns	= NULL,
> +	.pid_ns	= &init_pid_ns,
> +#ifdef CONFIG_NET
> +	.net_ns	= &init_net,
> +#endif
> +};
> 
>  static inline struct nsproxy *create_nsproxy(void)
>  {
> _
> 
> Patches currently in -mm which might be from adobriyan@gmail.com are
> 
> origin.patch
> linux-next.patch
> bitops-rename-for_each_bit-to-for_each_set_bit.patch
> arm-convert-proc-cpu-aligment-to-seq_file.patch
> mpt-fusion-convert-to-seq_file.patch
> proc-do-translation-unlink-atomically-at-remove_proc_entry.patch
> proc-warn-on-non-existing-proc-entries.patch
> tracehooks-kill-some-pt_ptraced-checks.patch
> tracehooks-check-pt_ptraced-before-reporting-the-single-step.patch
> ptrace_signal-check-pt_ptraced-before-reporting-a-signal.patch
> export-__ptrace_detach-and-do_notify_parent_cldstop.patch
> reorder-the-code-in-kernel-ptracec.patch
> implement-utrace-ptrace.patch
> utrace-core.patch
> nsproxy-remove-init_nsproxy.patch
> 
> --
> To unsubscribe from this list: send the line "unsubscribe mm-commits" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2010-02-24 20:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-24 20:05 + nsproxy-remove-init_nsproxy.patch added to -mm tree akpm
2010-02-24 20:23 ` Serge E. Hallyn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100224202352.GA32098@us.ibm.com \
    --to=serue@us.ibm.com \
    --cc=adobriyan@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.