diff options
Diffstat (limited to 'scripts/mod')
| -rw-r--r-- | scripts/mod/file2alias.c | 13 | ||||
| -rw-r--r-- | scripts/mod/modpost.c | 4 | ||||
| -rw-r--r-- | scripts/mod/sumversion.c | 2 |
3 files changed, 15 insertions, 4 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index 40e0045876ee..62a9025cdcc7 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
| @@ -657,6 +657,15 @@ static int do_i2c_entry(const char *filename, struct i2c_device_id *id, | |||
| 657 | return 1; | 657 | return 1; |
| 658 | } | 658 | } |
| 659 | 659 | ||
| 660 | /* Looks like: spi:S */ | ||
| 661 | static int do_spi_entry(const char *filename, struct spi_device_id *id, | ||
| 662 | char *alias) | ||
| 663 | { | ||
| 664 | sprintf(alias, SPI_MODULE_PREFIX "%s", id->name); | ||
| 665 | |||
| 666 | return 1; | ||
| 667 | } | ||
| 668 | |||
| 660 | static const struct dmifield { | 669 | static const struct dmifield { |
| 661 | const char *prefix; | 670 | const char *prefix; |
| 662 | int field; | 671 | int field; |
| @@ -853,6 +862,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, | |||
| 853 | do_table(symval, sym->st_size, | 862 | do_table(symval, sym->st_size, |
| 854 | sizeof(struct i2c_device_id), "i2c", | 863 | sizeof(struct i2c_device_id), "i2c", |
| 855 | do_i2c_entry, mod); | 864 | do_i2c_entry, mod); |
| 865 | else if (sym_is(symname, "__mod_spi_device_table")) | ||
| 866 | do_table(symval, sym->st_size, | ||
| 867 | sizeof(struct spi_device_id), "spi", | ||
| 868 | do_spi_entry, mod); | ||
| 856 | else if (sym_is(symname, "__mod_dmi_device_table")) | 869 | else if (sym_is(symname, "__mod_dmi_device_table")) |
| 857 | do_table(symval, sym->st_size, | 870 | do_table(symval, sym->st_size, |
| 858 | sizeof(struct dmi_system_id), "dmi", | 871 | sizeof(struct dmi_system_id), "dmi", |
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 4522948a012e..801a16a17545 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
| @@ -691,7 +691,7 @@ static int number_prefix(const char *sym) | |||
| 691 | * The $ syntax is for sections where ld append a dot number | 691 | * The $ syntax is for sections where ld append a dot number |
| 692 | * to make section name unique. | 692 | * to make section name unique. |
| 693 | */ | 693 | */ |
| 694 | int match(const char *sym, const char * const pat[]) | 694 | static int match(const char *sym, const char * const pat[]) |
| 695 | { | 695 | { |
| 696 | const char *p; | 696 | const char *p; |
| 697 | while (*pat) { | 697 | while (*pat) { |
| @@ -1746,7 +1746,7 @@ static void add_header(struct buffer *b, struct module *mod) | |||
| 1746 | buf_printf(b, "};\n"); | 1746 | buf_printf(b, "};\n"); |
| 1747 | } | 1747 | } |
| 1748 | 1748 | ||
| 1749 | void add_staging_flag(struct buffer *b, const char *name) | 1749 | static void add_staging_flag(struct buffer *b, const char *name) |
| 1750 | { | 1750 | { |
| 1751 | static const char *staging_dir = "drivers/staging"; | 1751 | static const char *staging_dir = "drivers/staging"; |
| 1752 | 1752 | ||
diff --git a/scripts/mod/sumversion.c b/scripts/mod/sumversion.c index aadc5223dcdb..ecf9c7dc1825 100644 --- a/scripts/mod/sumversion.c +++ b/scripts/mod/sumversion.c | |||
| @@ -334,8 +334,6 @@ static int parse_source_files(const char *objfile, struct md4_ctx *md) | |||
| 334 | deps_drivers/net/dummy.o := \ | 334 | deps_drivers/net/dummy.o := \ |
| 335 | drivers/net/dummy.c \ | 335 | drivers/net/dummy.c \ |
| 336 | $(wildcard include/config/net/fastroute.h) \ | 336 | $(wildcard include/config/net/fastroute.h) \ |
| 337 | include/linux/config.h \ | ||
| 338 | $(wildcard include/config/h.h) \ | ||
| 339 | include/linux/module.h \ | 337 | include/linux/module.h \ |
| 340 | 338 | ||
| 341 | Sum all files in the same dir or subdirs. | 339 | Sum all files in the same dir or subdirs. |
