diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 32d2c4170d42..49911e2b8509 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -804,7 +804,7 @@ static int match(const char *sym, const char * const pat[]) /* "*foo*" */ if (*p == '*' && *endp == '*') { char *bare = NOFAIL(strndup(p + 1, strlen(p) - 2)); - char *here = strstr(sym, bare); + const char *here = strstr(sym, bare); free(bare); if (here != NULL)