aboutsummaryrefslogtreecommitdiff
path: root/scripts/rustdoc_test_builder.rs
diff options
context:
space:
mode:
authorBenjamin Tissoires <[email protected]>2024-07-01 14:39:50 +0200
committerBenjamin Tissoires <[email protected]>2024-07-01 14:48:11 +0200
commit762ced1630a97a457ad2fd5f5a36849009808431 (patch)
treed1811f6b035a46834633b6e46f629ed9cd298a72 /scripts/rustdoc_test_builder.rs
parentfcdf830ea634cf0ee6543b6cd6a4932f92464fc7 (diff)
HID: bpf: fix gcc warning and unify __u64 into u64
I've got multiple reports of: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]. Let's use the same trick than kernel/bpf/helpers.c to shut up that warning. Even if we were on an architecture with addresses on more than 64 bits, this isn't much of an issue as the address is not used as a pointer, but as an hash and the caller is not supposed to go back to the kernel address ever. And while we change those, make sure we use u64 instead of __u64 for consistency Reported-by: Stephen Rothwell <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reported-by: Mirsad Todorovac <[email protected]> Fixes: 67eccf151d76 ("HID: add source argument to HID low level functions") Link: https://patch.msgid.link/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'scripts/rustdoc_test_builder.rs')
0 files changed, 0 insertions, 0 deletions