Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115550
b: refs/heads/master
c: a9860bf
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed Oct 10, 2008
1 parent 5e3d404 commit 6da523f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 061b1bd394ca8628b7c24eb4658ba3535da4249a
refs/heads/master: a9860bf05f4cb94f60f8f3459908d5621f75dd06
9 changes: 9 additions & 0 deletions trunk/scripts/mod/modpost.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
**/
Expand Down Expand Up @@ -2135,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);
Expand Down

0 comments on commit 6da523f

Please sign in to comment.