diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-01-04 08:56:05 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-01-04 08:56:05 -0800 |
| commit | 99b9be77632734363913e5cf22c06bb66d7f71d8 (patch) | |
| tree | cd86cf6acee29ef910806639ae53a8991ecb8612 /scripts/gcc-plugins/latent_entropy_plugin.c | |
| parent | 0f64df30124018de92c7f22a044b975da8dd52cc (diff) | |
| parent | 81d873a87114b05dbb74d1fbf0c4322ba4bfdee4 (diff) | |
Merge tag 'gcc-plugins-v4.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux
Pull gcc-plugins fixes from Kees Cook:
"Small fixes for gcc-plugins when using certain gcc versions:
- update gcc-common.h for gcc 7 (Emese Revfy)
- fix latent_entropy type for early gcc on ARM (PaX Team)"
* tag 'gcc-plugins-v4.10-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux:
gcc-plugins: update gcc-common.h for gcc-7
latent_entropy: fix ARM build error on earlier gcc
Diffstat (limited to 'scripts/gcc-plugins/latent_entropy_plugin.c')
| -rw-r--r-- | scripts/gcc-plugins/latent_entropy_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/gcc-plugins/latent_entropy_plugin.c b/scripts/gcc-plugins/latent_entropy_plugin.c index 12541126575b..8ff203ad4809 100644 --- a/scripts/gcc-plugins/latent_entropy_plugin.c +++ b/scripts/gcc-plugins/latent_entropy_plugin.c @@ -328,9 +328,9 @@ static enum tree_code get_op(tree *rhs) op = LROTATE_EXPR; /* * This code limits the value of random_const to - * the size of a wide int for the rotation + * the size of a long for the rotation */ - random_const &= HOST_BITS_PER_WIDE_INT - 1; + random_const %= TYPE_PRECISION(long_unsigned_type_node); break; } |
