public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org, "David S. Miller" <davem@davemloft.net>
Subject: Re: [build bug] net/sched/cls_flow.c:598: error: 'struct	tcf_ematch_tree' has no member named 'hdr'
Date: Fri, 01 Feb 2008 16:53:32 +0100	[thread overview]
Message-ID: <47A3407C.8080408@trash.net> (raw)
In-Reply-To: <20080201133614.GA14110@elte.hu>

[-- Attachment #1: Type: text/plain, Size: 347 bytes --]

Ingo Molnar wrote:
> another build bug found via x86.git randconfig testing:
>
>  net/sched/cls_flow.c: In function 'flow_dump':
>  net/sched/cls_flow.c:598: error: 'struct tcf_ematch_tree' has no member named 'hdr'
>
> config attached. Introduced in last night's networking merge i guess.
>   

Oops, thanks Ingo. Attached patch should fix it.



[-- Attachment #2: x --]
[-- Type: text/plain, Size: 993 bytes --]

commit 28383868d7999539f35ae06666c2dfbde103a1d3
Author: Patrick McHardy <kaber@trash.net>
Date:   Fri Feb 1 16:50:44 2008 +0100

    [NET_SCHED]: cls_flow: fix build error with CONFIG_NET_EMATCH=n
    
    Reported by Ingo Molnar:
    
     net/sched/cls_flow.c: In function 'flow_dump':
     net/sched/cls_flow.c:598: error: 'struct tcf_ematch_tree' has no member named 'hdr'
    
    Signed-off-by: Patrick McHardy <kaber@trash.net>

diff --git a/net/sched/cls_flow.c b/net/sched/cls_flow.c
index 5a7f6a3..f30be74 100644
--- a/net/sched/cls_flow.c
+++ b/net/sched/cls_flow.c
@@ -595,10 +595,11 @@ static int flow_dump(struct tcf_proto *tp, unsigned long fh,
 	if (tcf_exts_dump(skb, &f->exts, &flow_ext_map) < 0)
 		goto nla_put_failure;
 
+#ifdef CONFIG_NET_EMATCH
 	if (f->ematches.hdr.nmatches &&
 	    tcf_em_tree_dump(skb, &f->ematches, TCA_FLOW_EMATCHES) < 0)
 		goto nla_put_failure;
-
+#endif
 	nla_nest_end(skb, nest);
 
 	if (tcf_exts_dump_stats(skb, &f->exts, &flow_ext_map) < 0)

      reply	other threads:[~2008-02-01 15:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-01 13:36 [build bug] net/sched/cls_flow.c:598: error: 'struct tcf_ematch_tree' has no member named 'hdr' Ingo Molnar
2008-02-01 15:53 ` Patrick McHardy [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=47A3407C.8080408@trash.net \
    --to=kaber@trash.net \
    --cc=davem@davemloft.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox