Merge 5.8-rc7 into char-misc-next
This should resolve the merge/build issues reported when trying to create linux-next. Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -138,11 +138,19 @@ char *read_text_file(const char *filename)
|
||||
|
||||
char *get_line(char **stringp)
|
||||
{
|
||||
char *orig = *stringp, *next;
|
||||
|
||||
/* do not return the unwanted extra line at EOF */
|
||||
if (*stringp && **stringp == '\0')
|
||||
if (!orig || *orig == '\0')
|
||||
return NULL;
|
||||
|
||||
return strsep(stringp, "\n");
|
||||
next = strchr(orig, '\n');
|
||||
if (next)
|
||||
*next++ = '\0';
|
||||
|
||||
*stringp = next;
|
||||
|
||||
return orig;
|
||||
}
|
||||
|
||||
/* A list of all modules we processed */
|
||||
|
Reference in New Issue
Block a user