[PATCH v2 0/2] net: if_arp: use define instead of hard-coded value

From: HÃkon Bugge
Date: Tue Oct 09 2018 - 10:27:54 EST


Struct arpreq contains the name of the device. All other places in the
kernel, the define IFNAMSIZ is used to designate its size. But in
if_arp.h, a literal constant is used.

Fixed by explicitly including uapi/linu/if.h, where IFNAMSIZ is defined.

The series also fixes some incorrect indents.


v1 -> v2:
* Include uapi/linux/if.h from if_arp.h
* Added Stephen's t-b

HÃkon Bugge (2):
net: if_arp: Fix incorrect indents
net: if_arp: use define instead of hard-coded value

include/uapi/linux/if_arp.h | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)

--
2.14.3