Skip to content

Commit 122733a

Browse files
amirvdavem330
authored andcommitted
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>
1 parent af22d9d commit 122733a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/linux/cpu_rmap.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef __LINUX_CPU_RMAP_H
2+
#define __LINUX_CPU_RMAP_H
3+
14
/*
25
* cpu_rmap.c: CPU affinity reverse-map support
36
* Copyright 2011 Solarflare Communications Inc.
@@ -71,3 +74,4 @@ extern void free_irq_cpu_rmap(struct cpu_rmap *rmap);
7174
extern int irq_cpu_rmap_add(struct cpu_rmap *rmap, int irq);
7275

7376
#endif
77+
#endif /* __LINUX_CPU_RMAP_H */

0 commit comments

Comments
 (0)