diff options
| author | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-25 12:26:59 -0400 |
|---|---|---|
| committer | Steven Whitehouse <swhiteho@redhat.com> | 2006-09-25 12:26:59 -0400 |
| commit | 363e065c02b1273364d5356711a83e7f548fc0c8 (patch) | |
| tree | 0df0e65da403ade33ade580c2770c97437b1b1af /scripts/mod/file2alias.c | |
| parent | 907b9bceb41fa46beae93f79cc4a2247df502c0f (diff) | |
| parent | 7c250413e5b7c3dfae89354725b70c76d7621395 (diff) | |
[GFS2] Fix up merge of Linus' kernel into GFS2
This fixes up a couple of conflicts when merging up with
Linus' latest kernel. This will hopefully allow GFS2 to
be more easily merged into forthcoming -mm and FC kernels
due to the "one line per header" format now used for the
kernel headers.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Conflicts:
include/linux/Kbuild
include/linux/kernel.h
Diffstat (limited to 'scripts/mod/file2alias.c')
| -rw-r--r-- | scripts/mod/file2alias.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index e2de650d3dbf..de76da80443f 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
| @@ -265,6 +265,14 @@ static int do_ccw_entry(const char *filename, | |||
| 265 | return 1; | 265 | return 1; |
| 266 | } | 266 | } |
| 267 | 267 | ||
| 268 | /* looks like: "ap:tN" */ | ||
| 269 | static int do_ap_entry(const char *filename, | ||
| 270 | struct ap_device_id *id, char *alias) | ||
| 271 | { | ||
| 272 | sprintf(alias, "ap:t%02X", id->dev_type); | ||
| 273 | return 1; | ||
| 274 | } | ||
| 275 | |||
| 268 | /* Looks like: "serio:tyNprNidNexN" */ | 276 | /* Looks like: "serio:tyNprNidNexN" */ |
| 269 | static int do_serio_entry(const char *filename, | 277 | static int do_serio_entry(const char *filename, |
| 270 | struct serio_device_id *id, char *alias) | 278 | struct serio_device_id *id, char *alias) |
| @@ -503,6 +511,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, | |||
| 503 | do_table(symval, sym->st_size, | 511 | do_table(symval, sym->st_size, |
| 504 | sizeof(struct ccw_device_id), "ccw", | 512 | sizeof(struct ccw_device_id), "ccw", |
| 505 | do_ccw_entry, mod); | 513 | do_ccw_entry, mod); |
| 514 | else if (sym_is(symname, "__mod_ap_device_table")) | ||
| 515 | do_table(symval, sym->st_size, | ||
| 516 | sizeof(struct ap_device_id), "ap", | ||
| 517 | do_ap_entry, mod); | ||
| 506 | else if (sym_is(symname, "__mod_serio_device_table")) | 518 | else if (sym_is(symname, "__mod_serio_device_table")) |
| 507 | do_table(symval, sym->st_size, | 519 | do_table(symval, sym->st_size, |
| 508 | sizeof(struct serio_device_id), "serio", | 520 | sizeof(struct serio_device_id), "serio", |
