All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix build when USE_BPF is not defined
@ 2016-11-07 11:58 Jan Stancek
  2016-11-07 14:34 ` Dave Jones
  0 siblings, 1 reply; 5+ messages in thread
From: Jan Stancek @ 2016-11-07 11:58 UTC (permalink / raw
  To: trinity, davej; +Cc: jstancek

net/bpf.o: In function `bpf_gen_filter': bpf.c:852: undefined reference to `get_rand_bpf_fd'

Signed-off-by: Jan Stancek <jstancek@redhat.com>
---
 net/bpf.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/net/bpf.c b/net/bpf.c
index 4fe941733016..bb07a777abe9 100644
--- a/net/bpf.c
+++ b/net/bpf.c
@@ -8,6 +8,7 @@
 #include <string.h>
 
 #include "bpf.h"
+#include "config.h"
 #include "debug.h"
 #include "log.h"
 #include "net.h"
@@ -849,8 +850,10 @@ void bpf_gen_filter(unsigned long **addr, unsigned long *addrlen)
 		switch (rnd() % 3) {
 		case 0:	bpf->filter[i].k = (uint32_t) rand32();
 			break;
+#ifdef USE_BPF
 		case 1:	bpf->filter[i].k = (uint32_t) get_rand_bpf_fd();
 			break;
+#endif
 		case 2:	break;
 		}
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-08 15:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-07 11:58 [PATCH] fix build when USE_BPF is not defined Jan Stancek
2016-11-07 14:34 ` Dave Jones
2016-11-08 10:46   ` Jan Stancek
2016-11-08 15:00     ` Dave Jones
2016-11-08 15:08       ` Jan Stancek

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.