diff mbox series

bpf: remove unused including <linux/version.h>

Message ID 1608086835-54523-1-git-send-email-tiantao6@hisilicon.com (mailing list archive)
State Accepted
Commit d467d80dc399ba77875d647f2f37b7d1a70d94c2
Delegated to: BPF
Headers show
Series bpf: remove unused including <linux/version.h> | expand

Checks

Context Check Description
netdev/tree_selection success Not a local patch

Commit Message

Tian Tao Dec. 16, 2020, 2:47 a.m. UTC
Remove including <linux/version.h> that don't need it.

Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
---
 kernel/bpf/syscall.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Andrii Nakryiko Dec. 17, 2020, 12:16 a.m. UTC | #1
On Tue, Dec 15, 2020 at 6:47 PM Tian Tao <tiantao6@hisilicon.com> wrote:
>
> Remove including <linux/version.h> that don't need it.
>
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
> ---
>  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@kernel.org>

> 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
>
patchwork-bot+netdevbpf@kernel.org Dec. 18, 2020, 3:30 p.m. UTC | #2
Hello:

This patch was applied to bpf/bpf.git (refs/heads/master):

On Wed, 16 Dec 2020 10:47:15 +0800 you wrote:
> Remove including <linux/version.h> that don't need it.
> 
> Signed-off-by: Tian Tao <tiantao6@hisilicon.com>
> ---
>  kernel/bpf/syscall.c | 1 -
>  1 file changed, 1 deletion(-)

Here is the summary with links:
  - bpf: remove unused including <linux/version.h>
    https://git.kernel.org/bpf/bpf/c/d467d80dc399

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

Patch

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>