Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 926829
Collapse All | Expand All

(-)r8152-2.17.1/compatibility.h (+4 lines)
Lines 18-23 Link Here
18
#include <net/gso.h>
18
#include <net/gso.h>
19
#endif
19
#endif
20
20
21
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0)
22
#define strscpy strlcpy
23
#endif
24
21
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
25
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,31)
22
	#include <linux/mdio.h>
26
	#include <linux/mdio.h>
23
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
27
#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,7,0)
(-)r8152-2.17.1/r8152.c (-1 / +1 lines)
Lines 19691-19697 Link Here
19691
		uinfo->idVendor = __le16_to_cpu(udev->descriptor.idVendor);
19691
		uinfo->idVendor = __le16_to_cpu(udev->descriptor.idVendor);
19692
		uinfo->idProduct = __le16_to_cpu(udev->descriptor.idProduct);
19692
		uinfo->idProduct = __le16_to_cpu(udev->descriptor.idProduct);
19693
		uinfo->bcdDevice = __le16_to_cpu(udev->descriptor.bcdDevice);
19693
		uinfo->bcdDevice = __le16_to_cpu(udev->descriptor.bcdDevice);
19694
		strlcpy(uinfo->devpath, udev->devpath, sizeof(udev->devpath));
19694
		strscpy(uinfo->devpath, udev->devpath, sizeof(udev->devpath));
19695
		pla_ocp_read(tp, PLA_IDR, sizeof(uinfo->dev_addr),
19695
		pla_ocp_read(tp, PLA_IDR, sizeof(uinfo->dev_addr),
19696
			     uinfo->dev_addr);
19696
			     uinfo->dev_addr);
19697
19697

Return to bug 926829