mirror of
https://github.com/LineageOS/android_kernel_fxtec_sm6115.git
synced 2026-08-18 20:01:05 +00:00
match() receives 'sym' as RO string. But strstr() does not return non-const
char, which here implicitly casts away the const qualifier. Declare 'here'
as 'const char *' to fix the following warning by Clang:
../scripts/mod/modpost.c:870:10: warning: initializing 'char *' with an expression of type 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
870 | char *here = strstr(sym, bare);
| ^ ~~~~~~~~~~~~~~~~~
Change-Id: I3df77d2cd975ff965517b9319ea8013cc6ce2561
Signed-off-by: Tashfin Shakeer Rhythm <tashfinshakeerrhythm@gmail.com>