mbox series

[v2,0/4] Fix warnings in for-6.11/bpf

Message ID 20240701-fix-cki-v2-0-20564e2e1393@kernel.org (mailing list archive)
Headers show
Series Fix warnings in for-6.11/bpf | expand

Message

Benjamin Tissoires July 1, 2024, 12:39 p.m. UTC
We had several complains in linux-next that there were warnings:

CKI was not happy: it was the same situation than in an early report
when HID-BPF was initially included: the automatically generated
vmlinux.h doesn't contain all of the required structs and the
compilation of the bpf program fails.

We have multiple pointer to int cast complains and some docs that were
not rendered properly.

Include everything here.

Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
---
Changes in v2:
- Also fix the pointer to int casts
- Also fix the docs complains
- Link to v1: https://lore.kernel.org/r/20240627-fix-cki-v1-1-2b47ceac116a@kernel.org

---
Benjamin Tissoires (4):
      selftests/hid: ensure CKI can compile our new tests on old kernels
      HID: bpf: fix gcc warning and unify __u64 into u64
      HID: bpf: doc fixes for hid_hw_request() hooks
      HID: bpf: doc fixes for hid_hw_request() hooks

 drivers/hid/bpf/hid_bpf_dispatch.c                 |  8 +++---
 drivers/hid/bpf/hid_bpf_struct_ops.c               |  2 +-
 drivers/hid/hid-core.c                             |  4 +--
 drivers/hid/hidraw.c                               |  6 ++---
 include/linux/hid_bpf.h                            | 31 +++++++++++++---------
 .../testing/selftests/hid/progs/hid_bpf_helpers.h  | 16 +++++++++++
 6 files changed, 44 insertions(+), 23 deletions(-)
---
base-commit: d3e15189bfd4d0a9d3a7ad8bd0e6ebb1c0419f93
change-id: 20240627-fix-cki-f372855cbf6f

Best regards,

Comments

Benjamin Tissoires July 1, 2024, 1:46 p.m. UTC | #1
On Mon, 01 Jul 2024 14:39:48 +0200, Benjamin Tissoires wrote:
> We had several complains in linux-next that there were warnings:
> 
> CKI was not happy: it was the same situation than in an early report
> when HID-BPF was initially included: the automatically generated
> vmlinux.h doesn't contain all of the required structs and the
> compilation of the bpf program fails.
> 
> [...]

Applied to hid/hid.git (for-6.11/bpf), thanks!

[1/4] selftests/hid: ensure CKI can compile our new tests on old kernels
      https://git.kernel.org/hid/hid/c/fcdf830ea634
[2/4] HID: bpf: fix gcc warning and unify __u64 into u64
      https://git.kernel.org/hid/hid/c/762ced1630a9
[3/4] HID: bpf: doc fixes for hid_hw_request() hooks
      https://git.kernel.org/hid/hid/c/c79de517a226
[4/4] HID: bpf: doc fixes for hid_hw_request() hooks
      https://git.kernel.org/hid/hid/c/c79de517a226

Cheers,