diff options
| author | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-10-23 15:24:10 +0200 | 
|---|---|---|
| committer | Haavard Skinnemoen <haavard.skinnemoen@atmel.com> | 2008-10-23 15:24:10 +0200 | 
| commit | d9214556b11a8d18ff588e60824c12041d30f791 (patch) | |
| tree | 04ab59d13961675811a55c96fb12b2b167b72318 /scripts/mod/modpost.c | |
| parent | 72a1419a9d4c859a3345e4b83f8ef7d599d3818c (diff) | |
| parent | e82c6106b04b85879d802bbbeaed30d9b10a92e2 (diff) | |
Merge branches 'boards' and 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6
Diffstat (limited to 'scripts/mod/modpost.c')
| -rw-r--r-- | scripts/mod/modpost.c | 15 | 
1 files changed, 13 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 418cd7dbbc9..88921611b22 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -1726,6 +1726,14 @@ static void add_header(struct buffer *b, struct module *mod)  	buf_printf(b, "};\n");  } +void add_staging_flag(struct buffer *b, const char *name) +{ +	static const char *staging_dir = "drivers/staging"; + +	if (strncmp(staging_dir, name, strlen(staging_dir)) == 0) +		buf_printf(b, "\nMODULE_INFO(staging, \"Y\");\n"); +} +  /**   * Record CRCs for unresolved symbols   **/ @@ -1986,11 +1994,13 @@ static void read_markers(const char *fname)  		mod = find_module(modname);  		if (!mod) { -			if (is_vmlinux(modname)) -				have_vmlinux = 1;  			mod = new_module(NOFAIL(strdup(modname)));  			mod->skip = 1;  		} +		if (is_vmlinux(modname)) { +			have_vmlinux = 1; +			mod->skip = 0; +		}  		if (!mod->skip)  			add_marker(mod, marker, fmt); @@ -2133,6 +2143,7 @@ int main(int argc, char **argv)  		buf.pos = 0;  		add_header(&buf, mod); +		add_staging_flag(&buf, mod->name);  		err |= add_versions(&buf, mod);  		add_depends(&buf, mod, modules);  		add_moddevtable(&buf, mod);  | 
