diff options
| author | Wang Chen <[email protected]> | 2009-03-25 13:07:11 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-03-25 13:07:11 +0000 |
| commit | 9f4f25c86ff2233dd98d4bd6968afb1ca66558a0 (patch) | |
| tree | f9d29becb0f2158bb3abe55f3e8e4c987b54ff7f /Documentation/DocBook/procfs_example.c | |
| parent | Merge branches 'x86/apic', 'x86/cleanups', 'x86/mm', 'x86/pat', 'x86/setup' a... (diff) | |
| download | kernel-9f4f25c86ff2233dd98d4bd6968afb1ca66558a0.tar.gz kernel-9f4f25c86ff2233dd98d4bd6968afb1ca66558a0.zip | |
x86: early_ioremap_init(), use __fix_to_virt(), because we are sure it's safe
Tetsuo Handa reported this link bug:
| arch/x86/mm/built-in.o(.init.text+0x1831): In function `early_ioremap_init':
| : undefined reference to `__this_fixmap_does_not_exist'
| make: *** [.tmp_vmlinux1] Error 1
Commit:8827247ffcc9e880cbe4705655065cf011265157 used a variable (which
would be optimized to constant) as fix_to_virt()'s parameter.
It's depended on gcc's optimization and fails on old gcc. (Tetsuo used gcc 3.3)
We can use __fix_to_vir() instead, because we know it's safe and
don't need link time error reporting.
Reported-by: Tetsuo Handa <[email protected]>
Signed-off-by: Wang Chen <[email protected]>
Cc: [email protected]
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'Documentation/DocBook/procfs_example.c')
0 files changed, 0 insertions, 0 deletions
