summaryrefslogtreecommitdiff
path: root/include/linux/cpu_rmap.h
diff options
context:
space:
mode:
authorAmir Vadai <amirv@mellanox.com>2012-07-19 02:33:50 +0400
committerDavid S. Miller <davem@davemloft.net>2012-07-19 19:34:37 +0400
commit122733a189d687087364d6dc3ecc7c682554f6a0 (patch)
treeedfc226ef001c4b5abd962dffc94fad877f22e34 /include/linux/cpu_rmap.h
parentaf22d9de45caf8b2a99f2b27a927169c029528b4 (diff)
downloadlinux-122733a189d687087364d6dc3ecc7c682554f6a0.tar.xz
net/rps: Protect cpu_rmap.h from double inclusion
Signed-off-by: Amir Vadai <amirv@mellanox.com> Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com> Acked-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/cpu_rmap.h')
-rw-r--r--include/linux/cpu_rmap.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/cpu_rmap.h b/include/linux/cpu_rmap.h
index 473771a528c0..ac3bbb5b9502 100644
--- a/include/linux/cpu_rmap.h
+++ b/include/linux/cpu_rmap.h
@@ -1,3 +1,6 @@
+#ifndef __LINUX_CPU_RMAP_H
+#define __LINUX_CPU_RMAP_H
+
/*
* cpu_rmap.c: CPU affinity reverse-map support
* Copyright 2011 Solarflare Communications Inc.
@@ -71,3 +74,4 @@ extern void free_irq_cpu_rmap(struct cpu_rmap *rmap);
extern int irq_cpu_rmap_add(struct cpu_rmap *rmap, int irq);
#endif
+#endif /* __LINUX_CPU_RMAP_H */