diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-06 20:28:32 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-06 20:28:32 -0500 |
| commit | d4a2e61f0b7a7b5b9e321e776a1e874c02e847e4 (patch) | |
| tree | d90b71a99cb82809d56f9798f59d175b57562803 /scripts | |
| parent | 0e4c9dc2f2e0fb6d3838eba34382fc6d2d1c381c (diff) | |
| parent | 2449b8ba0745327c5fa49a8d9acffe03b2eded69 (diff) | |
Merge git://github.com/rustyrussell/linux
* git://github.com/rustyrussell/linux:
module,bug: Add TAINT_OOT_MODULE flag for modules not built in-tree
module: Enable dynamic debugging regardless of taint
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/mod/modpost.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index a509ff8f32fa..2bd594e6d1b4 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
| @@ -1849,6 +1849,12 @@ static void add_header(struct buffer *b, struct module *mod) | |||
| 1849 | buf_printf(b, "};\n"); | 1849 | buf_printf(b, "};\n"); |
| 1850 | } | 1850 | } |
| 1851 | 1851 | ||
| 1852 | static void add_intree_flag(struct buffer *b, int is_intree) | ||
| 1853 | { | ||
| 1854 | if (is_intree) | ||
| 1855 | buf_printf(b, "\nMODULE_INFO(intree, \"Y\");\n"); | ||
| 1856 | } | ||
| 1857 | |||
| 1852 | static void add_staging_flag(struct buffer *b, const char *name) | 1858 | static void add_staging_flag(struct buffer *b, const char *name) |
| 1853 | { | 1859 | { |
| 1854 | static const char *staging_dir = "drivers/staging"; | 1860 | static const char *staging_dir = "drivers/staging"; |
| @@ -2169,6 +2175,7 @@ int main(int argc, char **argv) | |||
| 2169 | buf.pos = 0; | 2175 | buf.pos = 0; |
| 2170 | 2176 | ||
| 2171 | add_header(&buf, mod); | 2177 | add_header(&buf, mod); |
| 2178 | add_intree_flag(&buf, !external_module); | ||
| 2172 | add_staging_flag(&buf, mod->name); | 2179 | add_staging_flag(&buf, mod->name); |
| 2173 | err |= add_versions(&buf, mod); | 2180 | err |= add_versions(&buf, mod); |
| 2174 | add_depends(&buf, mod, modules); | 2181 | add_depends(&buf, mod, modules); |
