diff mbox series

bpf: Remove obsolete iterators_bpf__open_and_load()

Message ID 20220923093509.521560-1-cuigaosheng1@huawei.com (mailing list archive)
State Rejected
Delegated to: BPF
Headers show
Series bpf: Remove obsolete iterators_bpf__open_and_load() | expand

Checks

Context Check Description
netdev/tree_selection success Guessed tree name to be net-next
netdev/fixes_present success Fixes tag not required for -next series
netdev/subject_prefix warning Target tree name not specified in the subject
netdev/cover_letter success Single patches do not need cover letters
netdev/patch_count success Link
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 0 this patch: 0
netdev/cc_maintainers success CCed 13 of 13 maintainers
netdev/build_clang success Errors and warnings before: 0 this patch: 0
netdev/module_param success Was 0 now: 0
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success No Fixes tag
netdev/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 19 lines checked
netdev/kdoc success Errors and warnings before: 0 this patch: 0
netdev/source_inline success Was 0 now: 0
bpf/vmtest-bpf-next-VM_Test-1 success Logs for build for s390x with gcc
bpf/vmtest-bpf-next-VM_Test-15 success Logs for test_verifier on s390x with gcc
bpf/vmtest-bpf-next-VM_Test-16 success Logs for test_verifier on x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-17 success Logs for test_verifier on x86_64 with llvm-16
bpf/vmtest-bpf-next-VM_Test-12 success Logs for test_progs_no_alu32 on s390x with gcc
bpf/vmtest-bpf-next-VM_Test-13 success Logs for test_progs_no_alu32 on x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-14 success Logs for test_progs_no_alu32 on x86_64 with llvm-16
bpf/vmtest-bpf-next-VM_Test-9 success Logs for test_progs on s390x with gcc
bpf/vmtest-bpf-next-VM_Test-10 success Logs for test_progs on x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-11 success Logs for test_progs on x86_64 with llvm-16
bpf/vmtest-bpf-next-VM_Test-7 success Logs for test_maps on x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-8 success Logs for test_maps on x86_64 with llvm-16
bpf/vmtest-bpf-next-PR success PR summary
bpf/vmtest-bpf-next-VM_Test-6 success Logs for test_maps on s390x with gcc
bpf/vmtest-bpf-next-VM_Test-4 success Logs for llvm-toolchain
bpf/vmtest-bpf-next-VM_Test-5 success Logs for set-matrix
bpf/vmtest-bpf-next-VM_Test-2 success Logs for build for x86_64 with gcc
bpf/vmtest-bpf-next-VM_Test-3 success Logs for build for x86_64 with llvm-16

Commit Message

cuigaosheng Sept. 23, 2022, 9:35 a.m. UTC
Commit cb80ddc67152 ("bpf: Convert bpf_preload.ko to use light
skeleton.") drops the last caller of generic_free_nodedata(),
it is useless, so remove it.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 kernel/bpf/preload/iterators/iterators.lskel.h | 15 ---------------
 1 file changed, 15 deletions(-)

Comments

Alexei Starovoitov Sept. 23, 2022, 2:31 p.m. UTC | #1
On Fri, Sep 23, 2022 at 2:35 AM Gaosheng Cui <cuigaosheng1@huawei.com> wrote:
>
> Commit cb80ddc67152 ("bpf: Convert bpf_preload.ko to use light
> skeleton.") drops the last caller of generic_free_nodedata(),
> it is useless, so remove it.
>
> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
> ---
>  kernel/bpf/preload/iterators/iterators.lskel.h | 15 ---------------
>  1 file changed, 15 deletions(-)
>
> diff --git a/kernel/bpf/preload/iterators/iterators.lskel.h b/kernel/bpf/preload/iterators/iterators.lskel.h
> index 70f236a82fe1..e5f9c608f7f7 100644
> --- a/kernel/bpf/preload/iterators/iterators.lskel.h
> +++ b/kernel/bpf/preload/iterators/iterators.lskel.h
> @@ -407,19 +407,4 @@ iterators_bpf__load(struct iterators_bpf *skel)
>         return 0;
>  }
>
> -static inline struct iterators_bpf *
> -iterators_bpf__open_and_load(void)
> -{
> -       struct iterators_bpf *skel;
> -
> -       skel = iterators_bpf__open();
> -       if (!skel)
> -               return NULL;
> -       if (iterators_bpf__load(skel)) {
> -               iterators_bpf__destroy(skel);
> -               return NULL;
> -       }
> -       return skel;
> -}
> -

Top of this file says:
/* THIS FILE IS AUTOGENERATED! */

Please do NOT send such patches for it.
cuigaosheng Sept. 24, 2022, 1:17 a.m. UTC | #2
> Top of this file says:
> /* THIS FILE IS AUTOGENERATED! */
>
> Please do NOT send such patches for it.

It's my negligence,thanks for taking the time to review this patch!

On 2022/9/23 22:31, Alexei Starovoitov wrote:
> On Fri, Sep 23, 2022 at 2:35 AM Gaosheng Cui <cuigaosheng1@huawei.com> wrote:
>> Commit cb80ddc67152 ("bpf: Convert bpf_preload.ko to use light
>> skeleton.") drops the last caller of generic_free_nodedata(),
>> it is useless, so remove it.
>>
>> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
>> ---
>>   kernel/bpf/preload/iterators/iterators.lskel.h | 15 ---------------
>>   1 file changed, 15 deletions(-)
>>
>> diff --git a/kernel/bpf/preload/iterators/iterators.lskel.h b/kernel/bpf/preload/iterators/iterators.lskel.h
>> index 70f236a82fe1..e5f9c608f7f7 100644
>> --- a/kernel/bpf/preload/iterators/iterators.lskel.h
>> +++ b/kernel/bpf/preload/iterators/iterators.lskel.h
>> @@ -407,19 +407,4 @@ iterators_bpf__load(struct iterators_bpf *skel)
>>          return 0;
>>   }
>>
>> -static inline struct iterators_bpf *
>> -iterators_bpf__open_and_load(void)
>> -{
>> -       struct iterators_bpf *skel;
>> -
>> -       skel = iterators_bpf__open();
>> -       if (!skel)
>> -               return NULL;
>> -       if (iterators_bpf__load(skel)) {
>> -               iterators_bpf__destroy(skel);
>> -               return NULL;
>> -       }
>> -       return skel;
>> -}
>> -
> Top of this file says:
> /* THIS FILE IS AUTOGENERATED! */
>
> Please do NOT send such patches for it.
> .
diff mbox series

Patch

diff --git a/kernel/bpf/preload/iterators/iterators.lskel.h b/kernel/bpf/preload/iterators/iterators.lskel.h
index 70f236a82fe1..e5f9c608f7f7 100644
--- a/kernel/bpf/preload/iterators/iterators.lskel.h
+++ b/kernel/bpf/preload/iterators/iterators.lskel.h
@@ -407,19 +407,4 @@  iterators_bpf__load(struct iterators_bpf *skel)
 	return 0;
 }
 
-static inline struct iterators_bpf *
-iterators_bpf__open_and_load(void)
-{
-	struct iterators_bpf *skel;
-
-	skel = iterators_bpf__open();
-	if (!skel)
-		return NULL;
-	if (iterators_bpf__load(skel)) {
-		iterators_bpf__destroy(skel);
-		return NULL;
-	}
-	return skel;
-}
-
 #endif /* __ITERATORS_BPF_SKEL_H__ */