Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC - Software
Commits
fdad758a
Commit
fdad758a
authored
Oct 28, 2014
by
Adam Wujek
💬
Committed by
Alessandro Rubini
Dec 02, 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
df504d66
Show 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 @
fdad758a
...
@@ -26,16 +26,14 @@
...
@@ -26,16 +26,14 @@
#ifdef __KERNEL__
/* The rest is kernel-only */
#ifdef __KERNEL__
/* The rest is kernel-only */
/* The NIC can build for both the switch and the node. Prefer if to ifdef */
/* 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_NODE 1
# define WR_IS_SWITCH 0
# define WR_IS_SWITCH 0
#else
#elif defined WR_SWITCH
# ifndef WR_SWITCH
# error "Please define WR_NODE or WR_SWITCH"
# else
# define WR_IS_NODE 0
# define WR_IS_NODE 0
# define WR_IS_SWITCH 1
# define WR_IS_SWITCH 1
# endif
#else
# error "Please define WR_NODE or WR_SWITCH"
#endif
#endif
#include <linux/interrupt.h>
#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