tools, bpftool: Poison and replace kernel integer typedefs
[sfrench/cifs-2.6.git] / tools / bpf / bpftool / cfg.c
index 3e21f994f2626a83d06408308a93f4861156060c..1951219a9af70a8a8dcd4e225ef40d75faa7fcb7 100644 (file)
@@ -157,7 +157,7 @@ static bool cfg_partition_funcs(struct cfg *cfg, struct bpf_insn *cur,
        return false;
 }
 
-static bool is_jmp_insn(u8 code)
+static bool is_jmp_insn(__u8 code)
 {
        return BPF_CLASS(code) == BPF_JMP || BPF_CLASS(code) == BPF_JMP32;
 }
@@ -176,7 +176,7 @@ static bool func_partition_bb_head(struct func_node *func)
 
        for (; cur <= end; cur++) {
                if (is_jmp_insn(cur->code)) {
-                       u8 opcode = BPF_OP(cur->code);
+                       __u8 opcode = BPF_OP(cur->code);
 
                        if (opcode == BPF_EXIT || opcode == BPF_CALL)
                                continue;