Re: [PATCH] depmod: account for new namespace field in Module.symvers (for kernel versions >= 5.4)
From: Jessica Yu <jeyu@kernel.org>
Date: 2020-03-03 14:31:16
From: Jessica Yu <jeyu@kernel.org>
Date: 2020-03-03 14:31:16
+++ Jessica Yu [21/02/20 17:52 +0100]:depmod -e -E is broken for kernel versions >= 5.4, because a new
namespace field was added to Module.symvers. Each line is tab delimited
with 5 fields in total. E.g.,
0xb352177e\tfind_first_bit\tnamespace\tvmlinux\tEXPORT_SYMBOL
When a symbol doesn't have a namespace, then the namespace field is empty:
0xb352177e\tfind_first_bit\t\tvmlinux\tEXPORT_SYMBOL
Fix up depmod_load_symvers() so it finds the crc, symbol, and module
("where") fields correctly. Since there can be empty fields, strsep() is
used instead of strtok(), since strtok() cannot handle empty fields
(i.e., two delimiters in succession).
Signed-off-by: Jessica Yu <jeyu@kernel.org>Friendly ping? :-) Thanks, Jessica