Skip to content

Commit 373a4e1

Browse files
author
Alexei Starovoitov
committed
Merge branch 'fixes-for-kfunc-prototype-generation'
Daniel Xu says: ==================== Fixes for kfunc prototype generation This patchset fixes new warnings and errors that kfunc prototype generation caused. ==================== Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
2 parents 041c1dc + 6a82601 commit 373a4e1

File tree

5 files changed

+6
-2
lines changed

5 files changed

+6
-2
lines changed

kernel/bpf/helpers.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ __bpf_kfunc struct task_struct *bpf_task_from_pid(s32 pid)
24332433

24342434
/**
24352435
* bpf_dynptr_slice() - Obtain a read-only pointer to the dynptr data.
2436-
* @ptr: The dynptr whose data slice to retrieve
2436+
* @p: The dynptr whose data slice to retrieve
24372437
* @offset: Offset into the dynptr
24382438
* @buffer__opt: User-provided buffer to copy contents into. May be NULL
24392439
* @buffer__szk: Size (in bytes) of the buffer if present. This is the
@@ -2504,7 +2504,7 @@ __bpf_kfunc void *bpf_dynptr_slice(const struct bpf_dynptr *p, u32 offset,
25042504

25052505
/**
25062506
* bpf_dynptr_slice_rdwr() - Obtain a writable pointer to the dynptr data.
2507-
* @ptr: The dynptr whose data slice to retrieve
2507+
* @p: The dynptr whose data slice to retrieve
25082508
* @offset: Offset into the dynptr
25092509
* @buffer__opt: User-provided buffer to copy contents into. May be NULL
25102510
* @buffer__szk: Size (in bytes) of the buffer if present. This is the

tools/testing/selftests/bpf/progs/arena_htab.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */
3+
#define BPF_NO_KFUNC_PROTOTYPES
34
#include <vmlinux.h>
45
#include <bpf/bpf_helpers.h>
56
#include <bpf/bpf_tracing.h>

tools/testing/selftests/bpf/progs/arena_list.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */
3+
#define BPF_NO_KFUNC_PROTOTYPES
34
#include <vmlinux.h>
45
#include <bpf/bpf_helpers.h>
56
#include <bpf/bpf_tracing.h>

tools/testing/selftests/bpf/progs/verifier_arena.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */
33

4+
#define BPF_NO_KFUNC_PROTOTYPES
45
#include <vmlinux.h>
56
#include <bpf/bpf_helpers.h>
67
#include <bpf/bpf_tracing.h>

tools/testing/selftests/bpf/progs/verifier_arena_large.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* Copyright (c) 2024 Meta Platforms, Inc. and affiliates. */
33

4+
#define BPF_NO_KFUNC_PROTOTYPES
45
#include <vmlinux.h>
56
#include <bpf/bpf_helpers.h>
67
#include <bpf/bpf_tracing.h>

0 commit comments

Comments
 (0)