Re: linux-next: Tree for September 16 (cpustr.h)

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Randy.Dunlap
Date: Tuesday, September 16, 2008 - 11:50 am

I'm seeing lots of gcc warnings from the generated cpustr.h file, like so:

  arch/x86/boot/mkcpustr > arch/x86/boot/cpustr.h
  gcc -Wp,-MD,arch/x86/boot/.cpu.o.d  -nostdinc -isystem /usr/lib/gcc/x86_6=
4-redhat-linux/4.1.1/include -D__KERNEL__ -Iinclude -Iinclude2 -I/home/rdun=
lap/linsrc/linux-next-20080916/include -I/home/rdunlap/linsrc/linux-next-20=
080916/arch/x86/include -include include/linux/autoconf.h -I/home/rdunlap/l=
insrc/linux-next-20080916/arch/x86/boot -Iarch/x86/boot -I/home/rdunlap/lin=
src/linux-next-20080916/include -Iinclude -I/home/rdunlap/linsrc/linux-next=
-20080916/include2 -Iinclude2  -I/home/rdunlap/linsrc/linux-next-20080916/i=
nclude  -I/home/rdunlap/linsrc/linux-next-20080916/arch/x86/include -includ=
e include/linux/autoconf.h -g -Os -D_SETUP -D__KERNEL__ -Wall -Wstrict-prot=
otypes -march=3Di386 -mregparm=3D3 -include /home/rdunlap/linsrc/linux-next=
-20080916/arch/x86/boot/code16gcc.h -fno-strict-aliasing -fomit-frame-point=
er -ffreestanding -fno-unit-at-a-time -fno-stack-protector -mpreferred-stac=
k-boundary=3D2 -m32 -D__BIG_KERNEL__  -D"KBUILD_STR(s)=3D#s" -D"KBUILD_BASE=
NAME=3DKBUILD_STR(cpu)"  -D"KBUILD_MODNAME=3DKBUILD_STR(cpu)" -D"DEBUG_HASH=
=3D3" -D"DEBUG_HASH2=3D23" -c -o arch/x86/boot/cpu.o /home/rdunlap/linsrc/l=
inux-next-20080916/arch/x86/boot/cpu.c
cc1: warning: hex escape sequence out of range


The ending lines of cpustr.h include hex strings like "\x111".
gcc complains about these.  If I change them to "\x011" (e.g.), there
is no warning.

--=20
~Randy
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
linux-next: Tree for September 16, Stephen Rothwell, (Tue Sep 16, 12:34 am)
Re: linux-next: Tree for September 16, Takashi Iwai, (Tue Sep 16, 11:00 am)
Re: linux-next: Tree for September 16 (cpustr.h), Randy.Dunlap, (Tue Sep 16, 11:50 am)
[PATCH -next] blkdev.h: fix warnings when CONFIG_BLOCK=n, Randy.Dunlap, (Tue Sep 16, 12:29 pm)
Re: linux-next: Tree for September 16 (cpustr.h), H. Peter Anvin, (Tue Sep 16, 1:48 pm)
Re: [PATCH -next] blkdev.h: fix warnings when CONFIG_BLOCK=n, Stephen Rothwell, (Tue Sep 16, 3:16 pm)
Re: linux-next: Tree for September 16 (cpustr.h), Randy Dunlap, (Fri Sep 19, 1:28 pm)