diff options
Diffstat (limited to 'scripts/mod/file2alias.c')
-rw-r--r-- | scripts/mod/file2alias.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index a37af7d71973..afe22af20d7d 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -50,6 +50,9 @@ struct devtable { | |||
50 | int (*do_entry)(const char *filename, void *symval, char *alias); | 50 | int (*do_entry)(const char *filename, void *symval, char *alias); |
51 | }; | 51 | }; |
52 | 52 | ||
53 | /* Size of alias provided to do_entry functions */ | ||
54 | #define ALIAS_SIZE 500 | ||
55 | |||
53 | /* Define a variable f that holds the value of field f of struct devid | 56 | /* Define a variable f that holds the value of field f of struct devid |
54 | * based at address m. | 57 | * based at address m. |
55 | */ | 58 | */ |
@@ -1303,7 +1306,7 @@ static void do_table(void *symval, unsigned long size, | |||
1303 | struct module *mod) | 1306 | struct module *mod) |
1304 | { | 1307 | { |
1305 | unsigned int i; | 1308 | unsigned int i; |
1306 | char alias[500]; | 1309 | char alias[ALIAS_SIZE]; |
1307 | 1310 | ||
1308 | device_id_check(mod->name, device_id, size, id_size, symval); | 1311 | device_id_check(mod->name, device_id, size, id_size, symval); |
1309 | /* Leave last one: it's the terminator. */ | 1312 | /* Leave last one: it's the terminator. */ |