diff options
| author | Nathan Chancellor <natechancellor@gmail.com> | 2016-08-22 05:17:05 -0400 |
|---|---|---|
| committer | Mister Oyster <oysterized@gmail.com> | 2017-04-11 10:57:20 +0200 |
| commit | f712162aad7781c1ebc96ebcffc64ae7de46c0ae (patch) | |
| tree | 44efb9d7b7162c032256524e8ca22ab586a302e5 /mm | |
| parent | 44c39fbf824b42abb3606a9f47953ccf133660df (diff) | |
UKSM: cast variable as const
gcc 4.9 produces this error:
mm/uksm.c: In function 'is_full_zero':
mm/uksm.c:169:23: warning: initialization discards 'const' qualifier from pointer target type
error, forbidden warning: uksm.c:169
Casting *src as a constant fixes this. Could also remove the const from the parameter.
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Diffstat (limited to 'mm')
| -rw-r--r-- | mm/uksm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -166,7 +166,7 @@ static int is_full_zero(const void *s1, size_t len) #else static int is_full_zero(const void *s1, size_t len) { - unsigned long *src = s1; + const unsigned long *src = s1; int i; len /= sizeof(*src); |
