Final asm/system.h cleanups
Subsystems (11)
cover Final asm/system.h cleanups
Here are some patches to clean up the last bits of the asm/system.h disintegration. They comprise:
(*) Some doc changes.
(*) Some comment changes.
(*) Final removal of ARM's asm/system.h and fixing up all remaining
users thereof.
David
---
David Howells (4):
Clean asm/system.h from docs
Sparc: sparc_cpu_model isn't in asm/system.h any more
UM: arch_align_stack() moved to asm/exec.h
ARM: Delete asm/system.h
Documentation/DocBook/kernel-hacking.tmpl | 2 +- Documentation/irqflags-tracing.txt | 7 ------- Documentation/scheduler/sched-arch.txt | 2 +- arch/arm/include/asm/jump_label.h | 1 - arch/arm/include/asm/sync_bitops.h | 1 - arch/arm/include/asm/system.h | 7 ------- arch/arm/mach-gemini/idle.c | 2 +- arch/arm/mach-omap2/am35xx-emac.c | 1 - arch/um/kernel/process.c | 2 +- drivers/sbus/char/jsflash.c | 4 +--- drivers/usb/gadget/lpc32xx_udc.c | 1 - 11 files changed, 5 insertions(+), 25 deletions(-) delete mode 100644 arch/arm/include/asm/system.h
PATCH 1/4 Clean asm/system.h from docs
Clean asm/system.h from docs as nothing should refer to that header anymore.
---
Documentation/DocBook/kernel-hacking.tmpl | 2 +- Documentation/irqflags-tracing.txt | 7 ------- Documentation/scheduler/sched-arch.txt | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-)
Documentation/DocBook/kernel-hacking.tmpl +1 -1
@@ -671,7 +671,7 @@ printk(KERN_INFO "my ip: %pI4\n", &ipaddress); <sect1 id="routines-local-irqs"> <title><function>local_irq_save()</function>/<function>local_irq_restore()</function> - <filename class="headerfile">include/asm/system.h</filename> + <filename class="headerfile">include/linux/irqflags.h</filename> </title> <para>
Documentation/irqflags-tracing.txt +0 -7
@@ -22,13 +22,6 @@ rather straightforward and risk-free manner. Architectures that want to support this need to do a couple of code-organizational changes first: -- move their irq-flags manipulation code from their asm/system.h header - to asm/irqflags.h - -- rename local_irq_disable()/etc to raw_local_irq_disable()/etc. so that - the linux/irqflags.h code can inject callbacks and can construct the - real local_irq_disable()/etc APIs. - - add and enable TRACE_IRQFLAGS_SUPPORT in their arch level Kconfig file and then a couple of functional changes are needed as well to implement
Documentation/scheduler/sched-arch.txt +1 -1
@@ -8,7 +8,7 @@ Context switch By default, the switch_to arch function is called with the runqueue locked. This is usually not a problem unless switch_to may need to take the runqueue lock. This is usually due to a wake up operation in -the context switch. See arch/ia64/include/asm/system.h for an example. +the context switch. See arch/ia64/include/asm/switch_to.h for an example. To request the scheduler call switch_to with the runqueue unlocked, you must `#define __ARCH_WANT_UNLOCKED_CTXSW` in a header file
PATCH 2/4 Sparc: sparc_cpu_model isn't in asm/system.h any more
In reply to David Howellssparc_cpu_model isn't in asm/system.h any more, so remove a comment about it.
---
drivers/sbus/char/jsflash.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/sbus/char/jsflash.c +1 -3
@@ -507,11 +507,9 @@ static int jsflash_init(void) }/* Let us be really paranoid for modifications to probing code. */ -/* extern enum sparc_cpu sparc_cpu_model; */ /* in <asm/system.h> */ -if (sparc_cpu_model != sun4m) { +if (sparc_cpu_model != sun4m)/* We must be on sun4m because we use MMU Bypass ASI. */ return -ENXIO ; - }if (jsf0.base ==0 ) { jsf = &jsf0;
PATCH 3/4 UM: arch_align_stack() moved to asm/exec.h
In reply to David Howellsarch_align_stack() moved to asm/exec.h, so change the comment referring to asm/system.h which no longer exists.
---
arch/um/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/um/kernel/process.c +1 -1
@@ -359,7 +359,7 @@ int singlestepping(void * t)/* * Only x86 and x86_64 have an arch_align_stack(). * All other arches have "#define arch_align_stack(x) (x)" -* in their asm/system.h +* in their asm/exec.h * As this is included in UML from asm-um/system-generic.h, * we can use it to behave as the subarch does. */
PATCH 4/4 ARM: Delete asm/system.h
In reply to David HowellsDelete ARM's asm/system.h. It's the last holdout and should be got rid of.
This builds for defconfig, lpc32xx_defconfig, exynos_defconfig + XEN, the previous changed to a Gemini system and an omap3 config with TI_DAVINCI_EMAC.
---
arch/arm/include/asm/jump_label.h | 1 - arch/arm/include/asm/sync_bitops.h | 1 - arch/arm/include/asm/system.h | 7 ------- arch/arm/mach-gemini/idle.c | 2 +- arch/arm/mach-omap2/am35xx-emac.c | 1 - drivers/usb/gadget/lpc32xx_udc.c | 1 - 6 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 arch/arm/include/asm/system.h
arch/arm/include/asm/jump_label.h +0 -1
@@ -4,7 +4,6 @@#ifdef __KERNEL__#include <linux/types.h> -#include <asm/system.h> #define JUMP_LABEL_NOP_SIZE 4
arch/arm/include/asm/sync_bitops.h +0 -1
@@ -2,7 +2,6 @@#define __ASM_SYNC_BITOPS_H__#include <asm/bitops.h> -#include <asm/system.h> /* sync_bitops functions are equivalent to the SMP implementation of the * original functions, independently from CONFIG_SMP being defined.
arch/arm/include/asm/system.h deleted +0 -7
@@ -1,7 +0,0 @@ -/* FILE TO BE DELETED. DO NOT ADD STUFF HERE! */ -#include <asm/barrier.h> -#include <asm/compiler.h> -#include <asm/cmpxchg.h> -#include <asm/switch_to.h> -#include <asm/system_info.h> -#include <asm/system_misc.h>
arch/arm/mach-gemini/idle.c +1 -1
@@ -3,7 +3,7 @@*/ #include <linux/init.h> -#include <asm/system.h> +#include <asm/system_misc.h> #include <asm/proc-fns.h> static void gemini_idle (void )
arch/arm/mach-omap2/am35xx-emac.c +0 -1
@@ -17,7 +17,6 @@#include <linux/err.h> #include <linux/davinci_emac.h> -#include <asm/system.h> #include "omap_device.h" #include "am35xx.h" #include "control.h"
drivers/usb/gadget/lpc32xx_udc.c +0 -1
@@ -55,7 +55,6 @@#include <mach/hardware.h> #include <linux/io.h> #include <asm/irq.h> -#include <asm/system.h> #include <mach/platform.h> #include <mach/irqs.h>
Re: [PATCH 4/4] ARM: Delete asm/system.h
Quoted 8 lines · On Wednesday 12 February 2014 15:46:15 David Howells wrote:
Delete ARM's
asm/system.h. It's the last holdout and should be got rid of.This builds for defconfig,
lpc32xx_defconfig,exynos_defconfig+ XEN, the previous changed to a Gemini system and an omap3 config withTI_DAVINCI_EMAC.Signed-off-by David Howells <[email protected]>cc Russell King <[email protected]>cc linux-arm-kernel at lists.infradead.org
I've added this to my randconfig builder, will let you know when unexpected bugs show up (probably won't).
Arnd
David Miller
maintainerRe: [PATCH 2/4] Sparc: sparc_cpu_model isn't in asm/system.h any more
In reply to David HowellsFrom: David Howells <[email protected]>
Date: Wed, 12 Feb 2014 15:45:59 +0000
Quoted 3 lines
sparc_cpu_modelisn't inasm/system.hany more, so remove a comment about it.Signed-off-by David Howells <[email protected]>
That's not all your patch does:
drivers/sbus/char/jsflash.c static int jsflash_init(void) · line 514
Quoted 6 lines
drivers/sbus/char/jsflash.c +1
-3-/* extern enum sparc_cpu sparc_cpu_model; */ /* in <asm/system.h> */ -if (sparc_cpu_model != sun4m) { +if (sparc_cpu_model != sun4m)/* We must be on sun4m because we use MMU Bypass ASI. */ return -ENXIO ; - }
The basic block is more than one line, therefore the braces are appropriate. Please do not remove them, and especially do not remove them without mentioning them in the commit message.
Thanks.
PATCH 2/4 Sparc: sparc_cpu_model isn't in asm/system.h any more [ver #2]
In reply to David Howellssparc_cpu_model isn't in asm/system.h any more, so remove a comment about it.
---
drivers/sbus/char/jsflash.c | 1 - 1 file changed, 1 deletion(-)
drivers/sbus/char/jsflash.c +0 -1
@@ -507,7 +507,6 @@ static int jsflash_init(void) }/* Let us be really paranoid for modifications to probing code. */ -/* extern enum sparc_cpu sparc_cpu_model; */ /* in <asm/system.h> */ if (sparc_cpu_model != sun4m) {/* We must be on sun4m because we use MMU Bypass ASI. */ return -ENXIO ;
Re: [PATCH 2/4] Sparc: sparc_cpu_model isn't in asm/system.h any more [ver #2]
From: David Howells <[email protected]>
Date: Thu, 20 Feb 2014 16:08:12 +0000
Quoted 3 lines
sparc_cpu_modelisn't inasm/system.hany more, so remove a comment about it.Signed-off-by David Howells <[email protected]>
Applied, thanks David.