All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h
@ 2014-09-30  1:35 ` Brian Norris
  0 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Linux Kernel, Brian Norris, Russell King, Jason Cooper,
	Florian Fainelli, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth, Heiko Stuebner, linux-rockchip,
	Nicolas Pitre, Marc Carino

There are several places where an explicit include of <asm/cp15.h> is needed
just because cacheflush.h uses one of its macros in v7_exit_coherency_flush().
Let's put the include in the proper header.

These obviously have some dependencies, so I'd focus on:
  (1) Is patch 1 acceptable? If so, then:
  (2) Make sure patch 1 is serialized before the rest

I did a cursory scan of every file that includes cp15.h, and these are the only
ones I found that only needed it for the sake of v7_exit_coherency_flush().

These are barely compile tested.

Thanks,
Brian

Brian Norris (5):
  ARM: include missing cp15.h header
  ARM: mvebu: drop unnecessary include
  ARM: rockchip: drop unnecessary include
  ARM: vexpress: drop unnecessary include
  ARM: brcmstb: drop unnecessary include

 arch/arm/include/asm/cacheflush.h   | 1 +
 arch/arm/mach-bcm/platsmp-brcmstb.c | 1 -
 arch/arm/mach-mvebu/pmsu.c          | 1 -
 arch/arm/mach-rockchip/platsmp.c    | 1 -
 arch/arm/mach-vexpress/dcscb.c      | 1 -
 arch/arm/mach-vexpress/tc2_pm.c     | 1 -
 6 files changed, 1 insertion(+), 5 deletions(-)

-- 
1.9.1


^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h
@ 2014-09-30  1:35 ` Brian Norris
  0 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel

There are several places where an explicit include of <asm/cp15.h> is needed
just because cacheflush.h uses one of its macros in v7_exit_coherency_flush().
Let's put the include in the proper header.

These obviously have some dependencies, so I'd focus on:
  (1) Is patch 1 acceptable? If so, then:
  (2) Make sure patch 1 is serialized before the rest

I did a cursory scan of every file that includes cp15.h, and these are the only
ones I found that only needed it for the sake of v7_exit_coherency_flush().

These are barely compile tested.

Thanks,
Brian

Brian Norris (5):
  ARM: include missing cp15.h header
  ARM: mvebu: drop unnecessary include
  ARM: rockchip: drop unnecessary include
  ARM: vexpress: drop unnecessary include
  ARM: brcmstb: drop unnecessary include

 arch/arm/include/asm/cacheflush.h   | 1 +
 arch/arm/mach-bcm/platsmp-brcmstb.c | 1 -
 arch/arm/mach-mvebu/pmsu.c          | 1 -
 arch/arm/mach-rockchip/platsmp.c    | 1 -
 arch/arm/mach-vexpress/dcscb.c      | 1 -
 arch/arm/mach-vexpress/tc2_pm.c     | 1 -
 6 files changed, 1 insertion(+), 5 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 1/5] ARM: include missing cp15.h header
  2014-09-30  1:35 ` Brian Norris
@ 2014-09-30  1:35   ` Brian Norris
  -1 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Linux Kernel, Brian Norris, Russell King

As of this commit:

  commit 39792c7cf3111d69dc4aa0923859d8b929e9039f
  ARM: 7861/1: cacheflush: consolidate single-CPU ARMv7 cache disabling code

cacheflush.h now utilizes the CR_C macro from cp15.h. Let's include it.

This also means several users of v7_exit_coherency_flush() no longer
have to include cp15.h directly when they don't directly use any #defines
from it.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---
 arch/arm/include/asm/cacheflush.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h
index 79ecb4f34ffb..866e229d3129 100644
--- a/arch/arm/include/asm/cacheflush.h
+++ b/arch/arm/include/asm/cacheflush.h
@@ -16,6 +16,7 @@
 #include <asm/shmparam.h>
 #include <asm/cachetype.h>
 #include <asm/outercache.h>
+#include <asm/cp15.h>
 
 #define CACHE_COLOUR(vaddr)	((vaddr & (SHMLBA - 1)) >> PAGE_SHIFT)
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 1/5] ARM: include missing cp15.h header
@ 2014-09-30  1:35   ` Brian Norris
  0 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel

As of this commit:

  commit 39792c7cf3111d69dc4aa0923859d8b929e9039f
  ARM: 7861/1: cacheflush: consolidate single-CPU ARMv7 cache disabling code

cacheflush.h now utilizes the CR_C macro from cp15.h. Let's include it.

This also means several users of v7_exit_coherency_flush() no longer
have to include cp15.h directly when they don't directly use any #defines
from it.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
---
 arch/arm/include/asm/cacheflush.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/include/asm/cacheflush.h b/arch/arm/include/asm/cacheflush.h
index 79ecb4f34ffb..866e229d3129 100644
--- a/arch/arm/include/asm/cacheflush.h
+++ b/arch/arm/include/asm/cacheflush.h
@@ -16,6 +16,7 @@
 #include <asm/shmparam.h>
 #include <asm/cachetype.h>
 #include <asm/outercache.h>
+#include <asm/cp15.h>
 
 #define CACHE_COLOUR(vaddr)	((vaddr & (SHMLBA - 1)) >> PAGE_SHIFT)
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 2/5] ARM: mvebu: drop unnecessary include
  2014-09-30  1:35 ` Brian Norris
@ 2014-09-30  1:35   ` Brian Norris
  -1 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Linux Kernel, Brian Norris, Russell King, Jason Cooper,
	Andrew Lunn, Gregory Clement, Sebastian Hesselbarth

<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@free-electrons.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
---
 arch/arm/mach-mvebu/pmsu.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c
index 8a70a51533fd..2d283cbc5cc7 100644
--- a/arch/arm/mach-mvebu/pmsu.c
+++ b/arch/arm/mach-mvebu/pmsu.c
@@ -33,7 +33,6 @@
 #include <linux/slab.h>
 #include <linux/smp.h>
 #include <asm/cacheflush.h>
-#include <asm/cp15.h>
 #include <asm/smp_scu.h>
 #include <asm/smp_plat.h>
 #include <asm/suspend.h>
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 2/5] ARM: mvebu: drop unnecessary include
@ 2014-09-30  1:35   ` Brian Norris
  0 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel

<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Jason Cooper <jason@lakedaemon.net>
Cc: Andrew Lunn <andrew@lunn.ch>
Cc: Gregory Clement <gregory.clement@free-electrons.com>
Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
---
 arch/arm/mach-mvebu/pmsu.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c
index 8a70a51533fd..2d283cbc5cc7 100644
--- a/arch/arm/mach-mvebu/pmsu.c
+++ b/arch/arm/mach-mvebu/pmsu.c
@@ -33,7 +33,6 @@
 #include <linux/slab.h>
 #include <linux/smp.h>
 #include <asm/cacheflush.h>
-#include <asm/cp15.h>
 #include <asm/smp_scu.h>
 #include <asm/smp_plat.h>
 #include <asm/suspend.h>
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 3/5] ARM: rockchip: drop unnecessary include
  2014-09-30  1:35 ` Brian Norris
@ 2014-09-30  1:35   ` Brian Norris
  -1 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Linux Kernel, Brian Norris, Russell King, Heiko Stuebner, linux-rockchip

<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
---
 arch/arm/mach-rockchip/platsmp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index 189684f55927..9b72e84e6494 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -21,7 +21,6 @@
 #include <linux/of_address.h>
 
 #include <asm/cacheflush.h>
-#include <asm/cp15.h>
 #include <asm/smp_scu.h>
 #include <asm/smp_plat.h>
 #include <asm/mach/map.h>
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 3/5] ARM: rockchip: drop unnecessary include
@ 2014-09-30  1:35   ` Brian Norris
  0 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel

<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Heiko Stuebner <heiko@sntech.de>
Cc: linux-rockchip at lists.infradead.org
---
 arch/arm/mach-rockchip/platsmp.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/mach-rockchip/platsmp.c b/arch/arm/mach-rockchip/platsmp.c
index 189684f55927..9b72e84e6494 100644
--- a/arch/arm/mach-rockchip/platsmp.c
+++ b/arch/arm/mach-rockchip/platsmp.c
@@ -21,7 +21,6 @@
 #include <linux/of_address.h>
 
 #include <asm/cacheflush.h>
-#include <asm/cp15.h>
 #include <asm/smp_scu.h>
 #include <asm/smp_plat.h>
 #include <asm/mach/map.h>
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 4/5] ARM: vexpress: drop unnecessary include
  2014-09-30  1:35 ` Brian Norris
@ 2014-09-30  1:35   ` Brian Norris
  -1 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel; +Cc: Linux Kernel, Brian Norris, Russell King, Nicolas Pitre

<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/mach-vexpress/dcscb.c  | 1 -
 arch/arm/mach-vexpress/tc2_pm.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/arch/arm/mach-vexpress/dcscb.c b/arch/arm/mach-vexpress/dcscb.c
index 30b993399ed7..28b0a33c91e1 100644
--- a/arch/arm/mach-vexpress/dcscb.c
+++ b/arch/arm/mach-vexpress/dcscb.c
@@ -22,7 +22,6 @@
 #include <asm/proc-fns.h>
 #include <asm/cacheflush.h>
 #include <asm/cputype.h>
-#include <asm/cp15.h>
 
 
 #define RST_HOLD0	0x0
diff --git a/arch/arm/mach-vexpress/tc2_pm.c b/arch/arm/mach-vexpress/tc2_pm.c
index 2fb78b4648cb..bc596f7d0d85 100644
--- a/arch/arm/mach-vexpress/tc2_pm.c
+++ b/arch/arm/mach-vexpress/tc2_pm.c
@@ -26,7 +26,6 @@
 #include <asm/proc-fns.h>
 #include <asm/cacheflush.h>
 #include <asm/cputype.h>
-#include <asm/cp15.h>
 
 #include <linux/arm-cci.h>
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 4/5] ARM: vexpress: drop unnecessary include
@ 2014-09-30  1:35   ` Brian Norris
  0 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel

<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Nicolas Pitre <nicolas.pitre@linaro.org>
---
 arch/arm/mach-vexpress/dcscb.c  | 1 -
 arch/arm/mach-vexpress/tc2_pm.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/arch/arm/mach-vexpress/dcscb.c b/arch/arm/mach-vexpress/dcscb.c
index 30b993399ed7..28b0a33c91e1 100644
--- a/arch/arm/mach-vexpress/dcscb.c
+++ b/arch/arm/mach-vexpress/dcscb.c
@@ -22,7 +22,6 @@
 #include <asm/proc-fns.h>
 #include <asm/cacheflush.h>
 #include <asm/cputype.h>
-#include <asm/cp15.h>
 
 
 #define RST_HOLD0	0x0
diff --git a/arch/arm/mach-vexpress/tc2_pm.c b/arch/arm/mach-vexpress/tc2_pm.c
index 2fb78b4648cb..bc596f7d0d85 100644
--- a/arch/arm/mach-vexpress/tc2_pm.c
+++ b/arch/arm/mach-vexpress/tc2_pm.c
@@ -26,7 +26,6 @@
 #include <asm/proc-fns.h>
 #include <asm/cacheflush.h>
 #include <asm/cputype.h>
-#include <asm/cp15.h>
 
 #include <linux/arm-cci.h>
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 5/5] ARM: brcmstb: drop unnecessary include
  2014-09-30  1:35 ` Brian Norris
@ 2014-09-30  1:35   ` Brian Norris
  -1 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Linux Kernel, Brian Norris, Russell King, Florian Fainelli, Marc Carino

<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Marc Carino <marc.ceeeee@gmail.com>
---
This is based on code queued for 3.18

 arch/arm/mach-bcm/platsmp-brcmstb.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/mach-bcm/platsmp-brcmstb.c b/arch/arm/mach-bcm/platsmp-brcmstb.c
index 31c87a284a34..3911ca7a0c3c 100644
--- a/arch/arm/mach-bcm/platsmp-brcmstb.c
+++ b/arch/arm/mach-bcm/platsmp-brcmstb.c
@@ -25,7 +25,6 @@
 #include <linux/mfd/syscon.h>
 
 #include <asm/cacheflush.h>
-#include <asm/cp15.h>
 #include <asm/mach-types.h>
 #include <asm/smp_plat.h>
 
-- 
1.9.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

* [PATCH 5/5] ARM: brcmstb: drop unnecessary include
@ 2014-09-30  1:35   ` Brian Norris
  0 siblings, 0 replies; 16+ messages in thread
From: Brian Norris @ 2014-09-30  1:35 UTC (permalink / raw)
  To: linux-arm-kernel

<asm/cp15.h> is only being included because of the implicit requirements
of v7_exit_coherency_flush(). Now that the implicit include is provided
for us, we can drop it from our explicit list.

Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Cc: Marc Carino <marc.ceeeee@gmail.com>
---
This is based on code queued for 3.18

 arch/arm/mach-bcm/platsmp-brcmstb.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/arch/arm/mach-bcm/platsmp-brcmstb.c b/arch/arm/mach-bcm/platsmp-brcmstb.c
index 31c87a284a34..3911ca7a0c3c 100644
--- a/arch/arm/mach-bcm/platsmp-brcmstb.c
+++ b/arch/arm/mach-bcm/platsmp-brcmstb.c
@@ -25,7 +25,6 @@
 #include <linux/mfd/syscon.h>
 
 #include <asm/cacheflush.h>
-#include <asm/cp15.h>
 #include <asm/mach-types.h>
 #include <asm/smp_plat.h>
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 16+ messages in thread

* Re: [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h
  2014-09-30  1:35 ` Brian Norris
@ 2014-09-30  4:30   ` Nicolas Pitre
  -1 siblings, 0 replies; 16+ messages in thread
From: Nicolas Pitre @ 2014-09-30  4:30 UTC (permalink / raw)
  To: Brian Norris
  Cc: linux-arm-kernel, Linux Kernel, Russell King, Jason Cooper,
	Florian Fainelli, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth, Heiko Stuebner, linux-rockchip,
	Marc Carino

On Mon, 29 Sep 2014, Brian Norris wrote:

> There are several places where an explicit include of <asm/cp15.h> is needed
> just because cacheflush.h uses one of its macros in v7_exit_coherency_flush().
> Let's put the include in the proper header.
> 
> These obviously have some dependencies, so I'd focus on:
>   (1) Is patch 1 acceptable? If so, then:

Well, I'm wondering if it is really a gain to force a dependency for 
cp15.h on every user of cacheflush.h just because of the seldomly used 
v7_exit_coherency_flush(). But I don't mind either ways.


Nicolas

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h
@ 2014-09-30  4:30   ` Nicolas Pitre
  0 siblings, 0 replies; 16+ messages in thread
From: Nicolas Pitre @ 2014-09-30  4:30 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, 29 Sep 2014, Brian Norris wrote:

> There are several places where an explicit include of <asm/cp15.h> is needed
> just because cacheflush.h uses one of its macros in v7_exit_coherency_flush().
> Let's put the include in the proper header.
> 
> These obviously have some dependencies, so I'd focus on:
>   (1) Is patch 1 acceptable? If so, then:

Well, I'm wondering if it is really a gain to force a dependency for 
cp15.h on every user of cacheflush.h just because of the seldomly used 
v7_exit_coherency_flush(). But I don't mind either ways.


Nicolas

^ permalink raw reply	[flat|nested] 16+ messages in thread

* Re: [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h
  2014-09-30  4:30   ` Nicolas Pitre
@ 2014-09-30 10:03     ` Russell King - ARM Linux
  -1 siblings, 0 replies; 16+ messages in thread
From: Russell King - ARM Linux @ 2014-09-30 10:03 UTC (permalink / raw)
  To: Nicolas Pitre
  Cc: Brian Norris, linux-arm-kernel, Linux Kernel, Jason Cooper,
	Florian Fainelli, Andrew Lunn, Gregory Clement,
	Sebastian Hesselbarth, Heiko Stuebner, linux-rockchip,
	Marc Carino

On Tue, Sep 30, 2014 at 12:30:06AM -0400, Nicolas Pitre wrote:
> On Mon, 29 Sep 2014, Brian Norris wrote:
> 
> > There are several places where an explicit include of <asm/cp15.h> is needed
> > just because cacheflush.h uses one of its macros in v7_exit_coherency_flush().
> > Let's put the include in the proper header.
> > 
> > These obviously have some dependencies, so I'd focus on:
> >   (1) Is patch 1 acceptable? If so, then:
> 
> Well, I'm wondering if it is really a gain to force a dependency for 
> cp15.h on every user of cacheflush.h just because of the seldomly used 
> v7_exit_coherency_flush(). But I don't mind either ways.

I don't like unnecessary dependencies.  We have too many of them already,
and it basically means that touching any header file triggers a full
kernel rebuild.

If we go down the path of adding unnecessary dependencies, we might as
well do away with make and just script the damn thing, and that'll
probably be faster since there'll be no dependencies to track.  Just
throw everything through ccache and let it deal with anything which
has changed.  Just don't allow your disk to fill up during the build,
ccache really doesn't like that.

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.

^ permalink raw reply	[flat|nested] 16+ messages in thread

* [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h
@ 2014-09-30 10:03     ` Russell King - ARM Linux
  0 siblings, 0 replies; 16+ messages in thread
From: Russell King - ARM Linux @ 2014-09-30 10:03 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Sep 30, 2014 at 12:30:06AM -0400, Nicolas Pitre wrote:
> On Mon, 29 Sep 2014, Brian Norris wrote:
> 
> > There are several places where an explicit include of <asm/cp15.h> is needed
> > just because cacheflush.h uses one of its macros in v7_exit_coherency_flush().
> > Let's put the include in the proper header.
> > 
> > These obviously have some dependencies, so I'd focus on:
> >   (1) Is patch 1 acceptable? If so, then:
> 
> Well, I'm wondering if it is really a gain to force a dependency for 
> cp15.h on every user of cacheflush.h just because of the seldomly used 
> v7_exit_coherency_flush(). But I don't mind either ways.

I don't like unnecessary dependencies.  We have too many of them already,
and it basically means that touching any header file triggers a full
kernel rebuild.

If we go down the path of adding unnecessary dependencies, we might as
well do away with make and just script the damn thing, and that'll
probably be faster since there'll be no dependencies to track.  Just
throw everything through ccache and let it deal with anything which
has changed.  Just don't allow your disk to fill up during the build,
ccache really doesn't like that.

-- 
FTTC broadband for 0.8mile line: currently at 9.5Mbps down 400kbps up
according to speedtest.net.

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2014-09-30 10:04 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-30  1:35 [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Brian Norris
2014-09-30  1:35 ` Brian Norris
2014-09-30  1:35 ` [PATCH 1/5] ARM: include missing cp15.h header Brian Norris
2014-09-30  1:35   ` Brian Norris
2014-09-30  1:35 ` [PATCH 2/5] ARM: mvebu: drop unnecessary include Brian Norris
2014-09-30  1:35   ` Brian Norris
2014-09-30  1:35 ` [PATCH 3/5] ARM: rockchip: " Brian Norris
2014-09-30  1:35   ` Brian Norris
2014-09-30  1:35 ` [PATCH 4/5] ARM: vexpress: " Brian Norris
2014-09-30  1:35   ` Brian Norris
2014-09-30  1:35 ` [PATCH 5/5] ARM: brcmstb: " Brian Norris
2014-09-30  1:35   ` Brian Norris
2014-09-30  4:30 ` [PATCH 0/5] ARM: move #include <asm/cp15.h> into cacheflush.h Nicolas Pitre
2014-09-30  4:30   ` Nicolas Pitre
2014-09-30 10:03   ` Russell King - ARM Linux
2014-09-30 10:03     ` Russell King - ARM Linux

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.