Re: [PATCH] selftests: bpf: Replace sizeof(arr)/sizeof(arr[0]) with ARRAY_SIZE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello:

This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:

On Tue,  3 Sep 2024 15:25:59 +0800 you wrote:
> From: Feng Yang <yangfeng@xxxxxxxxxx>
> 
> The ARRAY_SIZE macro is more compact and more formal in linux source.
> 
> Signed-off-by: Feng Yang <yangfeng@xxxxxxxxxx>
> ---
>  tools/testing/selftests/bpf/prog_tests/fexit_stress.c        | 3 ++-
>  tools/testing/selftests/bpf/prog_tests/log_buf.c             | 5 +++--
>  .../testing/selftests/bpf/prog_tests/module_fentry_shadow.c  | 3 ++-
>  .../bpf/prog_tests/raw_tp_writable_reject_nbd_invalid.c      | 3 ++-
>  .../selftests/bpf/prog_tests/raw_tp_writable_test_run.c      | 5 +++--
>  tools/testing/selftests/bpf/prog_tests/tc_opts.c             | 2 +-
>  tools/testing/selftests/bpf/prog_tests/unpriv_bpf_disabled.c | 3 ++-
>  tools/testing/selftests/bpf/progs/syscall.c                  | 3 ++-
>  tools/testing/selftests/bpf/progs/test_rdonly_maps.c         | 3 ++-
>  tools/testing/selftests/bpf/progs/verifier_bits_iter.c       | 2 +-
>  10 files changed, 20 insertions(+), 12 deletions(-)

Here is the summary with links:
  - selftests: bpf: Replace sizeof(arr)/sizeof(arr[0]) with ARRAY_SIZE
    https://git.kernel.org/bpf/bpf-next/c/23457b37ec3f

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html






[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux