aboutsummaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
Diffstat (limited to 'modutils')
-rw-r--r--modutils/depmod.c4
-rw-r--r--modutils/insmod.c10
-rw-r--r--modutils/lsmod.c4
-rw-r--r--modutils/modprobe-small.c6
4 files changed, 12 insertions, 12 deletions
diff --git a/modutils/depmod.c b/modutils/depmod.c
index 4fba53751..d128ac0ff 100644
--- a/modutils/depmod.c
+++ b/modutils/depmod.c
@@ -48,7 +48,7 @@ static char* find_keyword(void *the_module, size_t len, const char * const word)
48 return ptr; 48 return ptr;
49} 49}
50static int FAST_FUNC fileAction(const char *fname, struct stat *sb, 50static int FAST_FUNC fileAction(const char *fname, struct stat *sb,
51 void ATTRIBUTE_UNUSED *data, int ATTRIBUTE_UNUSED depth) 51 void UNUSED_PARAM *data, int UNUSED_PARAM depth)
52{ 52{
53 size_t len = sb->st_size; 53 size_t len = sb->st_size;
54 void *the_module; 54 void *the_module;
@@ -110,7 +110,7 @@ static int FAST_FUNC fileAction(const char *fname, struct stat *sb,
110} 110}
111 111
112int depmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 112int depmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
113int depmod_main(int ATTRIBUTE_UNUSED argc, char **argv) 113int depmod_main(int argc UNUSED_PARAM, char **argv)
114{ 114{
115 int ret; 115 int ret;
116 size_t moddir_base_len = 0; /* length of the "-b basedir" */ 116 size_t moddir_base_len = 0; /* length of the "-b basedir" */
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 8217629b2..d928be27d 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -792,8 +792,8 @@ static char *m_fullName;
792 792
793 793
794static int FAST_FUNC check_module_name_match(const char *filename, 794static int FAST_FUNC check_module_name_match(const char *filename,
795 struct stat *statbuf ATTRIBUTE_UNUSED, 795 struct stat *statbuf UNUSED_PARAM,
796 void *userdata, int depth ATTRIBUTE_UNUSED) 796 void *userdata, int depth UNUSED_PARAM)
797{ 797{
798 char *fullname = (char *) userdata; 798 char *fullname = (char *) userdata;
799 char *tmp; 799 char *tmp;
@@ -3306,7 +3306,7 @@ static int obj_create_image(struct obj_file *f, char *image)
3306 3306
3307/*======================================================================*/ 3307/*======================================================================*/
3308 3308
3309static struct obj_file *obj_load(FILE *fp, int loadprogbits ATTRIBUTE_UNUSED) 3309static struct obj_file *obj_load(FILE *fp, int loadprogbits UNUSED_PARAM)
3310{ 3310{
3311 struct obj_file *f; 3311 struct obj_file *f;
3312 ElfW(Shdr) * section_headers; 3312 ElfW(Shdr) * section_headers;
@@ -4211,9 +4211,9 @@ static const char *moderror(int err)
4211 4211
4212#if !ENABLE_FEATURE_2_4_MODULES 4212#if !ENABLE_FEATURE_2_4_MODULES
4213int insmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 4213int insmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
4214int insmod_main(int argc ATTRIBUTE_UNUSED, char **argv) 4214int insmod_main(int argc UNUSED_PARAM, char **argv)
4215#else 4215#else
4216static int insmod_ng_main(int argc ATTRIBUTE_UNUSED, char **argv) 4216static int insmod_ng_main(int argc UNUSED_PARAM, char **argv)
4217#endif 4217#endif
4218{ 4218{
4219 size_t len; 4219 size_t len;
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index a2330fe98..5e37923a9 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -75,7 +75,7 @@ enum {
75}; 75};
76 76
77int lsmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 77int lsmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
78int lsmod_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) 78int lsmod_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
79{ 79{
80 struct module_info info; 80 struct module_info info;
81 char *module_names, *mn, *deps, *dn; 81 char *module_names, *mn, *deps, *dn;
@@ -143,7 +143,7 @@ int lsmod_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED)
143#else /* CONFIG_FEATURE_QUERY_MODULE_INTERFACE */ 143#else /* CONFIG_FEATURE_QUERY_MODULE_INTERFACE */
144 144
145int lsmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 145int lsmod_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
146int lsmod_main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) 146int lsmod_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
147{ 147{
148 FILE *file = xfopen("/proc/modules", "r"); 148 FILE *file = xfopen("/proc/modules", "r");
149 149
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index bbcd9895e..6131d4280 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -301,9 +301,9 @@ static char* pathname_2_modname(const char *pathname)
301} 301}
302 302
303static FAST_FUNC int fileAction(const char *pathname, 303static FAST_FUNC int fileAction(const char *pathname,
304 struct stat *sb ATTRIBUTE_UNUSED, 304 struct stat *sb UNUSED_PARAM,
305 void *data, 305 void *data,
306 int depth ATTRIBUTE_UNUSED) 306 int depth UNUSED_PARAM)
307{ 307{
308 int cur; 308 int cur;
309 char *name; 309 char *name;
@@ -581,7 +581,7 @@ Options:
581*/ 581*/
582 582
583int modprobe_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE; 583int modprobe_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
584int modprobe_main(int ATTRIBUTE_UNUSED argc, char **argv) 584int modprobe_main(int argc UNUSED_PARAM, char **argv)
585{ 585{
586 struct utsname uts; 586 struct utsname uts;
587 char applet0 = applet_name[0]; 587 char applet0 = applet_name[0];