next build: 304 warnings 0 failures (next/next-20141013)
Subsystems (5)
Quoted 1 line · Olof's autobuilder
1
arch/arm/mach-cns3xxx/pcie.c:313:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]
This should be fixed.
Quoted 4 lines
1
arch/arm/mach-omap1/board-htcherald.c:296:2: warning: initialization makes pointer from integer without a cast [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:296:2: warning: (near initialization for 'gpio_leds[0].gpiod') [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:297:2: warning: initialization makes pointer from integer without a cast [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:297:2: warning: (near initialization for 'gpio_leds[1].gpiod') [enabled by default]
...
All of these need fixing.
Quoted 2 lines
2
drivers/base/dma-contiguous.c:244:2: warning: initialization from incompatible pointer type 2drivers/base/dma-contiguous.c:244:2: warning: (near initialization for 'rmem_cma_ops.device_init')
This does too.
Quoted 6 lines
3
drivers/base/dma-coherent.c:303:2: warning: initialization from incompatible pointer type
3drivers/base/dma-coherent.c:303:2: warning: (near initialization for 'rmem_dma_ops.device_init')
8drivers/base/dma-contiguous.c:244:2: warning: initialization from incompatible pointer type [enabled by default] 8drivers/base/dma-contiguous.c:244:2: warning: (near initialization for 'rmem_cma_ops.device_init') [enabled by default]
50drivers/base/dma-coherent.c:303:2: warning: initialization from incompatible pointer type [enabled by default] 50drivers/base/dma-coherent.c:303:2: warning: (near initialization for 'rmem_dma_ops.device_init') [enabled by default]
And these.
None of these warnings should hit mainline; they should all be fixed now, before any of the changes which caused them are merged.
Signature · 2 lines
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up according to speedtest.net.
Quoted 4 lines · On Monday 13 October 2014 09:46:18 Russell King - ARM Linux wrote:
Quoted 1 line · Olof's autobuilder
1
arch/arm/mach-cns3xxx/pcie.c:313:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]This should be fixed.
This is an ancient bug, both Mark Brown and I have suggested fixes, we just need to apply one of them.
Quoted 7 lines
Quoted 4 lines
1
arch/arm/mach-omap1/board-htcherald.c:296:2: warning: initialization makes pointer from integer without a cast [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:296:2: warning: (near initialization for 'gpio_leds[0].gpiod') [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:297:2: warning: initialization makes pointer from integer without a cast [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:297:2: warning: (near initialization for 'gpio_leds[1].gpiod') [enabled by default]...
All of these need fixing.
Hadn't seen this one before, I guess it's because of
https://lkml.org/lkml/2014/9/16/222.
adding Mika and Linus to Cc, should be easy to fix using named initializers like all other 120+ platforms do, but to be on the safe side, we could also move the new 'gpiod' member to the end of 'struct gpio_led'.
Quoted 13 lines
Quoted 3 lines
2
drivers/base/dma-contiguous.c:244:2: warning: initialization from incompatible pointer type 2drivers/base/dma-contiguous.c:244:2: warning: (near initialization for 'rmem_cma_ops.device_init')This does too.
Quoted 6 lines
3
drivers/base/dma-coherent.c:303:2: warning: initialization from incompatible pointer type
3drivers/base/dma-coherent.c:303:2: warning: (near initialization for 'rmem_dma_ops.device_init')
8drivers/base/dma-contiguous.c:244:2: warning: initialization from incompatible pointer type [enabled by default] 8drivers/base/dma-contiguous.c:244:2: warning: (near initialization for 'rmem_cma_ops.device_init') [enabled by default]
50drivers/base/dma-coherent.c:303:2: warning: initialization from incompatible pointer type [enabled by default] 50drivers/base/dma-coherent.c:303:2: warning: (near initialization for 'rmem_dma_ops.device_init') [enabled by default]
Quoted 4 lines
And these.
None of these warnings should hit mainline; they should all be fixed now, before any of the changes which caused them are merged.
Adding Marek as well. No idea how this slipped in, apparently the device_init callback declaration has always used 'void' as the return type, while all functions assigned to it have always returned 'int' and the caller in __reserved_mem_init_node() actually evaluates the return code.
This seems to be the obvious fix:
include/linux/of_reserved_mem.h +1 -1
@@ -16,7 +16,7 @@ struct reserved_mem { };struct reserved_mem_ops { -void (*device_init)(struct reserved_mem *rmem, +int (*device_init)(struct reserved_mem *rmem,struct device *dev);void (*device_release)(struct reserved_mem *rmem,struct device *dev);
Arnd
Hello,
Quoted 32 lines · Arnd Bergmann
Quoted 3 lines · On Monday 13 October 2014 09:46:18 Russell King - ARM Linux wrote:
Quoted 1 line · Olof's autobuilder
1
arch/arm/mach-cns3xxx/pcie.c:313:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]This should be fixed.
This is an ancient bug, both Mark Brown and I have suggested fixes, we just need to apply one of them.
Quoted 7 lines
Quoted 4 lines
1
arch/arm/mach-omap1/board-htcherald.c:296:2: warning: initialization makes pointer from integer without a cast [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:296:2: warning: (near initialization for 'gpio_leds[0].gpiod') [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:297:2: warning: initialization makes pointer from integer without a cast [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:297:2: warning: (near initialization for 'gpio_leds[1].gpiod') [enabled by default]...
All of these need fixing.
Hadn't seen this one before, I guess it's because of
https://lkml.org/lkml/2014/9/16/222.adding Mika and Linus to Cc, should be easy to fix using named initializers like all other 120+ platforms do, but to be on the safe side, we could also move the new 'gpiod' member to the end of 'struct
gpio_led'.Quoted 10 lines
Quoted 2 lines
2
drivers/base/dma-contiguous.c:244:2: warning: initialization from incompatible pointer type 2drivers/base/dma-contiguous.c:244:2: warning: (near initialization for 'rmem_cma_ops.device_init')This does too.
Quoted 6 lines
3
drivers/base/dma-coherent.c:303:2: warning: initialization from incompatible pointer type
3drivers/base/dma-coherent.c:303:2: warning: (near initialization for 'rmem_dma_ops.device_init')
8drivers/base/dma-contiguous.c:244:2: warning: initialization from incompatible pointer type [enabled by default] 8drivers/base/dma-contiguous.c:244:2: warning: (near initialization for 'rmem_cma_ops.device_init') [enabled by default]
50drivers/base/dma-coherent.c:303:2: warning: initialization from incompatible pointer type [enabled by default] 50drivers/base/dma-coherent.c:303:2: warning: (near initialization for 'rmem_dma_ops.device_init') [enabled by default]
Quoted 8 lines
Quoted 4 lines
And these.
None of these warnings should hit mainline; they should all be fixed now, before any of the changes which caused them are merged.
Adding Marek as well. No idea how this slipped in, apparently the
device_initcallback declaration has always used 'void' as the return type, while all functions assigned to it have always returned 'int' and the caller in__reserved_mem_init_node()actually evaluates the return code.
Patches adding of_reservedmem support for dma-contiguous and dma-coherent were posted together
with a patch adding a return value. However, for some reasons the latter was dropped. My fault
that I've posted that patch in a hurry and missed adding return value check in some places.
I've posted a fix and I hope it can get merged as a 'fix':
https://lkml.org/lkml/2014/10/9/178
Quoted 17 lines
This seems to be the obvious fix:
include/linux/of_reserved_mem.h +1
-1@@ -16,7 +16,7 @@ struct reserved_mem { };struct reserved_mem_ops { -void (*device_init)(struct reserved_mem *rmem, +int (*device_init)(struct reserved_mem *rmem,struct device *dev);void (*device_release)(struct reserved_mem *rmem,struct device *dev);
Quoted 2 lines
Arnd
Best regards
Signature · 2 lines
Marek Szyprowski, PhD Samsung R&D Institute Poland
Quoted 17 lines · Arnd Bergmann
Quoted 4 lines · On Monday 13 October 2014 09:46:18 Russell King - ARM Linux wrote:
Quoted 1 line · Olof's autobuilder
1
arch/arm/mach-cns3xxx/pcie.c:313:1: warning: the frame size of 1072 bytes is larger than 1024 bytes [-Wframe-larger-than=]This should be fixed.
This is an ancient bug, both Mark Brown and I have suggested fixes, we just need to apply one of them.
Quoted 7 lines
Quoted 4 lines
1
arch/arm/mach-omap1/board-htcherald.c:296:2: warning: initialization makes pointer from integer without a cast [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:296:2: warning: (near initialization for 'gpio_leds[0].gpiod') [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:297:2: warning: initialization makes pointer from integer without a cast [enabled by default] 1arch/arm/mach-omap1/board-htcherald.c:297:2: warning: (near initialization for 'gpio_leds[1].gpiod') [enabled by default]...
All of these need fixing.
Quoted 7 lines
Hadn't seen this one before, I guess it's because of
https://lkml.org/lkml/2014/9/16/222.adding Mika and Linus to Cc, should be easy to fix using named initializers like all other 120+ platforms do, but to be on the safe side, we could also move the new 'gpiod' member to the end of 'struct
gpio_led'.
(+Rafael)
Fenghua's build bot noticed this some time ago and it got fixed but looks like we forgot to merge the fix to the _DSD patch series.
Here it is again. Rafael, do you want to take this on top of the 'device-properties' -branch?
From: Mika Westerberg <[email protected]>
Subject: [PATCH] leds: Move gpiod to be last member of struct gpio_led
Commit 8b0d4dc3d44 (leds: leds-gpio: Add support for GPIO descriptors) added a new member 'gpiod' to struct gpio_led to support GPIO descriptors. This is fine as long as board files use designated initializers but some fail to do so causing following build errors:
arch/arm/mach-omap1/board-htcherald.c:296:2: warning: initialization makes pointer from integer without a cast [enabled by default] arch/arm/mach-omap1/board-htcherald.c:296:2: warning: (near initialization for 'gpio_leds[0].gpiod') [enabled by default] arch/arm/mach-omap1/board-htcherald.c:297:2: warning: initialization makes pointer from integer without a cast [enabled by default] arch/arm/mach-omap1/board-htcherald.c:297:2: warning: (near initialization for 'gpio_leds[1].gpiod') [enabled by default]
To be on the safe side move the 'gpiod' member to be the last member of struct gpiod_led.
--- include/linux/leds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/leds.h +1 -1
@@ -256,12 +256,12 @@ struct led_platform_data {struct gpio_led {const char *name;const char *default_trigger; -struct gpio_desc *gpiod;unsigned gpio;unsigned active_low :1 ;unsigned retain_state_suspended :1 ;unsigned default_state :2 ;/* default_state should be one of LEDS_GPIO_DEFSTATE_(ON|OFF|KEEP) */ +struct gpio_desc *gpiod; };#define LEDS_GPIO_DEFSTATE_OFF 0#define LEDS_GPIO_DEFSTATE_ON 1
Signature · 1 line
2.1.1
Quoted 20 lines · On Tuesday 14 October 2014 11:54:32 Mika Westerberg wrote:
Fenghua's build bot noticed this some time ago and it got fixed but looks like we forgot to merge the fix to the
_DSDpatch series.Here it is again. Rafael, do you want to take this on top of the 'device-properties' -branch?
From: Mika Westerberg <[email protected]>
Subject: [PATCH] leds: Move gpiod to be last member of structgpio_ledCommit
8b0d4dc3d44(leds: leds-gpio: Add support for GPIO descriptors) added a new member 'gpiod' to structgpio_ledto support GPIO descriptors. This is fine as long as board files use designated initializers but some fail to do so causing following build errors:
arch/arm/mach-omap1/board-htcherald.c:296:2: warning: initialization makes pointer from integer without a cast [enabled by default]arch/arm/mach-omap1/board-htcherald.c:296:2: warning: (near initialization for 'gpio_leds[0].gpiod') [enabled by default]arch/arm/mach-omap1/board-htcherald.c:297:2: warning: initialization makes pointer from integer without a cast [enabled by default]arch/arm/mach-omap1/board-htcherald.c:297:2: warning: (near initialization for 'gpio_leds[1].gpiod') [enabled by default]
Quoted 5 lines
To be on the safe side move the 'gpiod' member to be the last member of struct
gpiod_led.Signed-off-by Mika Westerberg <[email protected]>
Looks good to me. Should we also do the other patch to be on the safe side? 8<-------
Subject: [PATCH] ARM: OMAP1: htcherald: use named initializers for gpio-leds
A recent change to the gpio-leds driver broke the platform data definition in the htcherald file:
arch/arm/mach-omap1/board-htcherald.c:296:2: warning: initialization makes pointer from integer without a cast [enabled by default]
The gpio-led driver is being changed to avoid that problem, but it would also be good to make the board file use named initializers like every other one, so it won't happen again.
arch/arm/mach-omap1/board-htcherald.c +12 -11
@@ -293,17 +293,18 @@ static struct platform_device herald_gpiokeys_device = {/* LEDs for the Herald. These connect to the HTCPLD GPIO device. */ static struct gpio_led gpio_leds[] = { - {"dpad" ,NULL ,HTCPLD_GPIO_LED_DPAD ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, - {"kbd" ,NULL ,HTCPLD_GPIO_LED_KBD ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, - {"vibrate" ,NULL ,HTCPLD_GPIO_LED_VIBRATE ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, - {"green_solid" ,NULL ,HTCPLD_GPIO_LED_GREEN_SOLID ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, - {"green_flash" ,NULL ,HTCPLD_GPIO_LED_GREEN_FLASH ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, - {"red_solid" ,"mmc0" ,HTCPLD_GPIO_LED_RED_SOLID ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, - {"red_flash" ,NULL ,HTCPLD_GPIO_LED_RED_FLASH ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, - {"wifi" ,NULL ,HTCPLD_GPIO_LED_WIFI ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, - {"bt" ,NULL ,HTCPLD_GPIO_LED_BT ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, - {"caps" ,NULL ,HTCPLD_GPIO_LED_CAPS ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, - {"alt" ,NULL ,HTCPLD_GPIO_LED_ALT ,0 ,0 ,LEDS_GPIO_DEFSTATE_OFF }, + { .name ="dpad" , .gpio =HTCPLD_GPIO_LED_DPAD , }, + { .name ="kbd" , .gpio =HTCPLD_GPIO_LED_KBD , }, + { .name ="vibrate" , .gpio =HTCPLD_GPIO_LED_VIBRATE , }, + { .name ="green_solid" , .gpio =HTCPLD_GPIO_LED_GREEN_SOLID , }, + { .name ="green_flash" , .gpio =HTCPLD_GPIO_LED_GREEN_FLASH , }, + { .name ="red_solid" , .default_trigger ="mmc0" , + .gpio =HTCPLD_GPIO_LED_RED_SOLID , }, + { .name ="red_flash" , .gpio =HTCPLD_GPIO_LED_RED_FLASH , }, + { .name ="wifi" , .gpio =HTCPLD_GPIO_LED_WIFI , }, + { .name ="bt" , .gpio =HTCPLD_GPIO_LED_BT , }, + { .name ="caps" , .gpio =HTCPLD_GPIO_LED_CAPS , }, + { .name ="alt" , .gpio =HTCPLD_GPIO_LED_ALT , }, };static struct gpio_led_platform_data gpio_leds_data = {
Mika Westerberg
Reviewed-byQuoted 24 lines · Arnd Bergmann
Quoted 23 lines · On Tuesday 14 October 2014 11:54:32 Mika Westerberg wrote:
Fenghua's build bot noticed this some time ago and it got fixed but looks like we forgot to merge the fix to the
_DSDpatch series.Here it is again. Rafael, do you want to take this on top of the 'device-properties' -branch?
From: Mika Westerberg <[email protected]>
Subject: [PATCH] leds: Move gpiod to be last member of structgpio_ledCommit
8b0d4dc3d44(leds: leds-gpio: Add support for GPIO descriptors) added a new member 'gpiod' to structgpio_ledto support GPIO descriptors. This is fine as long as board files use designated initializers but some fail to do so causing following build errors:
arch/arm/mach-omap1/board-htcherald.c:296:2: warning: initialization makes pointer from integer without a cast [enabled by default]arch/arm/mach-omap1/board-htcherald.c:296:2: warning: (near initialization for 'gpio_leds[0].gpiod') [enabled by default]arch/arm/mach-omap1/board-htcherald.c:297:2: warning: initialization makes pointer from integer without a cast [enabled by default]arch/arm/mach-omap1/board-htcherald.c:297:2: warning: (near initialization for 'gpio_leds[1].gpiod') [enabled by default]To be on the safe side move the 'gpiod' member to be the last member of struct
gpiod_led.
Quoted 6 lines
Quoted 2 lines
Signed-off-by Mika Westerberg <[email protected]>Acked-by Arnd Bergmann <[email protected]>Looks good to me. Should we also do the other patch to be on the safe side?
I think it is good idea.
Quoted 6 lines
8<-------
Subject: [PATCH] ARM: OMAP1: htcherald: use named initializers for gpio-ledsA recent change to the gpio-leds driver broke the platform data definition in the htcherald file:
Quoted 7 lines
arch/arm/mach-omap1/board-htcherald.c:296:2: warning: initialization makes pointer from integer without a cast [enabled by default]The gpio-led driver is being changed to avoid that problem, but it would also be good to make the board file use named initializers like every other one, so it won't happen again.
Signed-off-by Arnd Bergmann <[email protected]>
FWIW,