]> git.karo-electronics.de Git - linux-beck.git/commit
latent_entropy: fix ARM build error on earlier gcc
authorKees Cook <keescook@chromium.org>
Fri, 16 Dec 2016 20:59:31 +0000 (12:59 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:32:22 +0000 (08:32 +0100)
commit7d5ec9eb3eea8e6efc6a5795e70bd4057adaf8a9
treeb2b618c9c4adef6faab4933ca2471a4c14e44754
parent959e95305f1316475dbbfa5b366d82d5ac65562b
latent_entropy: fix ARM build error on earlier gcc

commit 9988f4d577f42f43b7612d755477585f35424af7 upstream.

This fixes build errors seen on gcc-4.9.3 or gcc-5.3.1 for an ARM:

arm-soc/init/initramfs.c: In function 'error':
arm-soc/init/initramfs.c:50:1: error: unrecognizable insn:
 }
 ^
(insn 26 25 27 5 (set (reg:SI 111 [ local_entropy.243 ])
        (rotatert:SI (reg:SI 116 [ local_entropy.243 ])
            (const_int -30 [0xffffffffffffffe2]))) -1
     (nil))

Patch from PaX Team <pageexec@freemail.hu>

Reported-by: Arnd Bergmann <arnd@arndb.de>
Reported-by: Brad Spengler <spender@grsecurity.net>
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
scripts/gcc-plugins/latent_entropy_plugin.c