History

modpost: drop unused command line switches

Drop modpost command line switches that are no longer used by makefile.modpost, upon request from Sam Ravnborg <sam@ravnborg.org>, who wrote: modpost is not supposed to be used outside the kernel build. [...] I checked if there were any options supported by modpost that was not configurable in Makefile.modpost. And I could see that the -M and -K options in getopt() were leftovers. The code that used these option was dropped in: commit a8773769d1a1 ("Kbuild: clear marker out of modpost") Could you add a patch that delete these on top of what you already have. https://lore.kernel.org/lkml/20181020140835.GA3351@ravnborg.org/

Paul Walmsley committed 8 years ago

Commit 0987abc1 parent ff64dd41 file · +1 −1Browse files

Unified · Split

scripts/mod/modpost.c+1−1
@@ -2418,7 +2418,7 @@ int main(int argc, char **argv) · 2417 unmodified lines
2418 struct ext_sym_list *extsym_iter;2418 struct ext_sym_list *extsym_iter;
2419 struct ext_sym_list *extsym_start = NULL;2419 struct ext_sym_list *extsym_start = NULL;
2420 2420
2421 while ((opt = getopt(argc, argv, "i:I:e:mnsST:o:awM:K:E")) != -1) {2421 while ((opt = getopt(argc, argv, "i:I:e:mnsST:o:awE")) != -1) {
2422 switch (opt) {2422 switch (opt) {
2423 case 'i':2423 case 'i':
2424 kernel_read = optarg;2424 kernel_read = optarg;