Commit fd5be1f1 authored by Miguel Jimenez Lopez's avatar Miguel Jimenez Lopez

wr_nic/endpoint: Fix prototype of weak function depending on the kernel version.

parent 18dcb14a
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment