diff --git a/debian/patches/bugfix/all/cpupower-fix-checks-for-cpu-existence.patch b/debian/patches/bugfix/all/cpupower-fix-checks-for-cpu-existence.patch index 887ea5001..be5f528f4 100644 --- a/debian/patches/bugfix/all/cpupower-fix-checks-for-cpu-existence.patch +++ b/debian/patches/bugfix/all/cpupower-fix-checks-for-cpu-existence.patch @@ -1,8 +1,7 @@ From: Ben Hutchings Date: Thu, 03 Nov 2016 15:25:26 -0600 Subject: cpupower: Fix checks for CPU existence -Bug: https://bugzilla.kernel.org/show_bug.cgi?id=135391 -Bug-Debian: https://bugs.debian.org/843071 +Forwarded: https://marc.info/?l=linux-pm&m=149248268214265 Calls to cpufreq_cpu_exists(cpu) were converted to cpupower_is_cpu_online(cpu) when libcpupower was introduced and the @@ -16,9 +15,6 @@ cpufreq-set has already been fixed (commit c25badc9ceb6). In cpufreq-bench, which prints an error message for offline CPUs, properly distinguish and report the zero and negative cases. -Reported-by: Jose -Reported-by: Julien RIVAUD -Cc: stable # 4.7+ Fixes: ac5a181d065d ("cpupower: Add cpuidle parts into library") Signed-off-by: Ben Hutchings --- diff --git a/debian/patches/bugfix/all/kbuild-do-not-use-hyphen-in-exported-variable-name.patch b/debian/patches/bugfix/all/kbuild-do-not-use-hyphen-in-exported-variable-name.patch index 4dacc922c..808268719 100644 --- a/debian/patches/bugfix/all/kbuild-do-not-use-hyphen-in-exported-variable-name.patch +++ b/debian/patches/bugfix/all/kbuild-do-not-use-hyphen-in-exported-variable-name.patch @@ -2,6 +2,7 @@ From: Ben Hutchings Date: Fri, 26 Aug 2016 01:31:28 +0100 Subject: kbuild: Do not use hyphen in exported variable name Bug-Debian: https://bugs.debian.org/833561 +Forwarded: https://marc.info/?l=linux-kbuild&m=141523555023625 This definition in Makefile.dtbinst: @@ -15,6 +16,7 @@ because its name contains a hyphen. Rename the variable to dtbinst_root. References: https://bugs.debian.org/833561 +Fixes: 323a028d39cdi ("dts, kbuild: Implement support for dtb vendor subdirs") Signed-off-by: Ben Hutchings --- --- a/scripts/Makefile.dtbinst diff --git a/debian/patches/bugfix/all/kbuild-include-addtree-remove-quotes-before-matching-path.patch b/debian/patches/bugfix/all/kbuild-include-addtree-remove-quotes-before-matching-path.patch index 46d73f423..df7a86051 100644 --- a/debian/patches/bugfix/all/kbuild-include-addtree-remove-quotes-before-matching-path.patch +++ b/debian/patches/bugfix/all/kbuild-include-addtree-remove-quotes-before-matching-path.patch @@ -2,6 +2,7 @@ From: Ben Hutchings Date: Sat, 04 Mar 2017 01:44:15 +0000 Subject: Kbuild.include: addtree: Remove quotes before matching path Bug-Debian: https://bugs.debian.org/856474 +Forwarded: https://marc.info/?l=linux-kbuild&m=148987677205629 systemtap currently fails to build modules when the kernel source and object trees are separate. diff --git a/debian/patches/bugfix/all/kbuild-use-nostdinc-in-compile-tests.patch b/debian/patches/bugfix/all/kbuild-use-nostdinc-in-compile-tests.patch index c4f5baf03..2b136e642 100644 --- a/debian/patches/bugfix/all/kbuild-use-nostdinc-in-compile-tests.patch +++ b/debian/patches/bugfix/all/kbuild-use-nostdinc-in-compile-tests.patch @@ -3,16 +3,23 @@ Date: Sat, 19 Oct 2013 19:43:35 +0100 Subject: kbuild: Use -nostdinc in compile tests Bug-Debian: https://bugs.debian.org/726861 Bug-Debian: https://bugs.debian.org/717557 -Forwarded: http://mid.gmane.org/1415235534.3398.35.camel@decadent.org.uk +Forwarded: https://marc.info/?l=linux-kbuild&m=141523555023625 -Debian's gcc 4.8 pre-includes by default, which in -turn includes . This fails when building a 64-bit -kernel and only 32-bit C library headers installed. +gcc 4.8 and later include by default. In some +versions of eglibc that includes , but that may be +missing when building with a biarch compiler. Also +itself could be missing as we are only trying to build a kernel, not +userland. The -nostdinc option disables this, though it isn't explicitly documented. This option is already used when actually building -the kernel. +the kernel, but not by cc-option and other tests. This can result +in silently miscompiling the kernel. +References: https://bugs.debian.org/717557 +References: https://bugs.debian.org/726861 +Signed-off-by: Ben Hutchings +--- --- a/scripts/Kbuild.include +++ b/scripts/Kbuild.include @@ -116,12 +116,12 @@ CC_OPTION_CFLAGS = $(filter-out $(GCC_PL diff --git a/debian/patches/bugfix/all/media-dvb-usb-dibusb-mc-common-add-module_license.patch b/debian/patches/bugfix/all/media-dvb-usb-dibusb-mc-common-add-module_license.patch index 8da00ef25..befac5dcc 100644 --- a/debian/patches/bugfix/all/media-dvb-usb-dibusb-mc-common-add-module_license.patch +++ b/debian/patches/bugfix/all/media-dvb-usb-dibusb-mc-common-add-module_license.patch @@ -2,6 +2,7 @@ From: Ben Hutchings Date: Fri, 17 Feb 2017 02:51:21 +0000 Subject: [media] dvb-usb-dibusb-mc-common: Add MODULE_LICENSE Bug-Debian: https://bugs.debian.org/853110 +Forwarded: https://patchwork.kernel.org/patch/9580907/ dvb-usb-dibusb-mc-common is licensed under GPLv2, and if we don't say so then it won't even load since it needs a GPL-only symbol. diff --git a/debian/patches/bugfix/all/partially-revert-usb-kconfig-using-select-for-usb_co.patch b/debian/patches/bugfix/all/partially-revert-usb-kconfig-using-select-for-usb_co.patch index da62e63a0..b126826fd 100644 --- a/debian/patches/bugfix/all/partially-revert-usb-kconfig-using-select-for-usb_co.patch +++ b/debian/patches/bugfix/all/partially-revert-usb-kconfig-using-select-for-usb_co.patch @@ -1,12 +1,14 @@ From: Ben Hutchings Date: Wed, 11 Jan 2017 04:30:40 +0000 Subject: Partially revert "usb: Kconfig: using select for USB_COMMON dependency" +Forwarded: https://marc.info/?l=linux-usb&m=149248300414300 This reverts commit cb9c1cfc86926d0e86d19c8e34f6c23458cd3478 for USB_LED_TRIG. This config symbol has bool type and enables extra code in usb_common itself, not a separate driver. Enabling it should not force usb_common to be built-in! +Fixes: cb9c1cfc8692 ("usb: Kconfig: using select for USB_COMMON dependency") Signed-off-by: Ben Hutchings --- drivers/usb/Kconfig | 3 +--