* [PATCH] ARM: OMAP2: add type cast from 'unsigned' to 'signed' @ 2013-08-21 8:26 Chen Gang 2013-08-21 8:31 ` [PATCH] ARM: OMAP2: remove useless variable 'ret' Chen Gang 2013-08-22 7:14 ` [PATCH] ARM: OMAP2: add type cast from 'unsigned' to 'signed' Tony Lindgren 0 siblings, 2 replies; 27+ messages in thread From: Chen Gang @ 2013-08-21 8:26 UTC (permalink / raw) To: linux-arm-kernel Need add type cast, or can not notice the failure. The related warning (allmodconfig, "EXTRA_CFLAGS=-W"): arch/arm/mach-omap2/gpmc.c:728:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] Signed-off-by: Chen Gang <gang.chen@asianux.com> --- arch/arm/mach-omap2/gpmc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index f3fdd6a..62377b5 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -725,7 +725,7 @@ static int gpmc_setup_irq(void) return -EINVAL; gpmc_irq_start = irq_alloc_descs(-1, 0, GPMC_NR_IRQ, 0); - if (gpmc_irq_start < 0) { + if ((signed)gpmc_irq_start < 0) { pr_err("irq_alloc_descs failed\n"); return gpmc_irq_start; } -- 1.7.7.6 ^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH] ARM: OMAP2: remove useless variable 'ret' 2013-08-21 8:26 [PATCH] ARM: OMAP2: add type cast from 'unsigned' to 'signed' Chen Gang @ 2013-08-21 8:31 ` Chen Gang 2013-08-22 7:17 ` Tony Lindgren [not found] ` <52147E12.4060401@asianux.com> 2013-08-22 7:14 ` [PATCH] ARM: OMAP2: add type cast from 'unsigned' to 'signed' Tony Lindgren 1 sibling, 2 replies; 27+ messages in thread From: Chen Gang @ 2013-08-21 8:31 UTC (permalink / raw) To: linux-arm-kernel Remove useless variable 'ret', the related warning: arch/arm/mach-omap2/board-am3517crane.c:113:6: warning: unused variable ?ret? [-Wunused-variable] Signed-off-by: Chen Gang <gang.chen@asianux.com> --- arch/arm/mach-omap2/board-am3517crane.c | 2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c index fc53911..0d499a1 100644 --- a/arch/arm/mach-omap2/board-am3517crane.c +++ b/arch/arm/mach-omap2/board-am3517crane.c @@ -110,8 +110,6 @@ static void __init am3517_crane_i2c_init(void) static void __init am3517_crane_init(void) { - int ret; - omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); omap_serial_init(); omap_sdrc_init(NULL, NULL); -- 1.7.7.6 ^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH] ARM: OMAP2: remove useless variable 'ret' 2013-08-21 8:31 ` [PATCH] ARM: OMAP2: remove useless variable 'ret' Chen Gang @ 2013-08-22 7:17 ` Tony Lindgren 2013-08-22 7:24 ` Chen Gang [not found] ` <52147E12.4060401@asianux.com> 1 sibling, 1 reply; 27+ messages in thread From: Tony Lindgren @ 2013-08-22 7:17 UTC (permalink / raw) To: linux-arm-kernel * Chen Gang <gang.chen@asianux.com> [130821 01:39]: > Remove useless variable 'ret', the related warning: > > arch/arm/mach-omap2/board-am3517crane.c:113:6: warning: unused variable ?ret? [-Wunused-variable] Thanks applying into omap-for-v3.12/fixes-non-critical. Regards, Tony > Signed-off-by: Chen Gang <gang.chen@asianux.com> > --- > arch/arm/mach-omap2/board-am3517crane.c | 2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c > index fc53911..0d499a1 100644 > --- a/arch/arm/mach-omap2/board-am3517crane.c > +++ b/arch/arm/mach-omap2/board-am3517crane.c > @@ -110,8 +110,6 @@ static void __init am3517_crane_i2c_init(void) > > static void __init am3517_crane_init(void) > { > - int ret; > - > omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); > omap_serial_init(); > omap_sdrc_init(NULL, NULL); > -- > 1.7.7.6 ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH] ARM: OMAP2: remove useless variable 'ret' 2013-08-22 7:17 ` Tony Lindgren @ 2013-08-22 7:24 ` Chen Gang 0 siblings, 0 replies; 27+ messages in thread From: Chen Gang @ 2013-08-22 7:24 UTC (permalink / raw) To: linux-arm-kernel On 08/22/2013 03:17 PM, Tony Lindgren wrote: > * Chen Gang <gang.chen@asianux.com> [130821 01:39]: >> Remove useless variable 'ret', the related warning: >> >> arch/arm/mach-omap2/board-am3517crane.c:113:6: warning: unused variable ?ret? [-Wunused-variable] > > Thanks applying into omap-for-v3.12/fixes-non-critical. > Thank you too. > Regards, > > Tony > >> Signed-off-by: Chen Gang <gang.chen@asianux.com> >> --- >> arch/arm/mach-omap2/board-am3517crane.c | 2 -- >> 1 files changed, 0 insertions(+), 2 deletions(-) >> >> diff --git a/arch/arm/mach-omap2/board-am3517crane.c b/arch/arm/mach-omap2/board-am3517crane.c >> index fc53911..0d499a1 100644 >> --- a/arch/arm/mach-omap2/board-am3517crane.c >> +++ b/arch/arm/mach-omap2/board-am3517crane.c >> @@ -110,8 +110,6 @@ static void __init am3517_crane_i2c_init(void) >> >> static void __init am3517_crane_init(void) >> { >> - int ret; >> - >> omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); >> omap_serial_init(); >> omap_sdrc_init(NULL, NULL); >> -- >> 1.7.7.6 > > -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
[parent not found: <52147E12.4060401@asianux.com>]
* [Suggestion] ARM: allmodconfig: about cross compiling failure under i386 ubuntu. [not found] ` <52147E12.4060401@asianux.com> @ 2013-08-22 7:45 ` Tony Lindgren 2013-08-22 9:19 ` Chen Gang 2013-08-22 10:22 ` Russell King - ARM Linux 0 siblings, 2 replies; 27+ messages in thread From: Tony Lindgren @ 2013-08-22 7:45 UTC (permalink / raw) To: linux-arm-kernel * Chen Gang <gang.chen@asianux.com> [130821 01:53]: > Hello Maintainers: > > When build arm with allmodconfig under ubuntu i386 with arm-linux- > gnueabi-gcc 4.7, as 2.22, it report the errors. > > Please help check, thanks (the related config file in attachment). It seems that some make flags may need to be specified separately in some makefiles. See the following for some examples: $ find arch/arm -name Makefile | xargs grep -i flags I'm getting different errors though, I'm getting: arch/arm/mach-zynq/hotplug.c:1: error: bad value (cortex-a9) for -mcpu= switch As probably my compiler does not support the cortex-a9 switch, I have gcc version 4.3.5 (Debian 4.3.5-4), tried with v3.11-rc5. Regards, Tony ^ permalink raw reply [flat|nested] 27+ messages in thread
* [Suggestion] ARM: allmodconfig: about cross compiling failure under i386 ubuntu. 2013-08-22 7:45 ` [Suggestion] ARM: allmodconfig: about cross compiling failure under i386 ubuntu Tony Lindgren @ 2013-08-22 9:19 ` Chen Gang 2013-08-22 10:15 ` Chen Gang 2013-08-22 10:22 ` Russell King - ARM Linux 1 sibling, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-22 9:19 UTC (permalink / raw) To: linux-arm-kernel On 08/22/2013 03:45 PM, Tony Lindgren wrote: > * Chen Gang <gang.chen@asianux.com> [130821 01:53]: >> Hello Maintainers: >> >> When build arm with allmodconfig under ubuntu i386 with arm-linux- >> gnueabi-gcc 4.7, as 2.22, it report the errors. >> >> Please help check, thanks (the related config file in attachment). > > It seems that some make flags may need to be specified separately > in some makefiles. See the following for some examples: > > $ find arch/arm -name Makefile | xargs grep -i flags > > I'm getting different errors though, I'm getting: > > arch/arm/mach-zynq/hotplug.c:1: error: bad value (cortex-a9) for -mcpu= switch > > As probably my compiler does not support the cortex-a9 switch, > I have gcc version 4.3.5 (Debian 4.3.5-4), tried with v3.11-rc5. > Thank you for your valuable reply, I followed what you said above, and now it seems really related the compiler's flags. I have passed compiling for the VEXPRESS with dcscb, I will compare the difference between the 2 building flags. It seems we need add the related dependency for ARCH_VEXPRESS (I am just analyzing, may get final result today). Thanks. > Regards, > > Tony > > -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
* [Suggestion] ARM: allmodconfig: about cross compiling failure under i386 ubuntu. 2013-08-22 9:19 ` Chen Gang @ 2013-08-22 10:15 ` Chen Gang 0 siblings, 0 replies; 27+ messages in thread From: Chen Gang @ 2013-08-22 10:15 UTC (permalink / raw) To: linux-arm-kernel On 08/22/2013 05:19 PM, Chen Gang wrote: > On 08/22/2013 03:45 PM, Tony Lindgren wrote: >> * Chen Gang <gang.chen@asianux.com> [130821 01:53]: >>> Hello Maintainers: >>> >>> When build arm with allmodconfig under ubuntu i386 with arm-linux- >>> gnueabi-gcc 4.7, as 2.22, it report the errors. >>> >>> Please help check, thanks (the related config file in attachment). >> >> It seems that some make flags may need to be specified separately >> in some makefiles. See the following for some examples: >> >> $ find arch/arm -name Makefile | xargs grep -i flags >> >> I'm getting different errors though, I'm getting: >> >> arch/arm/mach-zynq/hotplug.c:1: error: bad value (cortex-a9) for -mcpu= switch >> >> As probably my compiler does not support the cortex-a9 switch, >> I have gcc version 4.3.5 (Debian 4.3.5-4), tried with v3.11-rc5. >> Maybe your case is different with my case (but may be the same solving ways). After compare the 'flags', for my case, the root cause is: "for allmodconfig, it will enable CPU_V6 which VEXPRESS doesn't support". after disable CPU_V6 after allmodconfig, it can pass compiling: ("System type" -> "Multiple platform selection" -> "ARMv6 based platforms"). Welcome any additional suggestions or completions, if no additional reply, I will try to send the related patch tomorrow. :-) Thanks. > > Thank you for your valuable reply, I followed what you said above, and > now it seems really related the compiler's flags. > > I have passed compiling for the VEXPRESS with dcscb, I will compare the > difference between the 2 building flags. > > It seems we need add the related dependency for ARCH_VEXPRESS (I am just > analyzing, may get final result today). > > > Thanks. > > >> Regards, >> >> Tony >> >> > > -- Chen Gang -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
* [Suggestion] ARM: allmodconfig: about cross compiling failure under i386 ubuntu. 2013-08-22 7:45 ` [Suggestion] ARM: allmodconfig: about cross compiling failure under i386 ubuntu Tony Lindgren 2013-08-22 9:19 ` Chen Gang @ 2013-08-22 10:22 ` Russell King - ARM Linux 2013-08-23 1:47 ` Chen Gang 1 sibling, 1 reply; 27+ messages in thread From: Russell King - ARM Linux @ 2013-08-22 10:22 UTC (permalink / raw) To: linux-arm-kernel On Thu, Aug 22, 2013 at 12:45:24AM -0700, Tony Lindgren wrote: > * Chen Gang <gang.chen@asianux.com> [130821 01:53]: > > Hello Maintainers: > > > > When build arm with allmodconfig under ubuntu i386 with arm-linux- > > gnueabi-gcc 4.7, as 2.22, it report the errors. > > > > Please help check, thanks (the related config file in attachment). > > It seems that some make flags may need to be specified separately > in some makefiles. See the following for some examples: > > $ find arch/arm -name Makefile | xargs grep -i flags > > I'm getting different errors though, I'm getting: > > arch/arm/mach-zynq/hotplug.c:1: error: bad value (cortex-a9) for -mcpu= switch > > As probably my compiler does not support the cortex-a9 switch, > I have gcc version 4.3.5 (Debian 4.3.5-4), tried with v3.11-rc5. The use of -mcpu with -march is not a good idea anyway - you either use -mcpu= or you use -march and -mtune. -mcpu= sets the CPU type, which specifies the instruction architecture (iow, which instructions can be used) and instruction scheduling behaviour. -march= sets the architecture only. -mtune= sets the instruction scheduling behaviour only. So, that -mcpu= should probably be -mtune=, but if that fails due to unrecognised instructions, the -march= parameter is wrong. Even so, if gcc 4.3.5 doesn't support cortex-a9 as a CPU type, and we want to support that gcc version, the setting of -mtune needs to be conditionalised. As it is only a scheduling hint, it's probably fine for it to end up being omitted. ^ permalink raw reply [flat|nested] 27+ messages in thread
* [Suggestion] ARM: allmodconfig: about cross compiling failure under i386 ubuntu. 2013-08-22 10:22 ` Russell King - ARM Linux @ 2013-08-23 1:47 ` Chen Gang 2013-08-23 2:06 ` Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-23 1:47 UTC (permalink / raw) To: linux-arm-kernel On 08/22/2013 06:22 PM, Russell King - ARM Linux wrote: > On Thu, Aug 22, 2013 at 12:45:24AM -0700, Tony Lindgren wrote: >> * Chen Gang <gang.chen@asianux.com> [130821 01:53]: >>> Hello Maintainers: >>> >>> When build arm with allmodconfig under ubuntu i386 with arm-linux- >>> gnueabi-gcc 4.7, as 2.22, it report the errors. >>> >>> Please help check, thanks (the related config file in attachment). >> >> It seems that some make flags may need to be specified separately >> in some makefiles. See the following for some examples: >> >> $ find arch/arm -name Makefile | xargs grep -i flags >> >> I'm getting different errors though, I'm getting: >> >> arch/arm/mach-zynq/hotplug.c:1: error: bad value (cortex-a9) for -mcpu= switch >> >> As probably my compiler does not support the cortex-a9 switch, >> I have gcc version 4.3.5 (Debian 4.3.5-4), tried with v3.11-rc5. > > The use of -mcpu with -march is not a good idea anyway - you either use > -mcpu= or you use -march and -mtune. > > -mcpu= sets the CPU type, which specifies the instruction architecture > (iow, which instructions can be used) and instruction scheduling behaviour. > > -march= sets the architecture only. -mtune= sets the instruction > scheduling behaviour only. > > So, that -mcpu= should probably be -mtune=, but if that fails due to > unrecognised instructions, the -march= parameter is wrong. > Hmm... firstly, the root cause is really "the -march= parameter is wrong": the correct value is "armv7-a", not "armv6k". But in my case: the correct command is "the use of -mcpu with -march ...", and not need "-mcpu= should probably be -mtune=, ..." the incorrect command is "or you use -march and -mtune.", and also "-march= sets the architecture only. -mtun= ..." Please reference the related command below: Correct command (for vexpress_defconfig, can succeed compiling): arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -O2 -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/root/ linux-nex t/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -mcpu=cortex-a8 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dcscb)" -D"KBUILD_MODNAME=KBUILD_STR(dcscb)" -c -o arch/arm/mach-vexpress/dcscb.o arch/arm/mach-vexpress/dcscb.c Incorrect command (for allmodconfig which I originally sent with failure): arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -Wno-unused-but-se t-variabl e -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -fno-var-tracking -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/root/linux-next/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -W -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dcscb)" -D"KBUILD_MODNAME=KBUILD_STR(dcscb)" -c -o arch/arm/mach-vexpress/.tmp_dcscb.o arch/arm/mach-vexpress/dcscb.c > Even so, if gcc 4.3.5 doesn't support cortex-a9 as a CPU type, and we > want to support that gcc version, the setting of -mtune needs to be > conditionalised. As it is only a scheduling hint, it's probably fine > for it to end up being omitted. > > It sounds a good idea. Hello Tony: What about your idea for it ? Thanks. -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
* [Suggestion] ARM: allmodconfig: about cross compiling failure under i386 ubuntu. 2013-08-23 1:47 ` Chen Gang @ 2013-08-23 2:06 ` Chen Gang 2013-08-23 3:04 ` [PATCH] ARM: VExpress: Kconfig: avoid arm6 compatible for ARCH_VEXPRESS Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-23 2:06 UTC (permalink / raw) To: linux-arm-kernel On 08/23/2013 09:47 AM, Chen Gang wrote: > On 08/22/2013 06:22 PM, Russell King - ARM Linux wrote: >> On Thu, Aug 22, 2013 at 12:45:24AM -0700, Tony Lindgren wrote: >>> * Chen Gang <gang.chen@asianux.com> [130821 01:53]: >>>> Hello Maintainers: >>>> >>>> When build arm with allmodconfig under ubuntu i386 with arm-linux- >>>> gnueabi-gcc 4.7, as 2.22, it report the errors. >>>> >>>> Please help check, thanks (the related config file in attachment). >>> >>> It seems that some make flags may need to be specified separately >>> in some makefiles. See the following for some examples: >>> >>> $ find arch/arm -name Makefile | xargs grep -i flags >>> >>> I'm getting different errors though, I'm getting: >>> >>> arch/arm/mach-zynq/hotplug.c:1: error: bad value (cortex-a9) for -mcpu= switch >>> >>> As probably my compiler does not support the cortex-a9 switch, >>> I have gcc version 4.3.5 (Debian 4.3.5-4), tried with v3.11-rc5. >> >> The use of -mcpu with -march is not a good idea anyway - you either use >> -mcpu= or you use -march and -mtune. >> >> -mcpu= sets the CPU type, which specifies the instruction architecture >> (iow, which instructions can be used) and instruction scheduling behaviour. >> >> -march= sets the architecture only. -mtune= sets the instruction >> scheduling behaviour only. >> >> So, that -mcpu= should probably be -mtune=, but if that fails due to >> unrecognised instructions, the -march= parameter is wrong. >> > > Hmm... firstly, the root cause is really "the -march= parameter is > wrong": the correct value is "armv7-a", not "armv6k". > > But in my case: > > the correct command is "the use of -mcpu with -march ...", and not need "-mcpu= should probably be -mtune=, ..." Oh, sorry, "-mcpu=cortex-a8" is added by myself manually during analyzing, it will pass compiling whether have it or not (but suggest not set it just like you have said). > the incorrect command is "or you use -march and -mtune.", and also "-march= sets the architecture only. -mtun= ..." > > > Please reference the related command below: > > Correct command (for vexpress_defconfig, can succeed compiling): > > arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -O2 -fno-dwarf2-cfi-asm -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=7 -march=armv7-a -msoft-float -Uarm -Wframe-larger-than=1024 -fno-stack-protector -Wno-unused-but-set-variable -fomit-frame-pointer -g -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/roo t/linux-n ex > t/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -mcpu=cortex-a8 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dcscb)" -D"KBUILD_MODNAME=KBUILD_STR(dcscb)" -c -o arch/arm/mach-vexpress/dcscb.o arch/arm/mach-vexpress/dcscb.c > > > Incorrect command (for allmodconfig which I originally sent with failure): > > arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -Wno-unused-but- set-varia bl > e -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -fno-var-tracking -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/root/linux-next/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -W -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dcscb)" -D"KBUILD_MODNAME=KBUILD_STR(dcscb)" -c -o arch/arm/mach-vexpress/.tmp_dcscb.o arch/arm/mach-vexpress/dcscb.c > > > > >> Even so, if gcc 4.3.5 doesn't support cortex-a9 as a CPU type, and we >> want to support that gcc version, the setting of -mtune needs to be >> conditionalised. As it is only a scheduling hint, it's probably fine >> for it to end up being omitted. >> >> > > It sounds a good idea. > > Hello Tony: > > What about your idea for it ? > > > Thanks. > -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH] ARM: VExpress: Kconfig: avoid arm6 compatible for ARCH_VEXPRESS 2013-08-23 2:06 ` Chen Gang @ 2013-08-23 3:04 ` Chen Gang 2013-08-23 3:12 ` Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-23 3:04 UTC (permalink / raw) To: linux-arm-kernel ARCH_VEXPRESS isn't compatible with arm6 (not support "-march=armv6k"), so add dependency for it, or allmodconfig can not pass compiling. The related command: arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -Wno-unused-but-se t-variabl e -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -fno-var-tracking -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/root/linux-next/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -W -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dcscb)" -D"KBUILD_MODNAME=KBUILD_STR(dcscb)" -c -o arch/arm/mach-vexpress/.tmp_dcscb.o arch/arm/mach-vexpress/dcscb.c The related error: /tmp/ccOMIprI.s: Assembler messages: /tmp/ccOMIprI.s:507: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:513: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:514: Error: selected processor does not support ARM mode `dsb ' /tmp/ccOMIprI.s:584: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:590: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:591: Error: selected processor does not support ARM mode `dsb ' make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1 make: *** [arch/arm/mach-vexpress] Error 2 Signed-off-by: Chen Gang <gang.chen@asianux.com> --- arch/arm/mach-vexpress/Kconfig | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig index 3657954..945e2f9 100644 --- a/arch/arm/mach-vexpress/Kconfig +++ b/arch/arm/mach-vexpress/Kconfig @@ -1,5 +1,5 @@ config ARCH_VEXPRESS - bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 + bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 && !ARCH_MULTI_V6 && !CPU_V6 && !CPU_V6K select ARCH_REQUIRE_GPIOLIB select ARM_AMBA select ARM_GIC -- 1.7.7.6 ^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH] ARM: VExpress: Kconfig: avoid arm6 compatible for ARCH_VEXPRESS 2013-08-23 3:04 ` [PATCH] ARM: VExpress: Kconfig: avoid arm6 compatible for ARCH_VEXPRESS Chen Gang @ 2013-08-23 3:12 ` Chen Gang 2013-08-23 5:51 ` Tony Lindgren 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-23 3:12 UTC (permalink / raw) To: linux-arm-kernel On 08/23/2013 11:04 AM, Chen Gang wrote: > ARCH_VEXPRESS isn't compatible with arm6 (not support "-march=armv6k"), > so add dependency for it, or allmodconfig can not pass compiling. > > The related command: > > arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -Wno-unused-but- set-varia bl > e -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -fno-var-tracking -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/root/linux-next/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -W -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dcscb)" -D"KBUILD_MODNAME=KBUILD_STR(dcscb)" -c -o arch/arm/mach-vexpress/.tmp_dcscb.o arch/arm/mach-vexpress/dcscb.c > > The related error: > > /tmp/ccOMIprI.s: Assembler messages: > /tmp/ccOMIprI.s:507: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:513: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:514: Error: selected processor does not support ARM mode `dsb ' > /tmp/ccOMIprI.s:584: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:590: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:591: Error: selected processor does not support ARM mode `dsb ' > make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1 > make: *** [arch/arm/mach-vexpress] Error 2 > > > > Signed-off-by: Chen Gang <gang.chen@asianux.com> > --- > arch/arm/mach-vexpress/Kconfig | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig > index 3657954..945e2f9 100644 > --- a/arch/arm/mach-vexpress/Kconfig > +++ b/arch/arm/mach-vexpress/Kconfig > @@ -1,5 +1,5 @@ > config ARCH_VEXPRESS > - bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 > + bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 && !ARCH_MULTI_V6 && !CPU_V6 && !CPU_V6K > select ARCH_REQUIRE_GPIOLIB > select ARM_AMBA > select ARM_GIC > Oh, sorry, we do not need check ARCH_MULTI_V6, the new patch is in attachment. -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-fixing.patch Type: text/x-patch Size: 2927 bytes Desc: not available URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20130823/54cba7c7/attachment.bin> ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH] ARM: VExpress: Kconfig: avoid arm6 compatible for ARCH_VEXPRESS 2013-08-23 3:12 ` Chen Gang @ 2013-08-23 5:51 ` Tony Lindgren 2013-08-23 7:02 ` Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Tony Lindgren @ 2013-08-23 5:51 UTC (permalink / raw) To: linux-arm-kernel * Chen Gang <gang.chen@asianux.com> [130822 20:20]: > The related error: > > /tmp/ccOMIprI.s: Assembler messages: > /tmp/ccOMIprI.s:507: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:513: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:514: Error: selected processor does not support ARM mode `dsb ' > /tmp/ccOMIprI.s:584: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:590: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:591: Error: selected processor does not support ARM mode `dsb ' > make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1 > make: *** [arch/arm/mach-vexpress] Error 2 > > > Signed-off-by: Chen Gang <gang.chen@asianux.com> > --- > arch/arm/mach-vexpress/Kconfig | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig > index 3657954..9b176ce 100644 > --- a/arch/arm/mach-vexpress/Kconfig > +++ b/arch/arm/mach-vexpress/Kconfig > @@ -1,5 +1,5 @@ > config ARCH_VEXPRESS > - bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 > + bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 && !CPU_V6 && !CPU_V6K > select ARCH_REQUIRE_GPIOLIB > select ARM_AMBA > select ARM_GIC We do support v6 and v7 in the same kernel. So instead of limiting what to select in Kconfig, just specify the v7 flags in the Makefile for the vexpress .c file with the inline assembly. Look for the find command I posted earlier in this thread for examples of specifying flags for a single object in a makefile. Regards, Tony ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH] ARM: VExpress: Kconfig: avoid arm6 compatible for ARCH_VEXPRESS 2013-08-23 5:51 ` Tony Lindgren @ 2013-08-23 7:02 ` Chen Gang 2013-08-23 7:15 ` Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-23 7:02 UTC (permalink / raw) To: linux-arm-kernel On 08/23/2013 01:51 PM, Tony Lindgren wrote: > * Chen Gang <gang.chen@asianux.com> [130822 20:20]: >> The related error: >> >> /tmp/ccOMIprI.s: Assembler messages: >> /tmp/ccOMIprI.s:507: Error: selected processor does not support ARM mode `isb ' >> /tmp/ccOMIprI.s:513: Error: selected processor does not support ARM mode `isb ' >> /tmp/ccOMIprI.s:514: Error: selected processor does not support ARM mode `dsb ' >> /tmp/ccOMIprI.s:584: Error: selected processor does not support ARM mode `isb ' >> /tmp/ccOMIprI.s:590: Error: selected processor does not support ARM mode `isb ' >> /tmp/ccOMIprI.s:591: Error: selected processor does not support ARM mode `dsb ' >> make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1 >> make: *** [arch/arm/mach-vexpress] Error 2 >> >> >> Signed-off-by: Chen Gang <gang.chen@asianux.com> >> --- >> arch/arm/mach-vexpress/Kconfig | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig >> index 3657954..9b176ce 100644 >> --- a/arch/arm/mach-vexpress/Kconfig >> +++ b/arch/arm/mach-vexpress/Kconfig >> @@ -1,5 +1,5 @@ >> config ARCH_VEXPRESS >> - bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 >> + bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 && !CPU_V6 && !CPU_V6K >> select ARCH_REQUIRE_GPIOLIB >> select ARM_AMBA >> select ARM_GIC > > We do support v6 and v7 in the same kernel. So instead of limiting > what to select in Kconfig, just specify the v7 flags in the Makefile > for the vexpress .c file with the inline assembly. Look for the > find command I posted earlier in this thread for examples of specifying > flags for a single object in a makefile. > I guess what your meaning is like the diff below: --------------------------------diff begin------------------------------ diff --git a/arch/arm/mach-vexpress/Makefile b/arch/arm/mach-vexpress/Makefile index 36ea824..4ebfda4 100644 --- a/arch/arm/mach-vexpress/Makefile +++ b/arch/arm/mach-vexpress/Makefile @@ -2,7 +2,7 @@ # Makefile for the linux kernel. # ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \ - -I$(srctree)/arch/arm/plat-versatile/include + -I$(srctree)/arch/arm/plat-versatile/include -march=armv7-a obj-y := v2m.o obj-$(CONFIG_ARCH_VEXPRESS_CA9X4) += ct-ca9x4.o --------------------------------diff end-------------------------------- If my above guess is correct, it can pass compiling without related warnings, but it will be like below (CONFIG_CPU_32v6 is enabled in allmodconfig): "... -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j ... -march=armv7-a ..." Is '-march=armv7-a' conflict with '-D__LINUX_ARM_ARCH__=6' ? The related command is : arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -Wno-unused-but-se t-variabl e -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -fno-var-tracking -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/root/linux-next/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -march=armv7-a -W -D"KBUILD_STR(s)=#s" -D"KBUILD_BA Thanks. -- Chen Gang ^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH] ARM: VExpress: Kconfig: avoid arm6 compatible for ARCH_VEXPRESS 2013-08-23 7:02 ` Chen Gang @ 2013-08-23 7:15 ` Chen Gang 2013-08-23 8:02 ` [PATCH v2] ARM: VExpress: Makefile: add armv7 flags for inline assmembly code compiling Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-23 7:15 UTC (permalink / raw) To: linux-arm-kernel On 08/23/2013 03:02 PM, Chen Gang wrote: > On 08/23/2013 01:51 PM, Tony Lindgren wrote: >> * Chen Gang <gang.chen@asianux.com> [130822 20:20]: >>> The related error: >>> >>> /tmp/ccOMIprI.s: Assembler messages: >>> /tmp/ccOMIprI.s:507: Error: selected processor does not support ARM mode `isb ' >>> /tmp/ccOMIprI.s:513: Error: selected processor does not support ARM mode `isb ' >>> /tmp/ccOMIprI.s:514: Error: selected processor does not support ARM mode `dsb ' >>> /tmp/ccOMIprI.s:584: Error: selected processor does not support ARM mode `isb ' >>> /tmp/ccOMIprI.s:590: Error: selected processor does not support ARM mode `isb ' >>> /tmp/ccOMIprI.s:591: Error: selected processor does not support ARM mode `dsb ' >>> make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1 >>> make: *** [arch/arm/mach-vexpress] Error 2 >>> >>> >>> Signed-off-by: Chen Gang <gang.chen@asianux.com> >>> --- >>> arch/arm/mach-vexpress/Kconfig | 2 +- >>> 1 files changed, 1 insertions(+), 1 deletions(-) >>> >>> diff --git a/arch/arm/mach-vexpress/Kconfig b/arch/arm/mach-vexpress/Kconfig >>> index 3657954..9b176ce 100644 >>> --- a/arch/arm/mach-vexpress/Kconfig >>> +++ b/arch/arm/mach-vexpress/Kconfig >>> @@ -1,5 +1,5 @@ >>> config ARCH_VEXPRESS >>> - bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 >>> + bool "ARM Ltd. Versatile Express family" if ARCH_MULTI_V7 && !CPU_V6 && !CPU_V6K >>> select ARCH_REQUIRE_GPIOLIB >>> select ARM_AMBA >>> select ARM_GIC >> >> We do support v6 and v7 in the same kernel. So instead of limiting >> what to select in Kconfig, just specify the v7 flags in the Makefile >> for the vexpress .c file with the inline assembly. Look for the >> find command I posted earlier in this thread for examples of specifying >> flags for a single object in a makefile. >> > > I guess what your meaning is like the diff below: > > --------------------------------diff begin------------------------------ > > diff --git a/arch/arm/mach-vexpress/Makefile b/arch/arm/mach-vexpress/Makefile > index 36ea824..4ebfda4 100644 > --- a/arch/arm/mach-vexpress/Makefile > +++ b/arch/arm/mach-vexpress/Makefile > @@ -2,7 +2,7 @@ > # Makefile for the linux kernel. > # > ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \ > - -I$(srctree)/arch/arm/plat-versatile/include > + -I$(srctree)/arch/arm/plat-versatile/include -march=armv7-a > > obj-y := v2m.o > obj-$(CONFIG_ARCH_VEXPRESS_CA9X4) += ct-ca9x4.o > > --------------------------------diff end-------------------------------- > > If my above guess is correct, it can pass compiling without related > warnings, but it will be like below (CONFIG_CPU_32v6 is enabled in > allmodconfig): > > "... -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j ... -march=armv7-a ..." > > Is '-march=armv7-a' conflict with '-D__LINUX_ARM_ARCH__=6' ? > Oh, sorry. '-D__LINUX_ARM_ARCH__' is for C file, '-march' is for assembly file. for assembly file (or a C file has inline assemble code), need '-march=armv7-a' (just like you have already mentioned). I will send patch v2 for it. Thanks. > > The related command is : > > arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -Wno-unused-but- set-varia bl > e -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -fno-var-tracking -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/root/linux-next/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -march=armv7-a -W -D"KBUILD_STR(s)=#s" -D"KBUILD_BA > > > > Thanks. > -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2] ARM: VExpress: Makefile: add armv7 flags for inline assmembly code compiling 2013-08-23 7:15 ` Chen Gang @ 2013-08-23 8:02 ` Chen Gang 2013-08-23 8:12 ` Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-23 8:02 UTC (permalink / raw) To: linux-arm-kernel When vexpress kernel is compiled for v6, it still can support armv7 instructions (hardware still support), so need let compiler know about it for related inline assembly code, or compiling will fail. The related failure command: arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -Wno-unused-but-se t-variabl e -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -fno-var-tracking -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/root/linux-next/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -W -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dcscb)" -D"KBUILD_MODNAME=KBUILD_STR(dcscb)" -c -o arch/arm/mach-vexpress/.tmp_dcscb.o arch/arm/mach-vexpress/dcscb.c The related error: /tmp/ccOMIprI.s: Assembler messages: /tmp/ccOMIprI.s:507: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:513: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:514: Error: selected processor does not support ARM mode `dsb ' /tmp/ccOMIprI.s:584: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:590: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:591: Error: selected processor does not support ARM mode `dsb ' make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1 make: *** [arch/arm/mach-vexpress] Error 2 Signed-off-by: Chen Gang <gang.chen@asianux.com> --- arch/arm/mach-vexpress/Makefile | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-vexpress/Makefile b/arch/arm/mach-vexpress/Makefile index 36ea824..f224577 100644 --- a/arch/arm/mach-vexpress/Makefile +++ b/arch/arm/mach-vexpress/Makefile @@ -10,3 +10,6 @@ obj-$(CONFIG_ARCH_VEXPRESS_DCSCB) += dcscb.o dcscb_setup.o obj-$(CONFIG_ARCH_VEXPRESS_TC2_PM) += tc2_pm.o spc.o obj-$(CONFIG_SMP) += platsmp.o obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o + +CFLAGS_dcscb.o +=-march=armv7-a +CFLAGS_tc2_pm.o +=-march=armv7-a -- 1.7.7.6 ^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v2] ARM: VExpress: Makefile: add armv7 flags for inline assmembly code compiling 2013-08-23 8:02 ` [PATCH v2] ARM: VExpress: Makefile: add armv7 flags for inline assmembly code compiling Chen Gang @ 2013-08-23 8:12 ` Chen Gang 2013-09-23 1:50 ` [PATCH v3] " Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-23 8:12 UTC (permalink / raw) To: linux-arm-kernel On 08/23/2013 04:02 PM, Chen Gang wrote: > When vexpress kernel is compiled for v6, it still can support armv7 > instructions (hardware still support), so need let compiler know about > it for related inline assembly code, or compiling will fail. > Hmm... need change "compiled for v6, it still can" to "compiled for both v6 and v7, it of cause can". Thanks. > The related failure command: > > arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -Wno-unused-but- set-varia bl > e -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -fno-var-tracking -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/root/linux-next/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -W -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dcscb)" -D"KBUILD_MODNAME=KBUILD_STR(dcscb)" -c -o arch/arm/mach-vexpress/.tmp_dcscb.o arch/arm/mach-vexpress/dcscb.c > > The related error: > > /tmp/ccOMIprI.s: Assembler messages: > /tmp/ccOMIprI.s:507: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:513: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:514: Error: selected processor does not support ARM mode `dsb ' > /tmp/ccOMIprI.s:584: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:590: Error: selected processor does not support ARM mode `isb ' > /tmp/ccOMIprI.s:591: Error: selected processor does not support ARM mode `dsb ' > make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1 > make: *** [arch/arm/mach-vexpress] Error 2 > > > Signed-off-by: Chen Gang <gang.chen@asianux.com> > --- > arch/arm/mach-vexpress/Makefile | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/arch/arm/mach-vexpress/Makefile b/arch/arm/mach-vexpress/Makefile > index 36ea824..f224577 100644 > --- a/arch/arm/mach-vexpress/Makefile > +++ b/arch/arm/mach-vexpress/Makefile > @@ -10,3 +10,6 @@ obj-$(CONFIG_ARCH_VEXPRESS_DCSCB) += dcscb.o dcscb_setup.o > obj-$(CONFIG_ARCH_VEXPRESS_TC2_PM) += tc2_pm.o spc.o > obj-$(CONFIG_SMP) += platsmp.o > obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o > + > +CFLAGS_dcscb.o +=-march=armv7-a > +CFLAGS_tc2_pm.o +=-march=armv7-a > -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v3] ARM: VExpress: Makefile: add armv7 flags for inline assmembly code compiling 2013-08-23 8:12 ` Chen Gang @ 2013-09-23 1:50 ` Chen Gang 0 siblings, 0 replies; 27+ messages in thread From: Chen Gang @ 2013-09-23 1:50 UTC (permalink / raw) To: linux-arm-kernel When 'vexpress' kernel is compiled for both v6 and v7, it can support armv7 instructions in lower level modules, so need let compiler know about it for related inline assembly code, or can not pass compiling. The related failure command: arm-linux-gnueabi-gcc -Wp,-MD,arch/arm/mach-vexpress/.dcscb.o.d -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabi/4.7/include -I/root/linux-next/arch/arm/include -Iarch/arm/include/generated -Iinclude -I/root/linux-next/arch/arm/include/uapi -Iarch/arm/include/generated/uapi -I/root/linux-next/include/uapi -Iinclude/generated/uapi -include /root/linux-next/include/linux/kconfig.h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -Werror=implicit-int -Werror=strict-prototypes -Os -Wno-maybe-uninitialized -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mno-sched-prolog -fstack-protector -mabi=aapcs-linux -mno-thumb-interwork -funwind-tables -marm -D__LINUX_ARM_ARCH__=6 -march=armv6k -mtune=arm1136j-s -msoft-float -Uarm -fno-reorder-blocks -fno-ipa-cp-clone -fno-partial-inlining -Wframe-larger-than=1024 -Wno-unused-but-se t-variabl e -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -femit-struct-debug-baseonly -fno-var-tracking -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/root/linux-next/arch/arm/mach-vexpress/include -I/root/linux-next/arch/arm/plat-versatile/include -W -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(dcscb)" -D"KBUILD_MODNAME=KBUILD_STR(dcscb)" -c -o arch/arm/mach-vexpress/.tmp_dcscb.o arch/arm/mach-vexpress/dcscb.c The related error: /tmp/ccOMIprI.s: Assembler messages: /tmp/ccOMIprI.s:507: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:513: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:514: Error: selected processor does not support ARM mode `dsb ' /tmp/ccOMIprI.s:584: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:590: Error: selected processor does not support ARM mode `isb ' /tmp/ccOMIprI.s:591: Error: selected processor does not support ARM mode `dsb ' make[1]: *** [arch/arm/mach-vexpress/dcscb.o] Error 1 make: *** [arch/arm/mach-vexpress] Error 2 Signed-off-by: Chen Gang <gang.chen@asianux.com> --- arch/arm/mach-vexpress/Makefile | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-vexpress/Makefile b/arch/arm/mach-vexpress/Makefile index 36ea824..f224577 100644 --- a/arch/arm/mach-vexpress/Makefile +++ b/arch/arm/mach-vexpress/Makefile @@ -10,3 +10,6 @@ obj-$(CONFIG_ARCH_VEXPRESS_DCSCB) += dcscb.o dcscb_setup.o obj-$(CONFIG_ARCH_VEXPRESS_TC2_PM) += tc2_pm.o spc.o obj-$(CONFIG_SMP) += platsmp.o obj-$(CONFIG_HOTPLUG_CPU) += hotplug.o + +CFLAGS_dcscb.o +=-march=armv7-a +CFLAGS_tc2_pm.o +=-march=armv7-a -- 1.7.7.6 ^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH] ARM: OMAP2: add type cast from 'unsigned' to 'signed' 2013-08-21 8:26 [PATCH] ARM: OMAP2: add type cast from 'unsigned' to 'signed' Chen Gang 2013-08-21 8:31 ` [PATCH] ARM: OMAP2: remove useless variable 'ret' Chen Gang @ 2013-08-22 7:14 ` Tony Lindgren 2013-08-22 7:43 ` Chen Gang 1 sibling, 1 reply; 27+ messages in thread From: Tony Lindgren @ 2013-08-22 7:14 UTC (permalink / raw) To: linux-arm-kernel * Chen Gang <gang.chen@asianux.com> [130821 01:34]: > Need add type cast, or can not notice the failure. The related warning > (allmodconfig, "EXTRA_CFLAGS=-W"): > > arch/arm/mach-omap2/gpmc.c:728:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] > > > Signed-off-by: Chen Gang <gang.chen@asianux.com> > --- > arch/arm/mach-omap2/gpmc.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c > index f3fdd6a..62377b5 100644 > --- a/arch/arm/mach-omap2/gpmc.c > +++ b/arch/arm/mach-omap2/gpmc.c > @@ -725,7 +725,7 @@ static int gpmc_setup_irq(void) > return -EINVAL; > > gpmc_irq_start = irq_alloc_descs(-1, 0, GPMC_NR_IRQ, 0); > - if (gpmc_irq_start < 0) { > + if ((signed)gpmc_irq_start < 0) { > pr_err("irq_alloc_descs failed\n"); > return gpmc_irq_start; > } Hmm shouldn't we just have int gpmc_irq_start instead of unsigned gpmc_irq_start? Regards, Tony ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH] ARM: OMAP2: add type cast from 'unsigned' to 'signed' 2013-08-22 7:14 ` [PATCH] ARM: OMAP2: add type cast from 'unsigned' to 'signed' Tony Lindgren @ 2013-08-22 7:43 ` Chen Gang 2013-08-22 7:47 ` [PATCH v2] ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-22 7:43 UTC (permalink / raw) To: linux-arm-kernel On 08/22/2013 03:14 PM, Tony Lindgren wrote: > * Chen Gang <gang.chen@asianux.com> [130821 01:34]: >> Need add type cast, or can not notice the failure. The related warning >> (allmodconfig, "EXTRA_CFLAGS=-W"): >> >> arch/arm/mach-omap2/gpmc.c:728:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] >> >> >> Signed-off-by: Chen Gang <gang.chen@asianux.com> >> --- >> arch/arm/mach-omap2/gpmc.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c >> index f3fdd6a..62377b5 100644 >> --- a/arch/arm/mach-omap2/gpmc.c >> +++ b/arch/arm/mach-omap2/gpmc.c >> @@ -725,7 +725,7 @@ static int gpmc_setup_irq(void) >> return -EINVAL; >> >> gpmc_irq_start = irq_alloc_descs(-1, 0, GPMC_NR_IRQ, 0); >> - if (gpmc_irq_start < 0) { >> + if ((signed)gpmc_irq_start < 0) { >> pr_err("irq_alloc_descs failed\n"); >> return gpmc_irq_start; >> } > > Hmm shouldn't we just have int gpmc_irq_start instead > of unsigned gpmc_irq_start? > Oh, thanks, that sounds reasonable to me, I will send patch v2. > Regards, > > Tony > > Thanks. -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2] ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' 2013-08-22 7:43 ` Chen Gang @ 2013-08-22 7:47 ` Chen Gang 2013-08-22 7:57 ` Tony Lindgren 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-22 7:47 UTC (permalink / raw) To: linux-arm-kernel 'gpmc_irq_start' is mostly used as 'int', and for a variable, do not suggest to only use 'unsigned' as its type, so use 'int' instead of 'unsigned' for variable 'gpmc_irq_start'. Also it will fix the related issue (dummy the real world failure): arch/arm/mach-omap2/gpmc.c:728:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] Signed-off-by: Chen Gang <gang.chen@asianux.com> --- arch/arm/mach-omap2/gpmc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c index f3fdd6a..9f4795a 100644 --- a/arch/arm/mach-omap2/gpmc.c +++ b/arch/arm/mach-omap2/gpmc.c @@ -149,7 +149,7 @@ struct omap3_gpmc_regs { static struct gpmc_client_irq gpmc_client_irq[GPMC_NR_IRQ]; static struct irq_chip gpmc_irq_chip; -static unsigned gpmc_irq_start; +static int gpmc_irq_start; static struct resource gpmc_mem_root; static struct resource gpmc_cs_mem[GPMC_CS_NUM]; -- 1.7.7.6 ^ permalink raw reply related [flat|nested] 27+ messages in thread
* [PATCH v2] ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' 2013-08-22 7:47 ` [PATCH v2] ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' Chen Gang @ 2013-08-22 7:57 ` Tony Lindgren 2013-08-22 8:01 ` Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Tony Lindgren @ 2013-08-22 7:57 UTC (permalink / raw) To: linux-arm-kernel * Chen Gang <gang.chen@asianux.com> [130822 00:55]: > 'gpmc_irq_start' is mostly used as 'int', and for a variable, do not > suggest to only use 'unsigned' as its type, so use 'int' instead of > 'unsigned' for variable 'gpmc_irq_start'. > > Also it will fix the related issue (dummy the real world failure): > > arch/arm/mach-omap2/gpmc.c:728:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] > Thanks applying into omap-for-v3.12/fixes-non-critical. Tony > Signed-off-by: Chen Gang <gang.chen@asianux.com> > --- > arch/arm/mach-omap2/gpmc.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c > index f3fdd6a..9f4795a 100644 > --- a/arch/arm/mach-omap2/gpmc.c > +++ b/arch/arm/mach-omap2/gpmc.c > @@ -149,7 +149,7 @@ struct omap3_gpmc_regs { > > static struct gpmc_client_irq gpmc_client_irq[GPMC_NR_IRQ]; > static struct irq_chip gpmc_irq_chip; > -static unsigned gpmc_irq_start; > +static int gpmc_irq_start; > > static struct resource gpmc_mem_root; > static struct resource gpmc_cs_mem[GPMC_CS_NUM]; > -- > 1.7.7.6 ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2] ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' 2013-08-22 7:57 ` Tony Lindgren @ 2013-08-22 8:01 ` Chen Gang 2013-08-22 8:32 ` Tony Lindgren 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang @ 2013-08-22 8:01 UTC (permalink / raw) To: linux-arm-kernel On 08/22/2013 03:57 PM, Tony Lindgren wrote: > * Chen Gang <gang.chen@asianux.com> [130822 00:55]: >> 'gpmc_irq_start' is mostly used as 'int', and for a variable, do not >> suggest to only use 'unsigned' as its type, so use 'int' instead of >> 'unsigned' for variable 'gpmc_irq_start'. >> >> Also it will fix the related issue (dummy the real world failure): >> >> arch/arm/mach-omap2/gpmc.c:728:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] >> > > Thanks applying into omap-for-v3.12/fixes-non-critical. > Thank you too. Hmm... excuse me, I am not quite familiar with the omap version trees, so may have a doubt: "it seems this is a real bug, is it suitable to belong to fixes-none-critical tree ?" Thanks. > Tony > >> Signed-off-by: Chen Gang <gang.chen@asianux.com> >> --- >> arch/arm/mach-omap2/gpmc.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/arch/arm/mach-omap2/gpmc.c b/arch/arm/mach-omap2/gpmc.c >> index f3fdd6a..9f4795a 100644 >> --- a/arch/arm/mach-omap2/gpmc.c >> +++ b/arch/arm/mach-omap2/gpmc.c >> @@ -149,7 +149,7 @@ struct omap3_gpmc_regs { >> >> static struct gpmc_client_irq gpmc_client_irq[GPMC_NR_IRQ]; >> static struct irq_chip gpmc_irq_chip; >> -static unsigned gpmc_irq_start; >> +static int gpmc_irq_start; >> >> static struct resource gpmc_mem_root; >> static struct resource gpmc_cs_mem[GPMC_CS_NUM]; >> -- >> 1.7.7.6 > > -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2] ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' 2013-08-22 8:01 ` Chen Gang @ 2013-08-22 8:32 ` Tony Lindgren 2013-08-22 8:59 ` Chen Gang F T 0 siblings, 1 reply; 27+ messages in thread From: Tony Lindgren @ 2013-08-22 8:32 UTC (permalink / raw) To: linux-arm-kernel * Chen Gang <gang.chen@asianux.com> [130822 01:10]: > On 08/22/2013 03:57 PM, Tony Lindgren wrote: > > * Chen Gang <gang.chen@asianux.com> [130822 00:55]: > >> 'gpmc_irq_start' is mostly used as 'int', and for a variable, do not > >> suggest to only use 'unsigned' as its type, so use 'int' instead of > >> 'unsigned' for variable 'gpmc_irq_start'. > >> > >> Also it will fix the related issue (dummy the real world failure): > >> > >> arch/arm/mach-omap2/gpmc.c:728:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] > >> > > > > Thanks applying into omap-for-v3.12/fixes-non-critical. > > > > Thank you too. > > Hmm... excuse me, I am not quite familiar with the omap version trees, > so may have a doubt: "it seems this is a real bug, is it suitable to > belong to fixes-none-critical tree ?" For the -rc cycle we try to limit the patches to oopses and regressions, especially this close to v3.11 being tagged. It seems the bug has been there for quite some time, and that we don't seem to have oopses or other failures reporting this. So it seems there's no reason for urgency to have it merged into the current -rc series. If you (or somebody else) strongly feels that it should be in applied to the current -rc series as a fix instead of during the merge window, then please let me know the failing cases with logs showing what happens. Regards, Tony ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2] ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' 2013-08-22 8:32 ` Tony Lindgren @ 2013-08-22 8:59 ` Chen Gang F T 2013-08-23 5:48 ` Tony Lindgren 0 siblings, 1 reply; 27+ messages in thread From: Chen Gang F T @ 2013-08-22 8:59 UTC (permalink / raw) To: linux-arm-kernel On 08/22/2013 04:32 PM, Tony Lindgren wrote: > * Chen Gang <gang.chen@asianux.com> [130822 01:10]: >> On 08/22/2013 03:57 PM, Tony Lindgren wrote: >>> * Chen Gang <gang.chen@asianux.com> [130822 00:55]: >>>> 'gpmc_irq_start' is mostly used as 'int', and for a variable, do not >>>> suggest to only use 'unsigned' as its type, so use 'int' instead of >>>> 'unsigned' for variable 'gpmc_irq_start'. >>>> >>>> Also it will fix the related issue (dummy the real world failure): >>>> >>>> arch/arm/mach-omap2/gpmc.c:728:2: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] >>>> >>> >>> Thanks applying into omap-for-v3.12/fixes-non-critical. >>> >> >> Thank you too. >> >> Hmm... excuse me, I am not quite familiar with the omap version trees, >> so may have a doubt: "it seems this is a real bug, is it suitable to >> belong to fixes-none-critical tree ?" > > For the -rc cycle we try to limit the patches to oopses and regressions, > especially this close to v3.11 being tagged. > Really necessary. > It seems the bug has been there for quite some time, and that we don't > seem to have oopses or other failures reporting this. So it seems there's > no reason for urgency to have it merged into the current -rc series. > I guess so too (I only find it by compiling). > If you (or somebody else) strongly feels that it should be in applied > to the current -rc series as a fix instead of during the merge window, > then please let me know the failing cases with logs showing what > happens. > Hmm... for urgent bugs, the reporters really need supply the failing cases with logs showing what happens. Bugs can be sort of by urgent priority (e.g. this bug is not urgent). but for most of bugs may cause critical issue which depends on the using environments, and can be 'imagined' by us. Hmm... I guess: for our case, what your meaning is "fixes-none-urgent", not "fixes-none-critical", is it correct ? :-) Thanks. > Regards, > > Tony > -- > To unsubscribe from this list: send the line "unsubscribe linux-omap" in > the body of a message to majordomo at vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2] ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' 2013-08-22 8:59 ` Chen Gang F T @ 2013-08-23 5:48 ` Tony Lindgren 2013-08-23 6:14 ` Chen Gang 0 siblings, 1 reply; 27+ messages in thread From: Tony Lindgren @ 2013-08-23 5:48 UTC (permalink / raw) To: linux-arm-kernel * Chen Gang F T <chen.gang.flying.transformer@gmail.com> [130822 02:08]: > Hmm... I guess: for our case, what your meaning is "fixes-none-urgent", > not "fixes-none-critical", is it correct ? :-) Right, that naming might be actually better :) Tony ^ permalink raw reply [flat|nested] 27+ messages in thread
* [PATCH v2] ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' 2013-08-23 5:48 ` Tony Lindgren @ 2013-08-23 6:14 ` Chen Gang 0 siblings, 0 replies; 27+ messages in thread From: Chen Gang @ 2013-08-23 6:14 UTC (permalink / raw) To: linux-arm-kernel On 08/23/2013 01:48 PM, Tony Lindgren wrote: > * Chen Gang F T <chen.gang.flying.transformer@gmail.com> [130822 02:08]: >> Hmm... I guess: for our case, what your meaning is "fixes-none-urgent", >> not "fixes-none-critical", is it correct ? :-) > > Right, that naming might be actually better :) > > Tony > > Thanks ! -- Chen Gang ^ permalink raw reply [flat|nested] 27+ messages in thread
end of thread, other threads:[~2013-09-23 1:50 UTC | newest]
Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-21 8:26 [PATCH] ARM: OMAP2: add type cast from 'unsigned' to 'signed' Chen Gang
2013-08-21 8:31 ` [PATCH] ARM: OMAP2: remove useless variable 'ret' Chen Gang
2013-08-22 7:17 ` Tony Lindgren
2013-08-22 7:24 ` Chen Gang
[not found] ` <52147E12.4060401@asianux.com>
2013-08-22 7:45 ` [Suggestion] ARM: allmodconfig: about cross compiling failure under i386 ubuntu Tony Lindgren
2013-08-22 9:19 ` Chen Gang
2013-08-22 10:15 ` Chen Gang
2013-08-22 10:22 ` Russell King - ARM Linux
2013-08-23 1:47 ` Chen Gang
2013-08-23 2:06 ` Chen Gang
2013-08-23 3:04 ` [PATCH] ARM: VExpress: Kconfig: avoid arm6 compatible for ARCH_VEXPRESS Chen Gang
2013-08-23 3:12 ` Chen Gang
2013-08-23 5:51 ` Tony Lindgren
2013-08-23 7:02 ` Chen Gang
2013-08-23 7:15 ` Chen Gang
2013-08-23 8:02 ` [PATCH v2] ARM: VExpress: Makefile: add armv7 flags for inline assmembly code compiling Chen Gang
2013-08-23 8:12 ` Chen Gang
2013-09-23 1:50 ` [PATCH v3] " Chen Gang
2013-08-22 7:14 ` [PATCH] ARM: OMAP2: add type cast from 'unsigned' to 'signed' Tony Lindgren
2013-08-22 7:43 ` Chen Gang
2013-08-22 7:47 ` [PATCH v2] ARM: OMAP2: use 'int' instead of 'unsigned' for variable 'gpmc_irq_start' Chen Gang
2013-08-22 7:57 ` Tony Lindgren
2013-08-22 8:01 ` Chen Gang
2013-08-22 8:32 ` Tony Lindgren
2013-08-22 8:59 ` Chen Gang F T
2013-08-23 5:48 ` Tony Lindgren
2013-08-23 6:14 ` Chen Gang
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).