]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/bpf/core.c
scsi: ibmvfc: Set READ FCP_XFER_READY DISABLED bit in PRLI
[karo-tx-linux.git] / kernel / bpf / core.c
index b94a3655059165b97f955c37fddc0a9a33f8e94d..03fd23d4d5875600971b71e193fdb8fd084ee422 100644 (file)
@@ -719,14 +719,13 @@ select_insn:
 
                if (unlikely(index >= array->map.max_entries))
                        goto out;
-
                if (unlikely(tail_call_cnt > MAX_TAIL_CALL_CNT))
                        goto out;
 
                tail_call_cnt++;
 
                prog = READ_ONCE(array->ptrs[index]);
-               if (unlikely(!prog))
+               if (!prog)
                        goto out;
 
                /* ARG1 at this point is guaranteed to point to CTX from
@@ -1055,9 +1054,11 @@ const struct bpf_func_proto * __weak bpf_get_trace_printk_proto(void)
        return NULL;
 }
 
-const struct bpf_func_proto * __weak bpf_get_event_output_proto(void)
+u64 __weak
+bpf_event_output(struct bpf_map *map, u64 flags, void *meta, u64 meta_size,
+                void *ctx, u64 ctx_size, bpf_ctx_copy_t ctx_copy)
 {
-       return NULL;
+       return -ENOTSUPP;
 }
 
 /* Always built-in helper functions. */