Hello community,

here is the log from the commit of package kernel-source for openSUSE:Factory 
checked in at 2017-03-29 13:23:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/kernel-source (Old)
 and      /work/SRC/openSUSE:Factory/.kernel-source.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "kernel-source"

Wed Mar 29 13:23:41 2017 rev:357 rq:481987 version:4.10.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/kernel-source/dtb-aarch64.changes        
2017-03-20 17:03:36.336339531 +0100
+++ /work/SRC/openSUSE:Factory/.kernel-source.new/dtb-aarch64.changes   
2017-03-29 13:23:44.583481810 +0200
@@ -1,0 +2,18 @@
+Wed Mar 22 14:06:39 CET 2017 - jsl...@suse.cz
+
+- Linux 4.10.5 (CVE-2017-6353 bnc#1012628 bsc#1027066
+  bsc#1027798).
+- Delete patches.fixes/bonding-use-ETH_MAX_MTU-as-max-mtu.patch.
+- Delete
+  patches.fixes/sctp-deny-peeloff-operation-on-asocs-with-threads-sl.patch.
+- Delete patches.fixes/team-use-ETH_MAX_MTU-as-max-mtu.patch.
+- Update config files.
+- commit f3fbfc6
+
+-------------------------------------------------------------------
+Mon Mar 20 11:31:28 CET 2017 - jsl...@suse.cz
+
+- give up on gcc ilog2() constant optimizations (bnc#1025903).
+- commit c2678b7
+
+-------------------------------------------------------------------
dtb-armv6l.changes: same change
dtb-armv7l.changes: same change
kernel-64kb.changes: same change
kernel-debug.changes: same change
kernel-default.changes: same change
kernel-docs.changes: same change
kernel-lpae.changes: same change
kernel-obs-build.changes: same change
kernel-obs-qa.changes: same change
kernel-pae.changes: same change
kernel-source.changes: same change
kernel-syms.changes: same change
kernel-syzkaller.changes: same change
kernel-vanilla.changes: same change

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ dtb-aarch64.spec ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:57.301683130 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:57.301683130 +0200
@@ -16,15 +16,15 @@
 #
 
 
-%define patchversion 4.10.4
+%define patchversion 4.10.5
 %define vanilla_only 0
 
 %include %_sourcedir/kernel-spec-macros
 
 Name:           dtb-aarch64
-Version:        4.10.4
+Version:        4.10.5
 %if 0%{?is_kotd}
-Release:        <RELEASE>.ge2ef894
+Release:        <RELEASE>.gf3fbfc6
 %else
 Release:        0
 %endif

dtb-armv6l.spec: same change
dtb-armv7l.spec: same change
++++++ kernel-64kb.spec ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:57.381671818 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:57.385671251 +0200
@@ -18,7 +18,7 @@
 
 
 %define srcversion 4.10
-%define patchversion 4.10.4
+%define patchversion 4.10.5
 %define variant %{nil}
 %define vanilla_only 0
 
@@ -58,9 +58,9 @@
 Summary:        Kernel with 64kb PAGE_SIZE
 License:        GPL-2.0
 Group:          System/Kernel
-Version:        4.10.4
+Version:        4.10.5
 %if 0%{?is_kotd}
-Release:        <RELEASE>.ge2ef894
+Release:        <RELEASE>.gf3fbfc6
 %else
 Release:        0
 %endif

kernel-debug.spec: same change
kernel-default.spec: same change
++++++ kernel-docs.spec ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:57.453661636 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:57.457661070 +0200
@@ -16,7 +16,7 @@
 #
 
 
-%define patchversion 4.10.4
+%define patchversion 4.10.5
 %define variant %{nil}
 
 %include %_sourcedir/kernel-spec-macros
@@ -42,9 +42,9 @@
 Summary:        Kernel Documentation (man pages)
 License:        GPL-2.0
 Group:          Documentation/Man
-Version:        4.10.4
+Version:        4.10.5
 %if 0%{?is_kotd}
-Release:        <RELEASE>.ge2ef894
+Release:        <RELEASE>.gf3fbfc6
 %else
 Release:        0
 %endif

++++++ kernel-lpae.spec ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:57.477658242 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:57.477658242 +0200
@@ -18,7 +18,7 @@
 
 
 %define srcversion 4.10
-%define patchversion 4.10.4
+%define patchversion 4.10.5
 %define variant %{nil}
 %define vanilla_only 0
 
@@ -58,9 +58,9 @@
 Summary:        Kernel for LPAE enabled systems
 License:        GPL-2.0
 Group:          System/Kernel
-Version:        4.10.4
+Version:        4.10.5
 %if 0%{?is_kotd}
-Release:        <RELEASE>.ge2ef894
+Release:        <RELEASE>.gf3fbfc6
 %else
 Release:        0
 %endif

++++++ kernel-obs-build.spec ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:57.497655414 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:57.497655414 +0200
@@ -19,7 +19,7 @@
 
 #!BuildIgnore: post-build-checks
 
-%define patchversion 4.10.4
+%define patchversion 4.10.5
 %define variant %{nil}
 %define vanilla_only 0
 
@@ -57,9 +57,9 @@
 Summary:        package kernel and initrd for OBS VM builds
 License:        GPL-2.0
 Group:          SLES
-Version:        4.10.4
+Version:        4.10.5
 %if 0%{?is_kotd}
-Release:        <RELEASE>.ge2ef894
+Release:        <RELEASE>.gf3fbfc6
 %else
 Release:        0
 %endif

++++++ kernel-obs-qa.spec ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:57.521652021 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:57.521652021 +0200
@@ -17,7 +17,7 @@
 # needsrootforbuild
 
 
-%define patchversion 4.10.4
+%define patchversion 4.10.5
 %define variant %{nil}
 
 %include %_sourcedir/kernel-spec-macros
@@ -36,9 +36,9 @@
 Summary:        Basic QA tests for the kernel
 License:        GPL-2.0
 Group:          SLES
-Version:        4.10.4
+Version:        4.10.5
 %if 0%{?is_kotd}
-Release:        <RELEASE>.ge2ef894
+Release:        <RELEASE>.gf3fbfc6
 %else
 Release:        0
 %endif

++++++ kernel-pae.spec ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:57.545648627 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:57.545648627 +0200
@@ -18,7 +18,7 @@
 
 
 %define srcversion 4.10
-%define patchversion 4.10.4
+%define patchversion 4.10.5
 %define variant %{nil}
 %define vanilla_only 0
 
@@ -58,9 +58,9 @@
 Summary:        Kernel with PAE Support
 License:        GPL-2.0
 Group:          System/Kernel
-Version:        4.10.4
+Version:        4.10.5
 %if 0%{?is_kotd}
-Release:        <RELEASE>.ge2ef894
+Release:        <RELEASE>.gf3fbfc6
 %else
 Release:        0
 %endif

++++++ kernel-source.spec ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:57.565645799 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:57.565645799 +0200
@@ -18,7 +18,7 @@
 
 
 %define srcversion 4.10
-%define patchversion 4.10.4
+%define patchversion 4.10.5
 %define variant %{nil}
 %define vanilla_only 0
 
@@ -30,9 +30,9 @@
 Summary:        The Linux Kernel Sources
 License:        GPL-2.0
 Group:          Development/Sources
-Version:        4.10.4
+Version:        4.10.5
 %if 0%{?is_kotd}
-Release:        <RELEASE>.ge2ef894
+Release:        <RELEASE>.gf3fbfc6
 %else
 Release:        0
 %endif

++++++ kernel-syms.spec ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:57.585642971 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:57.589642405 +0200
@@ -24,10 +24,10 @@
 Summary:        Kernel Symbol Versions (modversions)
 License:        GPL-2.0
 Group:          Development/Sources
-Version:        4.10.4
+Version:        4.10.5
 %if %using_buildservice
 %if 0%{?is_kotd}
-Release:        <RELEASE>.ge2ef894
+Release:        <RELEASE>.gf3fbfc6
 %else
 Release:        0
 %endif

++++++ kernel-syzkaller.spec ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:57.605640143 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:57.609639577 +0200
@@ -18,7 +18,7 @@
 
 
 %define srcversion 4.10
-%define patchversion 4.10.4
+%define patchversion 4.10.5
 %define variant %{nil}
 %define vanilla_only 0
 
@@ -58,9 +58,9 @@
 Summary:        Kernel used for fuzzing by syzkaller
 License:        GPL-2.0
 Group:          System/Kernel
-Version:        4.10.4
+Version:        4.10.5
 %if 0%{?is_kotd}
-Release:        <RELEASE>.ge2ef894
+Release:        <RELEASE>.gf3fbfc6
 %else
 Release:        0
 %endif

kernel-vanilla.spec: same change
++++++ config.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/config/arm64/default new/config/arm64/default
--- old/config/arm64/default    2017-02-20 14:08:30.000000000 +0100
+++ new/config/arm64/default    2017-03-22 14:15:00.000000000 +0100
@@ -1,6 +1,6 @@
 #
 # Automatically generated file; DO NOT EDIT.
-# Linux/arm64 4.10.0 Kernel Configuration
+# Linux/arm64 4.10.5 Kernel Configuration
 #
 CONFIG_ARM64=y
 CONFIG_64BIT=y
@@ -470,6 +470,7 @@
 CONFIG_CAVIUM_ERRATUM_23144=y
 CONFIG_CAVIUM_ERRATUM_23154=y
 CONFIG_CAVIUM_ERRATUM_27456=y
+CONFIG_QCOM_QDF2400_ERRATUM_0065=y
 CONFIG_ARM64_4K_PAGES=y
 # CONFIG_ARM64_16K_PAGES is not set
 # CONFIG_ARM64_64K_PAGES is not set

++++++ patches.fixes.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/patches.fixes/bonding-use-ETH_MAX_MTU-as-max-mtu.patch 
new/patches.fixes/bonding-use-ETH_MAX_MTU-as-max-mtu.patch
--- old/patches.fixes/bonding-use-ETH_MAX_MTU-as-max-mtu.patch  2017-03-18 
13:29:57.000000000 +0100
+++ new/patches.fixes/bonding-use-ETH_MAX_MTU-as-max-mtu.patch  1970-01-01 
01:00:00.000000000 +0100
@@ -1,37 +0,0 @@
-From: WANG Cong <xiyou.wangc...@gmail.com>
-Date: Thu, 2 Mar 2017 12:24:36 -0800
-Subject: bonding: use ETH_MAX_MTU as max mtu
-Patch-mainline: v4.11-rc1
-Git-commit: 31c05415f5b471fd333fe42629788364faea8e0d
-References: bsc#1027798
-
-This restores the ability of setting bond device's mtu to 9000.
-
-Fixes: 91572088e3fd ("net: use core MTU range checking in core net infra")
-Reported-by: daz...@gmail.com
-Reported-by: Brad Campbell <lists2...@fnarfbargle.com>
-Cc: Jarod Wilson <ja...@redhat.com>
-Signed-off-by: Cong Wang <xiyou.wangc...@gmail.com>
-Signed-off-by: Jay Vosburgh <jay.vosbu...@canonical.com>
-Signed-off-by: David S. Miller <da...@davemloft.net>
-Acked-by: Michal Kubecek <mkube...@suse.cz>
-
----
- drivers/net/bonding/bond_main.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
-index 8029dd4912b6..644d2bf0c451 100644
---- a/drivers/net/bonding/bond_main.c
-+++ b/drivers/net/bonding/bond_main.c
-@@ -4185,6 +4185,7 @@ void bond_setup(struct net_device *bond_dev)
- 
-       /* Initialize the device entry points */
-       ether_setup(bond_dev);
-+      bond_dev->max_mtu = ETH_MAX_MTU;
-       bond_dev->netdev_ops = &bond_netdev_ops;
-       bond_dev->ethtool_ops = &bond_ethtool_ops;
- 
--- 
-2.12.0
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/patches.fixes/sctp-deny-peeloff-operation-on-asocs-with-threads-sl.patch 
new/patches.fixes/sctp-deny-peeloff-operation-on-asocs-with-threads-sl.patch
--- 
old/patches.fixes/sctp-deny-peeloff-operation-on-asocs-with-threads-sl.patch    
    2017-03-18 13:29:57.000000000 +0100
+++ 
new/patches.fixes/sctp-deny-peeloff-operation-on-asocs-with-threads-sl.patch    
    1970-01-01 01:00:00.000000000 +0100
@@ -1,69 +0,0 @@
-From: Marcelo Ricardo Leitner <marcelo.leit...@gmail.com>
-Date: Thu, 23 Feb 2017 09:31:18 -0300
-Subject: sctp: deny peeloff operation on asocs with threads sleeping on it
-Patch-mainline: v4.11-rc1
-Git-commit: dfcb9f4f99f1e9a49e43398a7bfbf56927544af1
-References: CVE-2017-6353 bsc#1027066
-
-commit 2dcab5984841 ("sctp: avoid BUG_ON on sctp_wait_for_sndbuf")
-attempted to avoid a BUG_ON call when the association being used for a
-sendmsg() is blocked waiting for more sndbuf and another thread did a
-peeloff operation on such asoc, moving it to another socket.
-
-As Ben Hutchings noticed, then in such case it would return without
-locking back the socket and would cause two unlocks in a row.
-
-Further analysis also revealed that it could allow a double free if the
-application managed to peeloff the asoc that is created during the
-sendmsg call, because then sctp_sendmsg() would try to free the asoc
-that was created only for that call.
-
-This patch takes another approach. It will deny the peeloff operation
-if there is a thread sleeping on the asoc, so this situation doesn't
-exist anymore. This avoids the issues described above and also honors
-the syscalls that are already being handled (it can be multiple sendmsg
-calls).
-
-Joint work with Xin Long.
-
-Fixes: 2dcab5984841 ("sctp: avoid BUG_ON on sctp_wait_for_sndbuf")
-Cc: Alexander Popov <alex.po...@linux.com>
-Cc: Ben Hutchings <b...@decadent.org.uk>
-Signed-off-by: Marcelo Ricardo Leitner <marcelo.leit...@gmail.com>
-Signed-off-by: Xin Long <lucien....@gmail.com>
-Signed-off-by: David S. Miller <da...@davemloft.net>
-Acked-by: Michal Kubecek <mkube...@suse.cz>
-
----
- net/sctp/socket.c | 8 ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
-
-diff --git a/net/sctp/socket.c b/net/sctp/socket.c
-index 1b5d669e3029..d04a8b66098c 100644
---- a/net/sctp/socket.c
-+++ b/net/sctp/socket.c
-@@ -4734,6 +4734,12 @@ int sctp_do_peeloff(struct sock *sk, sctp_assoc_t id, 
struct socket **sockp)
-       if (!asoc)
-               return -EINVAL;
- 
-+      /* If there is a thread waiting on more sndbuf space for
-+       * sending on this asoc, it cannot be peeled.
-+       */
-+      if (waitqueue_active(&asoc->wait))
-+              return -EBUSY;
-+
-       /* An association cannot be branched off from an already peeled-off
-        * socket, nor is this supported for tcp style sockets.
-        */
-@@ -7426,8 +7432,6 @@ static int sctp_wait_for_sndbuf(struct sctp_association 
*asoc, long *timeo_p,
-                */
-               release_sock(sk);
-               current_timeo = schedule_timeout(current_timeo);
--              if (sk != asoc->base.sk)
--                      goto do_error;
-               lock_sock(sk);
- 
-               *timeo_p = current_timeo;
--- 
-2.11.1
-
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/patches.fixes/team-use-ETH_MAX_MTU-as-max-mtu.patch 
new/patches.fixes/team-use-ETH_MAX_MTU-as-max-mtu.patch
--- old/patches.fixes/team-use-ETH_MAX_MTU-as-max-mtu.patch     2017-03-18 
13:29:57.000000000 +0100
+++ new/patches.fixes/team-use-ETH_MAX_MTU-as-max-mtu.patch     1970-01-01 
01:00:00.000000000 +0100
@@ -1,41 +0,0 @@
-From: Jarod Wilson <ja...@redhat.com>
-Date: Mon, 6 Mar 2017 08:48:58 -0500
-Subject: team: use ETH_MAX_MTU as max mtu
-Patch-mainline: v4.11-rc3
-Git-commit: 3331aa378e9bcbd0d16de9034b0c20f4050e26b4
-References: bsc#1027798
-
-This restores the ability to set a team device's mtu to anything higher
-than 1500. Similar to the reported issue with bonding, the team driver
-calls ether_setup(), which sets an initial max_mtu of 1500, while the
-underlying hardware can handle something much larger. Just set it to
-ETH_MAX_MTU to support all possible values, and the limitations of the
-underlying devices will prevent setting anything too large.
-
-Fixes: 91572088e3fd ("net: use core MTU range checking in core net infra")
-CC: Cong Wang <xiyou.wangc...@gmail.com>
-CC: Jiri Pirko <j...@resnulli.us>
-CC: net...@vger.kernel.org
-Signed-off-by: Jarod Wilson <ja...@redhat.com>
-Signed-off-by: David S. Miller <da...@davemloft.net>
-Acked-by: Michal Kubecek <mkube...@suse.cz>
-
----
- drivers/net/team/team.c | 1 +
- 1 file changed, 1 insertion(+)
-
-diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
-index bdc58567d10e..707321508c69 100644
---- a/drivers/net/team/team.c
-+++ b/drivers/net/team/team.c
-@@ -2075,6 +2075,7 @@ static int team_dev_type_check_change(struct net_device 
*dev,
- static void team_setup(struct net_device *dev)
- {
-       ether_setup(dev);
-+      dev->max_mtu = ETH_MAX_MTU;
- 
-       dev->netdev_ops = &team_netdev_ops;
-       dev->ethtool_ops = &team_ethtool_ops;
--- 
-2.12.0
-

++++++ patches.kernel.org.tar.bz2 ++++++
++++ 2312 lines of diff (skipped)

++++++ patches.rpmify.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/patches.rpmify/give-up-on-gcc-ilog2-constant-optimizations.patch 
new/patches.rpmify/give-up-on-gcc-ilog2-constant-optimizations.patch
--- old/patches.rpmify/give-up-on-gcc-ilog2-constant-optimizations.patch        
1970-01-01 01:00:00.000000000 +0100
+++ new/patches.rpmify/give-up-on-gcc-ilog2-constant-optimizations.patch        
2017-03-20 11:31:28.000000000 +0100
@@ -0,0 +1,123 @@
+From: Linus Torvalds <torva...@linux-foundation.org>
+Date: Thu, 2 Mar 2017 12:17:22 -0800
+Subject: give up on gcc ilog2() constant optimizations
+Git-commit: 474c90156c8dcc2fa815e6716cc9394d7930cb9c
+Patch-mainline: v4.11-rc1
+References: bnc#1025903
+
+gcc-7 has an "optimization" pass that completely screws up, and
+generates the code expansion for the (impossible) case of calling
+ilog2() with a zero constant, even when the code gcc compiles does not
+actually have a zero constant.
+
+And we try to generate a compile-time error for anybody doing ilog2() on
+a constant where that doesn't make sense (be it zero or negative).  So
+now gcc7 will fail the build due to our sanity checking, because it
+created that constant-zero case that didn't actually exist in the source
+code.
+
+There's a whole long discussion on the kernel mailing about how to work
+around this gcc bug.  The gcc people themselevs have discussed their
+"feature" in
+
+   https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72785
+
+but it's all water under the bridge, because while it looked at one
+point like it would be solved by the time gcc7 was released, that was
+not to be.
+
+So now we have to deal with this compiler braindamage.
+
+And the only simple approach seems to be to just delete the code that
+tries to warn about bad uses of ilog2().
+
+So now "ilog2()" will just return 0 not just for the value 1, but for
+any non-positive value too.
+
+It's not like I can recall anybody having ever actually tried to use
+this function on any invalid value, but maybe the sanity check just
+meant that such code never made it out in public.
+
+Reported-by: Laura Abbott <labb...@redhat.com>
+Cc: John Stultz <john.stu...@linaro.org>,
+Cc: Thomas Gleixner <t...@linutronix.de>
+Cc: Ard Biesheuvel <ard.biesheu...@linaro.org>
+Signed-off-by: Linus Torvalds <torva...@linux-foundation.org>
+Signed-off-by: Jiri Slaby <jsl...@suse.cz>
+---
+ include/linux/log2.h       |   13 ++-----------
+ tools/include/linux/log2.h |   13 ++-----------
+ 2 files changed, 4 insertions(+), 22 deletions(-)
+
+--- a/include/linux/log2.h
++++ b/include/linux/log2.h
+@@ -16,12 +16,6 @@
+ #include <linux/bitops.h>
+ 
+ /*
+- * deal with unrepresentable constant logarithms
+- */
+-extern __attribute__((const, noreturn))
+-int ____ilog2_NaN(void);
+-
+-/*
+  * non-constant log of base 2 calculators
+  * - the arch may override these in asm/bitops.h if they can be implemented
+  *   more efficiently than using fls() and fls64()
+@@ -85,7 +79,7 @@ unsigned long __rounddown_pow_of_two(uns
+ #define ilog2(n)                              \
+ (                                             \
+       __builtin_constant_p(n) ? (             \
+-              (n) < 1 ? ____ilog2_NaN() :     \
++              (n) < 2 ? 0 :                   \
+               (n) & (1ULL << 63) ? 63 :       \
+               (n) & (1ULL << 62) ? 62 :       \
+               (n) & (1ULL << 61) ? 61 :       \
+@@ -148,10 +142,7 @@ unsigned long __rounddown_pow_of_two(uns
+               (n) & (1ULL <<  4) ?  4 :       \
+               (n) & (1ULL <<  3) ?  3 :       \
+               (n) & (1ULL <<  2) ?  2 :       \
+-              (n) & (1ULL <<  1) ?  1 :       \
+-              (n) & (1ULL <<  0) ?  0 :       \
+-              ____ilog2_NaN()                 \
+-                                 ) :          \
++              1 ) :                           \
+       (sizeof(n) <= 4) ?                      \
+       __ilog2_u32(n) :                        \
+       __ilog2_u64(n)                          \
+--- a/tools/include/linux/log2.h
++++ b/tools/include/linux/log2.h
+@@ -13,12 +13,6 @@
+ #define _TOOLS_LINUX_LOG2_H
+ 
+ /*
+- * deal with unrepresentable constant logarithms
+- */
+-extern __attribute__((const, noreturn))
+-int ____ilog2_NaN(void);
+-
+-/*
+  * non-constant log of base 2 calculators
+  * - the arch may override these in asm/bitops.h if they can be implemented
+  *   more efficiently than using fls() and fls64()
+@@ -78,7 +72,7 @@ unsigned long __rounddown_pow_of_two(uns
+ #define ilog2(n)                              \
+ (                                             \
+       __builtin_constant_p(n) ? (             \
+-              (n) < 1 ? ____ilog2_NaN() :     \
++              (n) < 2 ? 0 :                   \
+               (n) & (1ULL << 63) ? 63 :       \
+               (n) & (1ULL << 62) ? 62 :       \
+               (n) & (1ULL << 61) ? 61 :       \
+@@ -141,10 +135,7 @@ unsigned long __rounddown_pow_of_two(uns
+               (n) & (1ULL <<  4) ?  4 :       \
+               (n) & (1ULL <<  3) ?  3 :       \
+               (n) & (1ULL <<  2) ?  2 :       \
+-              (n) & (1ULL <<  1) ?  1 :       \
+-              (n) & (1ULL <<  0) ?  0 :       \
+-              ____ilog2_NaN()                 \
+-                                 ) :          \
++              1 ) :                           \
+       (sizeof(n) <= 4) ?                      \
+       __ilog2_u32(n) :                        \
+       __ilog2_u64(n)                          \

++++++ series.conf ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:58.845464799 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:58.845464799 +0200
@@ -31,12 +31,14 @@
        patches.kernel.org/patch-4.10.1-2
        patches.kernel.org/patch-4.10.2-3
        patches.kernel.org/patch-4.10.3-4
+       patches.kernel.org/patch-4.10.4-5
 
        ########################################################
        # Build fixes that apply to the vanilla kernel too.
        # Patches in patches.rpmify are applied to both -vanilla
        # and patched flavors.
        ########################################################
+       patches.rpmify/give-up-on-gcc-ilog2-constant-optimizations.patch
 
        ########################################################
        # kABI consistency patches
@@ -212,10 +214,7 @@
        ########################################################
        # Networking, IPv6
        ########################################################
-       patches.fixes/sctp-deny-peeloff-operation-on-asocs-with-threads-sl.patch
-       patches.fixes/bonding-use-ETH_MAX_MTU-as-max-mtu.patch
        patches.fixes/openvswitch-Set-internal-device-max-mtu-to-ETH_MAX_M.patch
-       patches.fixes/team-use-ETH_MAX_MTU-as-max-mtu.patch
 
        ########################################################
        # Netfilter

++++++ source-timestamp ++++++
--- /var/tmp/diff_new_pack.JqL8ky/_old  2017-03-29 13:23:58.881459709 +0200
+++ /var/tmp/diff_new_pack.JqL8ky/_new  2017-03-29 13:23:58.881459709 +0200
@@ -1,3 +1,3 @@
-2017-03-18 13:29:57 +0100
-GIT Revision: e2ef8943aad1a4b741b59628925781860e3530a7
+2017-03-22 14:15:00 +0100
+GIT Revision: f3fbfc6e0759d457c1c47e1ac5a962624a67e66d
 GIT Branch: stable


Reply via email to