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
fd5be1f1
Commit
fd5be1f1
authored
Apr 02, 2019
by
Miguel Jimenez Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wr_nic/endpoint: Fix prototype of weak function depending on the kernel version.
parent
18dcb14a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
endpoint.c
kernel/wr_nic/endpoint.c
+5
-1
No files found.
kernel/wr_nic/endpoint.c
View file @
fd5be1f1
...
...
@@ -23,8 +23,12 @@
static
char
*
macaddr
=
"00:00:00:00:00:00"
;
module_param
(
macaddr
,
charp
,
0444
);
/* Copied from kernel 3.6 net/utils.c, it converts from MAC string to u8 array */
/* Copied from kernel net/utils.c, it converts from MAC string to u8 array */
#if LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0)
__weak
int
mac_pton
(
const
char
*
s
,
u8
*
mac
)
#else
__weak
bool
mac_pton
(
const
char
*
s
,
u8
*
mac
)
#endif
{
int
i
;
...
...
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