History

init: allow initcall tables to be emitted using relative references

Allow the initcall tables to be emitted using relative references that are only half the size on 64-bit architectures and don't require fixups at runtime on relocatable kernels.

Ard Biesheuvel committed 8 years ago

Commit 1b1eeca1 parent 7290d584 files · +68 −41Browse files

Showing the changes to security (1 of 4 files). Show all

Unified · Split

security/security.c+10−7
@@ -48,14 +48,17 @@ static __initdata char chosen_lsm[SECURITY_NAME_MAX + 1] = · 47 unmodified lines
48static void __init do_security_initcalls(void)48static void __init do_security_initcalls(void)
49{49{
50 int ret;50 int ret;
51 initcall_t *call;51 initcall_t call;
52 call = __security_initcall_start;52 initcall_entry_t *ce;
53
54 ce = __security_initcall_start;
53 trace_initcall_level("security");55 trace_initcall_level("security");
54 while (call < __security_initcall_end) {56 while (ce < __security_initcall_end) {
55 trace_initcall_start((*call));57 call = initcall_from_entry(ce);
56 ret = (*call) ();58 trace_initcall_start(call);
57 trace_initcall_finish((*call), ret);59 ret = call();
58 call++;60 trace_initcall_finish(call, ret);
61 ce++;
59 }62 }
60}63}
61 64

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t