From: Wolfram Sang Date: Sun, 26 Jul 2020 21:44:19 +0000 (+0200) Subject: modpost: explain why we can't use strsep X-Git-Tag: microblaze-v5.10~227^2~8 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=6020db504cece0d93cc31c6f73609ef1304607e2;p=linux-2.6-microblaze.git modpost: explain why we can't use strsep Mention why we open-code strsep, so it is clear that it is intentional. Fixes: 736bb11898ef ("modpost: remove use of non-standard strsep() in HOSTCC code") Signed-off-by: Wolfram Sang Signed-off-by: Masahiro Yamada --- diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 45f2ab2ec2d4..69341b36f271 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -144,6 +144,7 @@ char *get_line(char **stringp) if (!orig || *orig == '\0') return NULL; + /* don't use strsep here, it is not available everywhere */ next = strchr(orig, '\n'); if (next) *next++ = '\0';