[linux-tools] 03/03: tools/build: Fix 'unused variable' warning in the bpf() feature check

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Tue Feb 23 01:20:06 UTC 2016


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository linux-tools.

commit 50f3a5b708aec2d291260d4c769c815238deb228
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Tue Feb 23 01:14:08 2016 +0000

    tools/build: Fix 'unused variable' warning in the bpf() feature check
    
    I deleted slightly too much when removing the run-time check.
---
 debian/changelog                                                     | 1 +
 .../tools-build-remove-bpf-run-time-check-at-build-time.patch        | 5 ++---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 3167605..0cba887 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ linux-tools (4.5~rc5-1~exp4) UNRELEASED; urgency=medium
   * hyperv-daemons: Fix rule redefinition that 'make' warns about
   * debian/control: Build-Depend on dh-python, as dh_python2 warns we should
   * lockdep: Add '+' prefix to make invocation, so it can be parallelised
+  * tools/build: Fix 'unused variable' warning in the bpf() feature check
 
  -- Ben Hutchings <ben at decadent.org.uk>  Mon, 22 Feb 2016 23:21:57 +0000
 
diff --git a/debian/patches/tools-build-remove-bpf-run-time-check-at-build-time.patch b/debian/patches/tools-build-remove-bpf-run-time-check-at-build-time.patch
index 3a570b3..2db71ea 100644
--- a/debian/patches/tools-build-remove-bpf-run-time-check-at-build-time.patch
+++ b/debian/patches/tools-build-remove-bpf-run-time-check-at-build-time.patch
@@ -10,11 +10,10 @@ Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
 ---
 --- a/tools/build/feature/test-bpf.c
 +++ b/tools/build/feature/test-bpf.c
-@@ -27,10 +27,5 @@ int main(void)
- 	attr.log_level = 0;
+@@ -28,9 +28,5 @@ int main(void)
  	attr.kern_version = 0;
  
--	attr = attr;
+ 	attr = attr;
 -	/*
 -	 * Test existence of __NR_bpf and BPF_PROG_LOAD.
 -	 * This call should fail if we run the testcase.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux-tools.git



More information about the Kernel-svn-changes mailing list