Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:michals
kmod
0002-depmod-Remove-deprecated-options.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-depmod-Remove-deprecated-options.patch of Package kmod
From 160db637389a8e5260e45dd9692b20d8f8fd82be Mon Sep 17 00:00:00 2001 From: Michal Suchanek <msuchanek@suse.de> Date: Thu, 5 Sep 2024 16:47:15 +0200 Subject: [PATCH 2/4] depmod: Remove deprecated options These options are deprecated and undocumented since import of depmod into git (Dec 2011). --- tools/depmod.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/tools/depmod.c b/tools/depmod.c index 03fcff333fdf..8026454d857c 100644 --- a/tools/depmod.c +++ b/tools/depmod.c @@ -47,7 +47,7 @@ static const char *const default_cfg_paths[] = { NULL }; -static const char cmdopts_s[] = "aAb:o:C:E:F:euqrvnP:wmVh"; +static const char cmdopts_s[] = "aAb:o:C:E:F:evnP:wVh"; static const struct option cmdopts[] = { { "all", no_argument, 0, 'a' }, { "quick", no_argument, 0, 'A' }, @@ -57,15 +57,11 @@ static const struct option cmdopts[] = { { "symvers", required_argument, 0, 'E' }, { "filesyms", required_argument, 0, 'F' }, { "errsyms", no_argument, 0, 'e' }, - { "unresolved-error", no_argument, 0, 'u' }, /* deprecated */ - { "quiet", no_argument, 0, 'q' }, /* deprecated */ - { "root", no_argument, 0, 'r' }, /* deprecated */ { "verbose", no_argument, 0, 'v' }, { "show", no_argument, 0, 'n' }, { "dry-run", no_argument, 0, 'n' }, { "symbol-prefix", required_argument, 0, 'P' }, { "warn", no_argument, 0, 'w' }, - { "map", no_argument, 0, 'm' }, /* deprecated */ { "version", no_argument, 0, 'V' }, { "help", no_argument, 0, 'h' }, { } @@ -2988,17 +2984,6 @@ static int do_depmod(int argc, char *argv[]) case 'w': cfg.warn_dups = 1; break; - case 'u': - case 'q': - case 'r': - case 'm': - if (idx > 0) - WRN("Ignored deprecated option --%s\n", - cmdopts[idx].name); - else - WRN("Ignored deprecated option -%c\n", c); - - break; case 'h': help(); return EXIT_SUCCESS; -- 2.46.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor