* [RESEND PATCH 1/3] X25: Move SYSCTL ifdefs into header
@ 2009-12-14 22:02 andrew hendry
2009-12-15 5:49 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: andrew hendry @ 2009-12-14 22:02 UTC (permalink / raw)
To: netdev, linux-kernel
Moves the CONFIG_SYSCTL ifdefs in x25_init into header.
Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com>
Acked-by: "Eric W. Biederman" <ebiederm@xmission.com>
diff -uprN -X a/Documentation/dontdiff a/include/net/x25.h b/include/net/x25.h
--- a/include/net/x25.h 2009-11-10 11:32:31.000000000 +1100
+++ b/include/net/x25.h 2009-11-25 09:05:21.000000000 +1100
@@ -287,8 +287,14 @@ extern unsigned long x25_display_timer(s
extern void x25_check_rbuf(struct sock *);
/* sysctl_net_x25.c */
+#ifdef CONFIG_SYSCTL
extern void x25_register_sysctl(void);
extern void x25_unregister_sysctl(void);
+#else
+static inline void x25_register_sysctl(void) {};
+static inline void x25_unregister_sysctl(void) {};
+#endif /* CONFIG_SYSCTL */
+
struct x25_skb_cb {
unsigned flags;
};
diff -uprN -X a/Documentation/dontdiff a/net/x25/af_x25.c b/net/x25/af_x25.c
--- a/net/x25/af_x25.c 2009-11-17 10:30:18.000000000 +1100
+++ b/net/x25/af_x25.c 2009-11-25 09:04:25.000000000 +1100
@@ -1667,9 +1667,7 @@ static int __init x25_init(void)
printk(KERN_INFO "X.25 for Linux Version 0.2\n");
-#ifdef CONFIG_SYSCTL
x25_register_sysctl();
-#endif
x25_proc_init();
out:
return rc;
@@ -1682,9 +1680,7 @@ static void __exit x25_exit(void)
x25_link_free();
x25_route_free();
-#ifdef CONFIG_SYSCTL
x25_unregister_sysctl();
-#endif
unregister_netdevice_notifier(&x25_dev_notifier);
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RESEND PATCH 1/3] X25: Move SYSCTL ifdefs into header
2009-12-14 22:02 [RESEND PATCH 1/3] X25: Move SYSCTL ifdefs into header andrew hendry
@ 2009-12-15 5:49 ` David Miller
2009-12-15 23:26 ` andrew hendry
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2009-12-15 5:49 UTC (permalink / raw)
To: andrew.hendry; +Cc: netdev, linux-kernel
These patches do not apply to the current sources.
Please respin them against net-2.6
In fact it looks like at least your first patch is already in the
tree.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RESEND PATCH 1/3] X25: Move SYSCTL ifdefs into header
2009-12-15 5:49 ` David Miller
@ 2009-12-15 23:26 ` andrew hendry
2009-12-15 23:32 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: andrew hendry @ 2009-12-15 23:26 UTC (permalink / raw)
To: David Miller; +Cc: netdev, linux-kernel
Sorry, ignore these resends, all 3 are were in net-2.6 and made it to linux-next
2f5517aefcfbdd7fdf0f03b13d292a10d445887f
1fd975a0520cdb27681855d5a18526e328d36b5c
429d33ace5ce6122817f8abe9d170eaa55dc3af9
I'll watch git in the future, not the mailing list pull requests to track.
On Tue, Dec 15, 2009 at 4:49 PM, David Miller <davem@davemloft.net> wrote:
>
> These patches do not apply to the current sources.
>
> Please respin them against net-2.6
>
> In fact it looks like at least your first patch is already in the
> tree.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [RESEND PATCH 1/3] X25: Move SYSCTL ifdefs into header
2009-12-15 23:26 ` andrew hendry
@ 2009-12-15 23:32 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2009-12-15 23:32 UTC (permalink / raw)
To: andrew.hendry; +Cc: netdev, linux-kernel
From: andrew hendry <andrew.hendry@gmail.com>
Date: Wed, 16 Dec 2009 10:26:19 +1100
> Sorry, ignore these resends, all 3 are were in net-2.6 and made it to linux-next
> 2f5517aefcfbdd7fdf0f03b13d292a10d445887f
> 1fd975a0520cdb27681855d5a18526e328d36b5c
> 429d33ace5ce6122817f8abe9d170eaa55dc3af9
> I'll watch git in the future, not the mailing list pull requests to track.
Another good place to check is patchwork:
http://patchwork.ozlabs.org/patch/39256/
http://patchwork.ozlabs.org/patch/39257/
http://patchwork.ozlabs.org/patch/39258/
All of those patches were put into state "applied".
New patches show up at:
http://patchwork.ozlabs.org/project/netdev/list/
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-12-15 23:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-14 22:02 [RESEND PATCH 1/3] X25: Move SYSCTL ifdefs into header andrew hendry
2009-12-15 5:49 ` David Miller
2009-12-15 23:26 ` andrew hendry
2009-12-15 23:32 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®