Skip to contentSkip to conversation

ARM: shmobile: Disable /sbin/hotplug fork-bomb in defconfigs

PATCH New Geert Uytterhoeven 2 participants 13 messages Jan 3, 2014 – Jan 7, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ARM: shmobile: Disable /sbin/hotplug fork-bomb in defconfigs

From: Geert Uytterhoeven <[email protected]>

Cfr. commit 7934779a69f1184f29d786b89e77dd14519bd226 ("Driver-Core: disable /sbin/hotplug by default").

---
 arch/arm/configs/ape6evm_defconfig         |    1 -
 arch/arm/configs/armadillo800eva_defconfig |    1 -
 arch/arm/configs/bockw_defconfig           |    1 -
 arch/arm/configs/genmai_defconfig          |    1 -
 arch/arm/configs/koelsch_defconfig         |    1 -
 arch/arm/configs/kzm9d_defconfig           |    1 -
 arch/arm/configs/kzm9g_defconfig           |    1 -
 arch/arm/configs/lager_defconfig           |    1 -
 arch/arm/configs/mackerel_defconfig        |    1 -
 arch/arm/configs/marzen_defconfig          |    1 -
 10 files changed, 10 deletions(-)
arch/arm/configs/ape6evm_defconfig +0 -1
index cb26c62dc722..c13f560f07db 100644
@@ -47,7 +47,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_LRO is not set
 # CONFIG_IPV6_SIT is not set
 CONFIG_NETFILTER=y
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 # CONFIG_FW_LOADER_USER_HELPER is not set
 CONFIG_NETDEVICES=y
 # CONFIG_NET_CADENCE is not set
arch/arm/configs/armadillo800eva_defconfig +0 -1
index 9287a62de830..1edc2ce32063 100644
@@ -57,7 +57,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_DIAG is not set
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_MD=y
arch/arm/configs/bockw_defconfig +0 -1
index 80cff50beb34..564eab338f02 100644
@@ -43,7 +43,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_LRO is not set
 # CONFIG_INET_DIAG is not set
 # CONFIG_IPV6 is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 # CONFIG_STANDALONE is not set
 # CONFIG_PREVENT_FIRMWARE_BUILD is not set
 # CONFIG_FW_LOADER is not set
arch/arm/configs/genmai_defconfig +0 -1
index aa0b704f48af..5fa44cb6e915 100644
@@ -49,7 +49,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_DIAG is not set
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_NETDEVICES=y
 # CONFIG_NET_CORE is not set
 # CONFIG_NET_VENDOR_ARC is not set
arch/arm/configs/koelsch_defconfig +0 -1
index e248f49d5549..c8ebeb1f0497 100644
@@ -35,7 +35,6 @@ CONFIG_UNIX=y
 CONFIG_INET=y
 CONFIG_IP_PNP=y
 CONFIG_IP_PNP_DHCP=y
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_NETDEVICES=y
 # CONFIG_NET_VENDOR_ARC is not set
 # CONFIG_NET_CADENCE is not set
arch/arm/configs/kzm9d_defconfig +0 -1
index e42ce3756af3..3ee3858939d9 100644
@@ -49,7 +49,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_DIAG is not set
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 # CONFIG_BLK_DEV is not set
 CONFIG_NETDEVICES=y
 # CONFIG_NET_VENDOR_BROADCOM is not set
arch/arm/configs/kzm9g_defconfig +0 -1
index 9934dbc23d64..800faff9df1d 100644
@@ -59,7 +59,6 @@ CONFIG_IP_PNP_DHCP=y
 CONFIG_IRDA=y
 CONFIG_SH_IRDA=y
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_NETDEVICES=y
arch/arm/configs/lager_defconfig +0 -1
index 883443f8f4f3..da8fa5e8719b 100644
@@ -48,7 +48,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_DIAG is not set
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_NETDEVICES=y
 # CONFIG_NET_CORE is not set
 # CONFIG_NET_VENDOR_ARC is not set
arch/arm/configs/mackerel_defconfig +0 -1
index a61e1653fc5e..9d406022d72b 100644
@@ -41,7 +41,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_XFRM_MODE_BEET is not set
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 # CONFIG_FIRMWARE_IN_KERNEL is not set
 CONFIG_MTD=y
 CONFIG_MTD_CONCAT=y
arch/arm/configs/marzen_defconfig +0 -1
index f21bd405cc2a..fe3d8f7c0a2c 100644
@@ -42,7 +42,6 @@ CONFIG_IP_PNP=y
 CONFIG_IP_PNP_DHCP=y
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 # CONFIG_STANDALONE is not set
 # CONFIG_PREVENT_FIRMWARE_BUILD is not set
 # CONFIG_FW_LOADER is not set
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 2/4 ARM: shmobile: Set CONFIG_LOCALVERSION in defconfigs

From: Geert Uytterhoeven <[email protected]>

This allows to derive the kernel flavor from the kernel version.

---
 arch/arm/configs/ape6evm_defconfig         |    1 +
 arch/arm/configs/armadillo800eva_defconfig |    1 +
 arch/arm/configs/bockw_defconfig           |    1 +
 arch/arm/configs/genmai_defconfig          |    1 +
 arch/arm/configs/koelsch_defconfig         |    1 +
 arch/arm/configs/kzm9d_defconfig           |    1 +
 arch/arm/configs/kzm9g_defconfig           |    1 +
 arch/arm/configs/lager_defconfig           |    1 +
 arch/arm/configs/mackerel_defconfig        |    1 +
 arch/arm/configs/marzen_defconfig          |    1 +
 10 files changed, 10 insertions(+)
arch/arm/configs/ape6evm_defconfig +1 -0
index c13f560f07db..554611c82d04 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-ape6evm"
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
 CONFIG_NO_HZ=y
arch/arm/configs/armadillo800eva_defconfig +1 -0
index 1edc2ce32063..2e8212d4c51e 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-armadillo800eva"
 CONFIG_EXPERIMENTAL=y
 CONFIG_SYSVIPC=y
 CONFIG_IKCONFIG=y
arch/arm/configs/bockw_defconfig +1 -0
index 564eab338f02..0f583fecfc69 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-bockw"
 # CONFIG_ARM_PATCH_PHYS_VIRT is not set
 CONFIG_KERNEL_LZMA=y
 CONFIG_NO_HZ=y
arch/arm/configs/genmai_defconfig +1 -0
index 5fa44cb6e915..ede35f400df2 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-genmai"
 CONFIG_SYSVIPC=y
 CONFIG_NO_HZ=y
 CONFIG_IKCONFIG=y
arch/arm/configs/koelsch_defconfig +1 -0
index c8ebeb1f0497..f795ea42a8fc 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-koelsch"
 CONFIG_SYSVIPC=y
 CONFIG_NO_HZ=y
 CONFIG_IKCONFIG=y
arch/arm/configs/kzm9d_defconfig +1 -0
index 3ee3858939d9..2d1b9b3740dd 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-kzm9d"
 # CONFIG_ARM_PATCH_PHYS_VIRT is not set
 CONFIG_EXPERIMENTAL=y
 CONFIG_SYSVIPC=y
arch/arm/configs/kzm9g_defconfig +1 -0
index 800faff9df1d..26a3303bcdf7 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-kzm9g"
 # CONFIG_ARM_PATCH_PHYS_VIRT is not set
 CONFIG_EXPERIMENTAL=y
 # CONFIG_LOCALVERSION_AUTO is not set
arch/arm/configs/lager_defconfig +1 -0
index da8fa5e8719b..18b9dd96250a 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-lager"
 CONFIG_SYSVIPC=y
 CONFIG_NO_HZ=y
 CONFIG_IKCONFIG=y
arch/arm/configs/mackerel_defconfig +1 -0
index 9d406022d72b..f303b8c5b7d2 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-mackerel"
 CONFIG_EXPERIMENTAL=y
 CONFIG_SYSVIPC=y
 CONFIG_IKCONFIG=y
arch/arm/configs/marzen_defconfig +1 -0
index fe3d8f7c0a2c..b89105b12ae6 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-marzen"
 # CONFIG_ARM_PATCH_PHYS_VIRT is not set
 CONFIG_EXPERIMENTAL=y
 CONFIG_KERNEL_LZMA=y
Signature · 1 line
1.7.9.5
#6 lore raw

PATCH 3/4 ARM: shmobile: Remove duplicate shmobile_invalidate_start() declaration

In reply to Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

---
 arch/arm/mach-shmobile/include/mach/common.h |    1 -
 1 file changed, 1 deletion(-)
arch/arm/mach-shmobile/include/mach/common.h +0 -1
index e31980590eb4..cb8e32deb2a3 100644
@@ -25,7 +25,6 @@ extern int shmobile_smp_apmu_boot_secondary(unsigned int cpu,
 					    struct task_struct *idle);
 extern void shmobile_smp_apmu_cpu_die(unsigned int cpu);
 extern int shmobile_smp_apmu_cpu_kill(unsigned int cpu);
-extern void shmobile_invalidate_start(void);
 struct clk;
 extern int shmobile_clk_init(void);
 extern void shmobile_handle_irq_intc(struct pt_regs *);
Signature · 1 line
1.7.9.5
#8 lore raw

PATCH 4/4 ARM: shmobile: lager: Make spi_flash_data const

In reply to Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

---
 arch/arm/mach-shmobile/board-lager.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-shmobile/board-lager.c +1 -1
index f20c10a18543..40ace7195f84 100644
@@ -263,7 +263,7 @@ static struct mtd_partition spi_flash_part[] = {
 	},
 };
 
-static struct flash_platform_data spi_flash_data = {
+static const struct flash_platform_data spi_flash_data = {
 	.name           = "m25p80",
 	.parts          = spi_flash_part,
 	.nr_parts       = ARRAY_SIZE(spi_flash_part),
Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/4 ARM: shmobile: Set CONFIG_LOCALVERSION in defconfigs

In reply to Geert Uytterhoeven
Quoted 3 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

This allows to derive the kernel flavor from the kernel version.

Is this a common practice for ARM?

I'm a little hesitant to take this if its not. Particularly as we are planing to deprecate these defconfigs in favour of a shared multiplatform defconfig.

Quoted 113 lines
---
 arch/arm/configs/ape6evm_defconfig         |    1 +
 arch/arm/configs/armadillo800eva_defconfig |    1 +
 arch/arm/configs/bockw_defconfig           |    1 +
 arch/arm/configs/genmai_defconfig          |    1 +
 arch/arm/configs/koelsch_defconfig         |    1 +
 arch/arm/configs/kzm9d_defconfig           |    1 +
 arch/arm/configs/kzm9g_defconfig           |    1 +
 arch/arm/configs/lager_defconfig           |    1 +
 arch/arm/configs/mackerel_defconfig        |    1 +
 arch/arm/configs/marzen_defconfig          |    1 +
 10 files changed, 10 insertions(+)
arch/arm/configs/ape6evm_defconfig +1 -0
index c13f560f07db..554611c82d04 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-ape6evm"
 CONFIG_SYSVIPC=y
 CONFIG_POSIX_MQUEUE=y
 CONFIG_NO_HZ=y
arch/arm/configs/armadillo800eva_defconfig +1 -0
index 1edc2ce32063..2e8212d4c51e 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-armadillo800eva"
 CONFIG_EXPERIMENTAL=y
 CONFIG_SYSVIPC=y
 CONFIG_IKCONFIG=y
arch/arm/configs/bockw_defconfig +1 -0
index 564eab338f02..0f583fecfc69 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-bockw"
 # CONFIG_ARM_PATCH_PHYS_VIRT is not set
 CONFIG_KERNEL_LZMA=y
 CONFIG_NO_HZ=y
arch/arm/configs/genmai_defconfig +1 -0
index 5fa44cb6e915..ede35f400df2 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-genmai"
 CONFIG_SYSVIPC=y
 CONFIG_NO_HZ=y
 CONFIG_IKCONFIG=y
arch/arm/configs/koelsch_defconfig +1 -0
index c8ebeb1f0497..f795ea42a8fc 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-koelsch"
 CONFIG_SYSVIPC=y
 CONFIG_NO_HZ=y
 CONFIG_IKCONFIG=y
arch/arm/configs/kzm9d_defconfig +1 -0
index 3ee3858939d9..2d1b9b3740dd 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-kzm9d"
 # CONFIG_ARM_PATCH_PHYS_VIRT is not set
 CONFIG_EXPERIMENTAL=y
 CONFIG_SYSVIPC=y
arch/arm/configs/kzm9g_defconfig +1 -0
index 800faff9df1d..26a3303bcdf7 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-kzm9g"
 # CONFIG_ARM_PATCH_PHYS_VIRT is not set
 CONFIG_EXPERIMENTAL=y
 # CONFIG_LOCALVERSION_AUTO is not set
arch/arm/configs/lager_defconfig +1 -0
index da8fa5e8719b..18b9dd96250a 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-lager"
 CONFIG_SYSVIPC=y
 CONFIG_NO_HZ=y
 CONFIG_IKCONFIG=y
arch/arm/configs/mackerel_defconfig +1 -0
index 9d406022d72b..f303b8c5b7d2 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-mackerel"
 CONFIG_EXPERIMENTAL=y
 CONFIG_SYSVIPC=y
 CONFIG_IKCONFIG=y
arch/arm/configs/marzen_defconfig +1 -0
index fe3d8f7c0a2c..b89105b12ae6 100644
@@ -1,3 +1,4 @@
+CONFIG_LOCALVERSION="-marzen"
 # CONFIG_ARM_PATCH_PHYS_VIRT is not set
 CONFIG_EXPERIMENTAL=y
 CONFIG_KERNEL_LZMA=y
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#9 lore raw

PATCH 4/4 ARM: shmobile: lager: Make spi_flash_data const

In reply to Geert Uytterhoeven
Quoted 12 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

---
 arch/arm/mach-shmobile/board-lager.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-shmobile/board-lager.c +0 -0
index f20c10a18543..40ace7195f84 100644

arch/arm/mach-shmobile/board-lager.c static struct mtd_partition spi_flash_part[] = { · line 269

Quoted 8 lines
arch/arm/mach-shmobile/board-lager.c +1 -1
@@ -263,7 +263,7 @@ static struct mtd_partition spi_flash_part[] = {
 	},
 };
 
-static struct flash_platform_data spi_flash_data = {
+static const struct flash_platform_data spi_flash_data = {
 	.name           = "m25p80",
 	.parts          = spi_flash_part,
 	.nr_parts       = ARRAY_SIZE(spi_flash_part),

Should spi_flash_part also be const?

And should flash_platform_data and spi_flash_part be annotated as __initconst?

#12 lore raw

PATCH 1/4 ARM: shmobile: Disable /sbin/hotplug fork-bomb in defconfigs

In reply to Geert Uytterhoeven
Quoted 4 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

Cfr. commit 7934779a69f1184f29d786b89e77dd14519bd226 ("Driver-Core: disable /sbin/hotplug by default").

Could you please flesh out this changelog a bit, perhaps by including the body of the changelog of 7934779a69f1184f29d786b89e77dd14519bd226.

Quoted 143 lines
---
 arch/arm/configs/ape6evm_defconfig         |    1 -
 arch/arm/configs/armadillo800eva_defconfig |    1 -
 arch/arm/configs/bockw_defconfig           |    1 -
 arch/arm/configs/genmai_defconfig          |    1 -
 arch/arm/configs/koelsch_defconfig         |    1 -
 arch/arm/configs/kzm9d_defconfig           |    1 -
 arch/arm/configs/kzm9g_defconfig           |    1 -
 arch/arm/configs/lager_defconfig           |    1 -
 arch/arm/configs/mackerel_defconfig        |    1 -
 arch/arm/configs/marzen_defconfig          |    1 -
 10 files changed, 10 deletions(-)
arch/arm/configs/ape6evm_defconfig +0 -1
index cb26c62dc722..c13f560f07db 100644
@@ -47,7 +47,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_LRO is not set
 # CONFIG_IPV6_SIT is not set
 CONFIG_NETFILTER=y
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 # CONFIG_FW_LOADER_USER_HELPER is not set
 CONFIG_NETDEVICES=y
 # CONFIG_NET_CADENCE is not set
arch/arm/configs/armadillo800eva_defconfig +0 -1
index 9287a62de830..1edc2ce32063 100644
@@ -57,7 +57,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_DIAG is not set
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_MD=y
arch/arm/configs/bockw_defconfig +0 -1
index 80cff50beb34..564eab338f02 100644
@@ -43,7 +43,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_LRO is not set
 # CONFIG_INET_DIAG is not set
 # CONFIG_IPV6 is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 # CONFIG_STANDALONE is not set
 # CONFIG_PREVENT_FIRMWARE_BUILD is not set
 # CONFIG_FW_LOADER is not set
arch/arm/configs/genmai_defconfig +0 -1
index aa0b704f48af..5fa44cb6e915 100644
@@ -49,7 +49,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_DIAG is not set
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_NETDEVICES=y
 # CONFIG_NET_CORE is not set
 # CONFIG_NET_VENDOR_ARC is not set
arch/arm/configs/koelsch_defconfig +0 -1
index e248f49d5549..c8ebeb1f0497 100644
@@ -35,7 +35,6 @@ CONFIG_UNIX=y
 CONFIG_INET=y
 CONFIG_IP_PNP=y
 CONFIG_IP_PNP_DHCP=y
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_NETDEVICES=y
 # CONFIG_NET_VENDOR_ARC is not set
 # CONFIG_NET_CADENCE is not set
arch/arm/configs/kzm9d_defconfig +0 -1
index e42ce3756af3..3ee3858939d9 100644
@@ -49,7 +49,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_DIAG is not set
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 # CONFIG_BLK_DEV is not set
 CONFIG_NETDEVICES=y
 # CONFIG_NET_VENDOR_BROADCOM is not set
arch/arm/configs/kzm9g_defconfig +0 -1
index 9934dbc23d64..800faff9df1d 100644
@@ -59,7 +59,6 @@ CONFIG_IP_PNP_DHCP=y
 CONFIG_IRDA=y
 CONFIG_SH_IRDA=y
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_NETDEVICES=y
arch/arm/configs/lager_defconfig +0 -1
index 883443f8f4f3..da8fa5e8719b 100644
@@ -48,7 +48,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_DIAG is not set
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_NETDEVICES=y
 # CONFIG_NET_CORE is not set
 # CONFIG_NET_VENDOR_ARC is not set
arch/arm/configs/mackerel_defconfig +0 -1
index a61e1653fc5e..9d406022d72b 100644
@@ -41,7 +41,6 @@ CONFIG_IP_PNP_DHCP=y
 # CONFIG_INET_XFRM_MODE_BEET is not set
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 # CONFIG_FIRMWARE_IN_KERNEL is not set
 CONFIG_MTD=y
 CONFIG_MTD_CONCAT=y
arch/arm/configs/marzen_defconfig +0 -1
index f21bd405cc2a..fe3d8f7c0a2c 100644
@@ -42,7 +42,6 @@ CONFIG_IP_PNP=y
 CONFIG_IP_PNP_DHCP=y
 # CONFIG_IPV6 is not set
 # CONFIG_WIRELESS is not set
-CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 # CONFIG_STANDALONE is not set
 # CONFIG_PREVENT_FIRMWARE_BUILD is not set
 # CONFIG_FW_LOADER is not set
Signature · 6 lines
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-sh" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#10 lore raw

PATCH 4/4 ARM: shmobile: lager: Make spi_flash_data const

In reply to Simon Horman
Quoted 7 lines · Simon Horman

arch/arm/mach-shmobile/board-lager.c static struct mtd_partition spi_flash_part[] = { · line 269

Quoted 5 lines
arch/arm/mach-shmobile/board-lager.c +1 -1
-static struct flash_platform_data spi_flash_data = {
+static const struct flash_platform_data spi_flash_data = {
      .name           = "m25p80",
      .parts          = spi_flash_part,
      .nr_parts       = ARRAY_SIZE(spi_flash_part),

Should spi_flash_part also be const?

No, .parts is a non-const pointer (but perhaps it can be made const, but that may be more invasive, and have side-effects).

Quoted 2 lines

And should flash_platform_data and spi_flash_part be annotated as __initconst?

AFAIU, those are not copied.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#3 lore raw

PATCH 2/4 ARM: shmobile: Set CONFIG_LOCALVERSION in defconfigs

In reply to Simon Horman
Quoted 6 lines · Simon Horman
Quoted 3 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

This allows to derive the kernel flavor from the kernel version.

Is this a common practice for ARM?

Not really, only 5 ARM deconfigs do that.
Globally, ca. 10% of the Linux defconfigs do it.

Quoted 3 lines

I'm a little hesitant to take this if its not. Particularly as we are planing to deprecate these defconfigs in favour of a shared multiplatform defconfig.

A shared multiplatform defconfig can still have CONFIG_LOCALVERSION="-shmobile", so you'll know it's a multiplatform kernel when you see the dmesg.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert at linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds

#4 lore raw

PATCH 2/4 ARM: shmobile: Set CONFIG_LOCALVERSION in defconfigs

Quoted 11 lines · Geert Uytterhoeven
Quoted 6 lines · Simon Horman
Quoted 3 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

This allows to derive the kernel flavor from the kernel version.

Is this a common practice for ARM?

Not really, only 5 ARM deconfigs do that.
Globally, ca. 10% of the Linux defconfigs do it.

Quoted 7 lines
Quoted 3 lines

I'm a little hesitant to take this if its not. Particularly as we are planing to deprecate these defconfigs in favour of a shared multiplatform defconfig.

A shared multiplatform defconfig can still have CONFIG_LOCALVERSION="-shmobile", so you'll know it's a multiplatform kernel when you see the dmesg.

Not if it is shared more widely :^)

#5 lore raw

PATCH 2/4 ARM: shmobile: Set CONFIG_LOCALVERSION in defconfigs

Quoted 16 lines · Simon Horman
Quoted 15 lines · Geert Uytterhoeven
Quoted 6 lines · Simon Horman
Quoted 3 lines · Geert Uytterhoeven

From: Geert Uytterhoeven <[email protected]>

This allows to derive the kernel flavor from the kernel version.

Is this a common practice for ARM?

Not really, only 5 ARM deconfigs do that.
Globally, ca. 10% of the Linux defconfigs do it.

Quoted 3 lines

I'm a little hesitant to take this if its not. Particularly as we are planing to deprecate these defconfigs in favour of a shared multiplatform defconfig.

Quoted 5 lines
Quoted 3 lines

A shared multiplatform defconfig can still have CONFIG_LOCALVERSION="-shmobile", so you'll know it's a multiplatform kernel when you see the dmesg.

Not if it is shared more widely :^)

I'm not really sold on this patch as I don't truly understand its motivation and I am reluctant to move towards an uncommon practice for ARM. I am not planning to take this patch at this time.

#11 lore raw

PATCH 4/4 ARM: shmobile: lager: Make spi_flash_data const

In reply to Geert Uytterhoeven
Quoted 9 lines · Geert Uytterhoeven
Quoted 7 lines · Simon Horman

arch/arm/mach-shmobile/board-lager.c static struct mtd_partition spi_flash_part[] = { · line 269

Quoted 5 lines
arch/arm/mach-shmobile/board-lager.c +1 -1
-static struct flash_platform_data spi_flash_data = {
+static const struct flash_platform_data spi_flash_data = {
      .name           = "m25p80",
      .parts          = spi_flash_part,
      .nr_parts       = ARRAY_SIZE(spi_flash_part),

Should spi_flash_part also be const?

Quoted 7 lines

No, .parts is a non-const pointer (but perhaps it can be made const, but that may be more invasive, and have side-effects).

Quoted 2 lines

And should flash_platform_data and spi_flash_part be annotated as __initconst?

AFAIU, those are not copied.

Thanks, I will queue up this patch as is.