Skip to content

Commit

Permalink
modpost: drop unused command line switches
Browse files Browse the repository at this point in the history
Drop modpost command line switches that are no longer used by
makefile.modpost, upon request from Sam Ravnborg <[email protected]>,
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 a877376 ("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/[email protected]/

Suggested-by: Sam Ravnborg <[email protected]>
Signed-off-by: Paul Walmsley <[email protected]>
Signed-off-by: Paul Walmsley <[email protected]>
Acked-by: Sam Ravnborg <[email protected]>
Signed-off-by: Masahiro Yamada <[email protected]>
  • Loading branch information
paul-walmsley-sifive authored and masahir0y committed Nov 21, 2018
1 parent ff64dd4 commit 0987abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -2418,7 +2418,7 @@ int main(int argc, char **argv)
struct ext_sym_list *extsym_iter;
struct ext_sym_list *extsym_start = NULL;

while ((opt = getopt(argc, argv, "i:I:e:mnsST:o:awM:K:E")) != -1) {
while ((opt = getopt(argc, argv, "i:I:e:mnsST:o:awE")) != -1) {
switch (opt) {
case 'i':
kernel_read = optarg;
Expand Down

0 comments on commit 0987abc

Please sign in to comment.