kernel/random: Avoid casting away const in the U8TO32_LITTLE macro

This macro is only ever used with const input data within chachaInit(),
which causes -Wcast-qual warnings. This is trivial enough to fix, by
preserving the qualifier within the cast.
This commit is contained in:
Lioncash 2018-09-17 19:00:42 -04:00 committed by fincs
parent 4645ef7004
commit a06bfb74a7

View File

@ -20,7 +20,7 @@
(*(u32*)(p) = (v))
#define U8TO32_LITTLE(p) \
(*(u32*)(p))
(*(const u32*)(p))
#define ROTATE(v,c) (ROTL32(v,c))
#define XOR(v,w) ((v) ^ (w))