Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
bb2cf6e6
Commit
bb2cf6e6
authored
Oct 28, 2014
by
Adam Wujek
💬
Committed by
Alessandro Rubini
Dec 04, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_nic: rephase checking for WR_SWITCH and WR_NODE in wr-nic.h
parent
eb47aff1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
wr-nic.h
kernel/wr_nic/wr-nic.h
+5
-7
No files found.
kernel/wr_nic/wr-nic.h
View file @
bb2cf6e6
...
...
@@ -26,16 +26,14 @@
#ifdef __KERNEL__
/* The rest is kernel-only */
/* The NIC can build for both the switch and the node. Prefer if to ifdef */
#if
def
WR_NODE
#if
defined
WR_NODE
# define WR_IS_NODE 1
# define WR_IS_SWITCH 0
#elif defined WR_SWITCH
# define WR_IS_NODE 0
# define WR_IS_SWITCH 1
#else
# ifndef WR_SWITCH
# error "Please define WR_NODE or WR_SWITCH"
# else
# define WR_IS_NODE 0
# define WR_IS_SWITCH 1
# endif
# error "Please define WR_NODE or WR_SWITCH"
#endif
#include <linux/interrupt.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment