aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/types.h
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2012-04-03 07:11:04 -0600
committerGrant Likely <grant.likely@secretlab.ca>2012-04-10 22:39:17 -0600
commita699e4e49ec3fb62c4a44394357d14081df10bef (patch)
tree4a64e6fd8bc6a71fe7212a69f552f4aef3bd473c /include/linux/types.h
parentirq/irq_domain: Quit ignoring error returns from irq_alloc_desc_from(). (diff)
downloadwireguard-linux-a699e4e49ec3fb62c4a44394357d14081df10bef.tar.xz
wireguard-linux-a699e4e49ec3fb62c4a44394357d14081df10bef.zip
irq: Kill pointless irqd_to_hw export
It makes no sense to export this trivial function. Make it a static inline instead. This patch also drops virq_to_hw from arch/c6x since it is unused by that architecture. v2: Move irq_hw_number_t into types.h to fix ARM build failure Signed-off-by: Grant Likely <grant.likely@secretlab.ca> Acked-by: Thomas Gleixner <tglx@linutronix.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'include/linux/types.h')
-rw-r--r--include/linux/types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/types.h b/include/linux/types.h
index e5fa50345516..7f480db60231 100644
--- a/include/linux/types.h
+++ b/include/linux/types.h
@@ -210,6 +210,12 @@ typedef u32 phys_addr_t;
typedef phys_addr_t resource_size_t;
+/*
+ * This type is the placeholder for a hardware interrupt number. It has to be
+ * big enough to enclose whatever representation is used by a given platform.
+ */
+typedef unsigned long irq_hw_number_t;
+
typedef struct {
int counter;
} atomic_t;