From: Alexei Starovoitov Date: Wed, 20 Dec 2023 21:25:47 +0000 (-0800) Subject: Merge branch 'bpf-fix-warning-in-check_obj_size' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=92999245102a09ab2645424a9c9a0a5b16fda833;p=linux.git Merge branch 'bpf-fix-warning-in-check_obj_size' Hou Tao says: ==================== bpf: Fix warning in check_obj_size() From: Hou Tao Hi, The patch set aims to fix the warning in check_obj_size() as reported by lkp [1]. Patch #1 fixes the warning by selecting target cache for free request through c->unit_size, so the unnecessary adjustment of size_index and the checking in check_obj_size() can be removed. Patch #2 fixes the test failure in test_bpf_ma after applying patch #1. Please see individual patches for more details. And comments are always welcome. [1]: https://lore.kernel.org/bpf/202310302113.9f8fe705-oliver.sang@intel.com/ ==================== Link: https://lore.kernel.org/r/20231216131052.27621-1-houtao@huaweicloud.com Signed-off-by: Alexei Starovoitov --- 92999245102a09ab2645424a9c9a0a5b16fda833