github.com/cilium/ebpf@v0.15.1-0.20240517100537-8079b37aa138/testdata/invalid-kfunc.c (about)

     1  #include "common.h"
     2  
     3  char __license[] __section("license") = "Dual MIT/GPL";
     4  
     5  // This function declaration is incorrect on purpose.
     6  extern void bpf_kfunc_call_test_mem_len_pass1(void) __ksym;
     7  
     8  __section("tc") int call_kfunc() {
     9  	bpf_kfunc_call_test_mem_len_pass1();
    10  	return 1;
    11  }