kernel-fxtec-pro1x/arch/x86/um
Geert Uytterhoeven 9429ec96c2 um: Preinclude include/linux/kern_levels.h
The userspace part of UML uses the asm-offsets.h generator mechanism to
create definitions for UM_KERN_<LEVEL> that match the in-kernel
KERN_<LEVEL> constant definitions.

As of commit 04d2c8c83d ("printk: convert
the format for KERN_<LEVEL> to a 2 byte pattern"), KERN_<LEVEL> is no
longer expanded to the literal '"<LEVEL>"', but to '"\001" "LEVEL"', i.e.
it contains two parts.

However, the combo of DEFINE_STR() in
arch/x86/um/shared/sysdep/kernel-offsets.h and sed-y in Kbuild doesn't
support string literals consisting of multiple parts. Hence for all
UM_KERN_<LEVEL> definitions, only the SOH character is retained in the actual
definition, while the remainder ends up in the comment. E.g. in
include/generated/asm-offsets.h we get

    #define UM_KERN_INFO "\001" /* "6" KERN_INFO */

instead of

    #define UM_KERN_INFO "\001" "6" /* KERN_INFO */

This causes spurious '^A' output in some kernel messages:

    Calibrating delay loop... 4640.76 BogoMIPS (lpj=23203840)
    pid_max: default: 32768 minimum: 301
    Mount-cache hash table entries: 256
    ^AChecking that host ptys support output SIGIO...Yes
    ^AChecking that host ptys support SIGIO on close...No, enabling workaround
    ^AUsing 2.6 host AIO
    NET: Registered protocol family 16
    bio: create slab <bio-0> at 0
    Switching to clocksource itimer

To fix this:
  - Move the mapping from UM_KERN_<LEVEL> to KERN_<LEVEL> from
    arch/um/include/shared/common-offsets.h to
    arch/um/include/shared/user.h, which is preincluded for all userspace
    parts,
  - Preinclude include/linux/kern_levels.h for all userspace parts, to
    obtain the in-kernel KERN_<LEVEL> constant definitions. This doesn't
    violate the kernel/userspace separation, as include/linux/kern_levels.h
    is self-contained and doesn't expose any other kernel internals.
  - Remove the now unused STR() and DEFINE_STR() macros.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Richard Weinberger <richard@nod.at>
2012-09-27 20:20:09 +02:00
..
asm um: switch UPT_SET_RETURN_VALUE and regs_return_value to pt_regs 2012-08-01 23:33:16 +02:00
os-Linux
shared/sysdep um: Preinclude include/linux/kern_levels.h 2012-09-27 20:20:09 +02:00
vdso coredump: remove VM_ALWAYSDUMP flag 2012-03-23 16:58:42 -07:00
bug.c
bugs_32.c um: kill HOST_TASK_PID 2012-03-25 00:29:55 +01:00
bugs_64.c
checksum_32.S x86, extable: Remove open-coded exception table entries in arch/x86/um/checksum_32.S 2012-04-20 13:51:39 -07:00
delay.c
elfcore.c
fault.c
Kconfig um: Fix IPC on um 2012-09-27 20:12:35 +02:00
ksyms.c
ldt.c
Makefile x86, um: Use the same style generated syscall tables as native 2011-12-05 16:08:49 -08:00
mem_32.c coredump: remove VM_ALWAYSDUMP flag 2012-03-23 16:58:42 -07:00
mem_64.c
ptrace_32.c
ptrace_64.c
ptrace_user.c
setjmp_32.S
setjmp_64.S
signal.c um: let signal_delivered() do SIGTRAP on singlestepping into handler 2012-09-27 18:04:47 +02:00
stub_32.S
stub_64.S
stub_segv.c
sys_call_table_32.c um: kill thread->forking 2012-09-27 18:04:55 +02:00
sys_call_table_64.c um: stub_rt_sigsuspend isn't needed these days anymore 2012-05-21 16:29:01 -04:00
syscalls_32.c um: kill thread->forking 2012-09-27 18:04:55 +02:00
syscalls_64.c um: kill thread->forking 2012-09-27 18:04:55 +02:00
sysrq_32.c um/x86: merge (and trim) 32- and 64-bit variants of ptrace.h 2012-05-21 16:28:34 -04:00
sysrq_64.c um/x86: merge (and trim) 32- and 64-bit variants of ptrace.h 2012-05-21 16:28:34 -04:00
tls_32.c um/x86: merge (and trim) 32- and 64-bit variants of ptrace.h 2012-05-21 16:28:34 -04:00
tls_64.c
user-offsets.c x32: Add x32 system calls to syscall/syscall_64.tbl 2012-02-20 12:48:49 -08:00