Re: [PATCH] bpf: remove unused including <linux/version.h>

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

 



On Tue, Dec 15, 2020 at 6:47 PM Tian Tao <tiantao6@xxxxxxxxxxxxx> wrote:
>
> Remove including <linux/version.h> that don't need it.
>
> Signed-off-by: Tian Tao <tiantao6@xxxxxxxxxxxxx>
> ---
>  kernel/bpf/syscall.c | 1 -
>  1 file changed, 1 deletion(-)
>

Probably a left over since times kprobe programs were required to
specify expected kernel version.

Acked-by: Andrii Nakryiko <andrii@xxxxxxxxxx>

> diff --git a/kernel/bpf/syscall.c b/kernel/bpf/syscall.c
> index 4caf06f..c3bb03c8 100644
> --- a/kernel/bpf/syscall.c
> +++ b/kernel/bpf/syscall.c
> @@ -17,7 +17,6 @@
>  #include <linux/fs.h>
>  #include <linux/license.h>
>  #include <linux/filter.h>
> -#include <linux/version.h>
>  #include <linux/kernel.h>
>  #include <linux/idr.h>
>  #include <linux/cred.h>
> --
> 2.7.4
>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux