* [PATCH] sh: Eliminate unused irq_reg_{readl,writel} accessors
@ 2015-01-25 10:11 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2015-01-25 10:11 UTC (permalink / raw)
To: Andrew Morton
Cc: Kevin Cernekee, Thomas Gleixner, Jason Cooper, linux-sh,
linux-kernel, Geert Uytterhoeven
From: Kevin Cernekee <cernekee@gmail.com>
Defining these macros way down in arch/sh/.../irq.c doesn't cause
kernel/irq/generic-chip.c to use them. As far as I can tell this code
has no effect.
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> (cpp/asm comparison)
As of commit 332fd7c4fef5f3b1 ("genirq: Generic chip: Change
irq_reg_{readl,writel} arguments") they cause build errors in
se7722_defconfig:
In file included from arch/sh/boards/mach-se/7722/irq.c:18:0:
include/linux/irq.h:847:91: error: conflicting types for 'iowrite16'
include/asm-generic/iomap.h:35:13: note: previous declaration of 'iowrite16' was here
include/linux/irq.h:856:90: error: conflicting types for 'ioread16'
include/asm-generic/iomap.h:29:21: note: previous declaration of 'ioread16' was here
arch/sh/boards/mach-se/7722/irq.c: In function 'se7722_irq_demux':
arch/sh/boards/mach-se/7722/irq.c:43:2: error: too few arguments to function 'ioread16'
include/linux/irq.h:856:90: note: declared here
and se7343_defconfig:
In file included from arch/sh/boards/mach-se/7343/irq.c:21:0:
include/linux/irq.h:847:91: error: conflicting types for 'iowrite16'
include/asm-generic/iomap.h:35:13: note: previous declaration of 'iowrite16' was here
include/linux/irq.h:856:90: error: conflicting types for 'ioread16'
include/asm-generic/iomap.h:29:21: note: previous declaration of 'ioread16' was here
arch/sh/boards/mach-se/7343/irq.c: In function 'se7343_irq_demux':
arch/sh/boards/mach-se/7343/irq.c:44:2: error: too few arguments to function 'ioread16'
include/linux/irq.h:856:90: note: declared here
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Fixes: 332fd7c4fef5f3b1 ("genirq: Generic chip: Change irq_reg_{readl,writel} arguments")
---
Fixes se7722_defconfig and se7343_defconfig
http://kisskb.ellerman.id.au/kisskb/buildresult/12350978/
http://kisskb.ellerman.id.au/kisskb/buildresult/12350973/
---
arch/sh/boards/mach-se/7343/irq.c | 3 ---
arch/sh/boards/mach-se/7722/irq.c | 3 ---
2 files changed, 6 deletions(-)
diff --git a/arch/sh/boards/mach-se/7343/irq.c b/arch/sh/boards/mach-se/7343/irq.c
index 7646bf0486c2c9b1..1087dba9b0152317 100644
--- a/arch/sh/boards/mach-se/7343/irq.c
+++ b/arch/sh/boards/mach-se/7343/irq.c
@@ -14,9 +14,6 @@
#define DRV_NAME "SE7343-FPGA"
#define pr_fmt(fmt) DRV_NAME ": " fmt
-#define irq_reg_readl ioread16
-#define irq_reg_writel iowrite16
-
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
diff --git a/arch/sh/boards/mach-se/7722/irq.c b/arch/sh/boards/mach-se/7722/irq.c
index f5e2af1bf040ff93..00e699232621dccf 100644
--- a/arch/sh/boards/mach-se/7722/irq.c
+++ b/arch/sh/boards/mach-se/7722/irq.c
@@ -11,9 +11,6 @@
#define DRV_NAME "SE7722-FPGA"
#define pr_fmt(fmt) DRV_NAME ": " fmt
-#define irq_reg_readl ioread16
-#define irq_reg_writel iowrite16
-
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] sh: Eliminate unused irq_reg_{readl,writel} accessors
@ 2015-01-25 10:11 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2015-01-25 10:11 UTC (permalink / raw)
To: Andrew Morton
Cc: Kevin Cernekee, Thomas Gleixner, Jason Cooper, linux-sh,
linux-kernel, Geert Uytterhoeven
From: Kevin Cernekee <cernekee@gmail.com>
Defining these macros way down in arch/sh/.../irq.c doesn't cause
kernel/irq/generic-chip.c to use them. As far as I can tell this code
has no effect.
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be> (cpp/asm comparison)
As of commit 332fd7c4fef5f3b1 ("genirq: Generic chip: Change
irq_reg_{readl,writel} arguments") they cause build errors in
se7722_defconfig:
In file included from arch/sh/boards/mach-se/7722/irq.c:18:0:
include/linux/irq.h:847:91: error: conflicting types for 'iowrite16'
include/asm-generic/iomap.h:35:13: note: previous declaration of 'iowrite16' was here
include/linux/irq.h:856:90: error: conflicting types for 'ioread16'
include/asm-generic/iomap.h:29:21: note: previous declaration of 'ioread16' was here
arch/sh/boards/mach-se/7722/irq.c: In function 'se7722_irq_demux':
arch/sh/boards/mach-se/7722/irq.c:43:2: error: too few arguments to function 'ioread16'
include/linux/irq.h:856:90: note: declared here
and se7343_defconfig:
In file included from arch/sh/boards/mach-se/7343/irq.c:21:0:
include/linux/irq.h:847:91: error: conflicting types for 'iowrite16'
include/asm-generic/iomap.h:35:13: note: previous declaration of 'iowrite16' was here
include/linux/irq.h:856:90: error: conflicting types for 'ioread16'
include/asm-generic/iomap.h:29:21: note: previous declaration of 'ioread16' was here
arch/sh/boards/mach-se/7343/irq.c: In function 'se7343_irq_demux':
arch/sh/boards/mach-se/7343/irq.c:44:2: error: too few arguments to function 'ioread16'
include/linux/irq.h:856:90: note: declared here
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Fixes: 332fd7c4fef5f3b1 ("genirq: Generic chip: Change irq_reg_{readl,writel} arguments")
---
Fixes se7722_defconfig and se7343_defconfig
http://kisskb.ellerman.id.au/kisskb/buildresult/12350978/
http://kisskb.ellerman.id.au/kisskb/buildresult/12350973/
---
arch/sh/boards/mach-se/7343/irq.c | 3 ---
arch/sh/boards/mach-se/7722/irq.c | 3 ---
2 files changed, 6 deletions(-)
diff --git a/arch/sh/boards/mach-se/7343/irq.c b/arch/sh/boards/mach-se/7343/irq.c
index 7646bf0486c2c9b1..1087dba9b0152317 100644
--- a/arch/sh/boards/mach-se/7343/irq.c
+++ b/arch/sh/boards/mach-se/7343/irq.c
@@ -14,9 +14,6 @@
#define DRV_NAME "SE7343-FPGA"
#define pr_fmt(fmt) DRV_NAME ": " fmt
-#define irq_reg_readl ioread16
-#define irq_reg_writel iowrite16
-
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
diff --git a/arch/sh/boards/mach-se/7722/irq.c b/arch/sh/boards/mach-se/7722/irq.c
index f5e2af1bf040ff93..00e699232621dccf 100644
--- a/arch/sh/boards/mach-se/7722/irq.c
+++ b/arch/sh/boards/mach-se/7722/irq.c
@@ -11,9 +11,6 @@
#define DRV_NAME "SE7722-FPGA"
#define pr_fmt(fmt) DRV_NAME ": " fmt
-#define irq_reg_readl ioread16
-#define irq_reg_writel iowrite16
-
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/interrupt.h>
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-01-25 10:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-25 10:11 [PATCH] sh: Eliminate unused irq_reg_{readl,writel} accessors Geert Uytterhoeven
2015-01-25 10:11 ` Geert Uytterhoeven
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.