Skip to content

Commit

Permalink
add forward declaration of bpf_insn in bpf_module.h (iovisor#2269)
Browse files Browse the repository at this point in the history
struct bpf_insn is used (as a pointee) in bpf_module.h,
but no definition or forward declaration can be found
by just looking at this file.

definition is not needed as it is used as a pointee.
providing a forward declaration here.

Signed-off-by: Yonghong Song <[email protected]>
  • Loading branch information
yonghong-song committed Mar 14, 2019
1 parent 81d17be commit 3b04ac6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cc/bpf_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ class Module;
class Type;
}

struct bpf_insn;

namespace ebpf {

typedef std::map<std::string, std::tuple<uint8_t *, uintptr_t, unsigned>> sec_map_def;
Expand Down

0 comments on commit 3b04ac6

Please sign in to comment.