Merge branch 'org.openembedded.dev' of git.openembedded.org:openembedded into org...
[openembedded.git] / recipes / linux / linux-omap-2.6.32 / sctp-fix.patch
1 From patchwork Tue Dec  8 19:52:09 2009
2 Content-Type: text/plain; charset="utf-8"
3 MIME-Version: 1.0
4 Content-Transfer-Encoding: 7bit
5 Subject: net/sctp/sysctl.c: Remove dead strategy handler
6 Date: Tue, 08 Dec 2009 19:52:09 -0000
7 From: Ingo Molnar <mingo@elte.hu>
8 X-Patchwork-Id: 65744
9
10 * Ingo Molnar <mingo@elte.hu> wrote:
11
12 > hi Dave,
13
14 > i just switched to today's -git tree and there's this new build failure 
15 > on x86:
16
17 >  net/sctp/sysctl.c:251: error: unknown field 'strategy' specified in initializer
18 >  net/sctp/sysctl.c:251: error: 'sysctl_intvec' undeclared here (not in a function)
19
20 > havent looked into it yet - config attached.
21
22 That's interaction with the strategy handler removal from Eric. I think 
23 the patch below will do the trick - the callsites have been updated 
24 already to use proc_handler, so ->handler was a dead field.
25
26         Ingo
27
28 Signed-off-by: Ingo Molnar <mingo@elte.hu>
29
30 ---
31 To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
32 the body of a message to majordomo@vger.kernel.org
33 More majordomo info at  http://vger.kernel.org/majordomo-info.html
34 Please read the FAQ at  http://www.tux.org/lkml/
35
36 diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
37 index 419e1e9..832590b 100644
38 --- a/net/sctp/sysctl.c
39 +++ b/net/sctp/sysctl.c
40 @@ -248,7 +248,6 @@ static ctl_table sctp_table[] = {
41                 .maxlen         = sizeof(int),
42                 .mode           = 0644,
43                 .proc_handler   = &proc_dointvec_minmax,
44 -               .strategy       = &sysctl_intvec,
45                 .extra1         = &one,
46                 .extra2         = &rwnd_scale_max,
47         },