diff options
| author | 2026-04-11 00:33:45 -0700 | |
|---|---|---|
| committer | 2026-04-11 07:17:06 -0700 | |
| commit | 5160e584c3616e744252d0a571264f9745bc6e11 (patch) | |
| tree | 9722836209531b5ce3b86023c0f2229bbe0be911 /samples/kobject/ssh:/git@git.zx2c4.com/git: | |
| parent | selftests/bpf: fix __jited_unpriv tag name (diff) | |
selftests/bpf: make str_has_pfx return pointer past the prefix
Change str_has_pfx() to return a pointer to the first character after
the prefix, thus eliminating the repetitive (s + sizeof(PFX) - 1)
patterns.
Acked-by: Ihor Solodrai <ihor.solodrai@linux.dev>
Acked-by: Mykyta Yatsenko <yatsenko@meta.com>
Reviewed-by: Puranjay Mohan <puranjay@kernel.org>
Signed-off-by: Eduard Zingerman <eddyz87@gmail.com>
Link: https://lore.kernel.org/r/20260410-selftests-global-tags-ordering-v2-2-c566ec9781bf@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'samples/kobject/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
