diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-26 15:48:06 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-26 15:48:06 -0500 |
commit | b0138a6cb7923a997d278b47c176778534d1095b (patch) | |
tree | 4fcb8822a69631baba568e4e1942847747123887 /scripts/mod | |
parent | 6572d6d7d0f965dda19d02af804ed3ae4b3bf1fc (diff) | |
parent | 1055a8af093fea7490445bd15cd671020e542035 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/kyle/parisc-2.6: (78 commits)
[PARISC] Use symbolic last syscall in __NR_Linux_syscalls
[PARISC] Add missing statfs64 and fstatfs64 syscalls
Revert "[PARISC] Optimize TLB flush on SMP systems"
[PARISC] Compat signal fixes for 64-bit parisc
[PARISC] Reorder syscalls to match unistd.h
Revert "[PATCH] make kernel/signal.c:kill_proc_info() static"
[PARISC] fix sys_rt_sigqueueinfo
[PARISC] fix section mismatch warnings in harmony sound driver
[PARISC] do not export get_register/set_register
[PARISC] add ENTRY()/ENDPROC() and simplify assembly of HP/UX emulation code
[PARISC] convert to use CONFIG_64BIT instead of __LP64__
[PARISC] use CONFIG_64BIT instead of __LP64__
[PARISC] add ASM_EXCEPTIONTABLE_ENTRY() macro
[PARISC] more ENTRY(), ENDPROC(), END() conversions
[PARISC] fix ENTRY() and ENDPROC() for 64bit-parisc
[PARISC] Fixes /proc/cpuinfo cache output on B160L
[PARISC] implement standard ENTRY(), END() and ENDPROC()
[PARISC] kill ENTRY_SYS_CPUS
[PARISC] clean up debugging printks in smp.c
[PARISC] factor syscall_restart code out of do_signal
...
Fix conflict in include/linux/sched.h due to kill_proc_info() being made
publicly available to PARISC again.
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/file2alias.c | 22 | ||||
-rw-r--r-- | scripts/mod/modpost.c | 3 |
2 files changed, 24 insertions, 1 deletions
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c index f61c9ccef6aa..b2f73ffb40bd 100644 --- a/scripts/mod/file2alias.c +++ b/scripts/mod/file2alias.c | |||
@@ -452,6 +452,24 @@ static int do_eisa_entry(const char *filename, struct eisa_device_id *eisa, | |||
452 | return 1; | 452 | return 1; |
453 | } | 453 | } |
454 | 454 | ||
455 | /* Looks like: parisc:tNhvNrevNsvN */ | ||
456 | static int do_parisc_entry(const char *filename, struct parisc_device_id *id, | ||
457 | char *alias) | ||
458 | { | ||
459 | id->hw_type = TO_NATIVE(id->hw_type); | ||
460 | id->hversion = TO_NATIVE(id->hversion); | ||
461 | id->hversion_rev = TO_NATIVE(id->hversion_rev); | ||
462 | id->sversion = TO_NATIVE(id->sversion); | ||
463 | |||
464 | strcpy(alias, "parisc:"); | ||
465 | ADD(alias, "t", id->hw_type != PA_HWTYPE_ANY_ID, id->hw_type); | ||
466 | ADD(alias, "hv", id->hversion != PA_HVERSION_ANY_ID, id->hversion); | ||
467 | ADD(alias, "rev", id->hversion_rev != PA_HVERSION_REV_ANY_ID, id->hversion_rev); | ||
468 | ADD(alias, "sv", id->sversion != PA_SVERSION_ANY_ID, id->sversion); | ||
469 | |||
470 | return 1; | ||
471 | } | ||
472 | |||
455 | /* Ignore any prefix, eg. v850 prepends _ */ | 473 | /* Ignore any prefix, eg. v850 prepends _ */ |
456 | static inline int sym_is(const char *symbol, const char *name) | 474 | static inline int sym_is(const char *symbol, const char *name) |
457 | { | 475 | { |
@@ -559,6 +577,10 @@ void handle_moddevtable(struct module *mod, struct elf_info *info, | |||
559 | do_table(symval, sym->st_size, | 577 | do_table(symval, sym->st_size, |
560 | sizeof(struct eisa_device_id), "eisa", | 578 | sizeof(struct eisa_device_id), "eisa", |
561 | do_eisa_entry, mod); | 579 | do_eisa_entry, mod); |
580 | else if (sym_is(symname, "__mod_parisc_device_table")) | ||
581 | do_table(symval, sym->st_size, | ||
582 | sizeof(struct parisc_device_id), "parisc", | ||
583 | do_parisc_entry, mod); | ||
562 | } | 584 | } |
563 | 585 | ||
564 | /* Now add out buffered information to the generated C source */ | 586 | /* Now add out buffered information to the generated C source */ |
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index c4b5398687b8..65bdfdb56877 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -961,7 +961,7 @@ static int init_section_ref_ok(const char *name) | |||
961 | ".opd", /* see comment [OPD] at exit_section_ref_ok() */ | 961 | ".opd", /* see comment [OPD] at exit_section_ref_ok() */ |
962 | ".toc1", /* used by ppc64 */ | 962 | ".toc1", /* used by ppc64 */ |
963 | ".stab", | 963 | ".stab", |
964 | ".rodata", | 964 | ".data.rel.ro", /* used by parisc64 */ |
965 | ".parainstructions", | 965 | ".parainstructions", |
966 | ".text.lock", | 966 | ".text.lock", |
967 | "__bug_table", /* used by powerpc for BUG() */ | 967 | "__bug_table", /* used by powerpc for BUG() */ |
@@ -984,6 +984,7 @@ static int init_section_ref_ok(const char *name) | |||
984 | ".eh_frame", | 984 | ".eh_frame", |
985 | ".debug", | 985 | ".debug", |
986 | ".parainstructions", | 986 | ".parainstructions", |
987 | ".rodata", | ||
987 | NULL | 988 | NULL |
988 | }; | 989 | }; |
989 | /* part of section name */ | 990 | /* part of section name */ |